Kestrel
대시보드로 돌아가기
CVE-2026-24451HIGH· 7.5MITRENVDGHSA대응게시일: 2026. 07. 03.수정일: 2026. 07. 21.

Gitea: Fork Synchronization Continues After Parent Repository Changes from Public to Private

Info-Disclosure

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
7.5high

이론적 심각도 점수

EPSS
0.4%상위 72.0%

30일 내 악용 확률 예측

KEV
미등재

실측 악용 기록 없음

권장 대응 기한14일 이내CISA SSVC 기준

2주 이내 패치 — 우선 조치 대상

자동화 가능외부 노출· KEV 미등재 · 자동화 가능 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

악용 경로
공격 벡터네트워크
공격 복잡도낮음
필요 권한불필요
사용자 상호작용불필요
범위불변
영향
기밀성 영향높음
무결성 영향없음
가용성 영향없음
버전별 점수
CVSS 3.17.5HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

상세 설명

Summary

The POST /api/v1/repos/{owner}/{repo}/merge-upstream endpoint continues to synchronize commits from a parent repository after the parent repository has been changed from public to private.

A fork created while the parent repository was public can still receive commits made after the parent repository becomes private. As a result, content added during the private period becomes available through the fork repository after synchronization.

Details

Gitea provides the merge-upstream API to synchronize a fork with its parent repository.

A typical workflow is:

  1. A repository is public.
  2. Another user creates a fork.
  3. The fork owner uses merge-upstream to receive updates from the parent repository.

However, if the parent repository is later changed from public to private, the synchronization endpoint continues to import new commits from the parent repository into the fork.

In testing on Gitea 1.26.2, a fork owner who can no longer directly access the parent repository is still able to synchronize newly created commits from the parent repository into the fork by calling merge-upstream.

As a result, commits created after the visibility change can be propagated into the fork through the normal fork synchronization workflow.

PoC

Proof-of-Concept Code

https://anonymous.4open.science/r/Gitea_PoC-EC93/4_poc_merge_upstream

PoC Details
  1. User alice creates a public repository alice/P.
  2. User bob forks the repository, creating bob/P.
  3. alice changes alice/P from public to private.
  4. Verify that bob can no longer directly access the parent repository:
text
1GET /api/v1/repos/alice/P

Response:

text
1404 Not Found
text
1GET /api/v1/repos/alice/P/contents/README.md

Response:

text
1404 Not Found
  1. While the repository is private, alice commits a new file:
text
1secret.txt
  1. Verify that bob cannot directly access the new file from the parent repository:
text
1GET /api/v1/repos/alice/P/contents/secret.txt

Response:

text
1404 Not Found
  1. bob synchronizes the fork:
text
1POST /api/v1/repos/bob/P/merge-upstream

Response:

text
1200 OK
  1. The newly added file is now available through the fork repository:
text
1GET /api/v1/repos/bob/P/contents/secret.txt

Response:

text
1200 OK

The attached PoC reproduces the behavior end-to-end.

As a control test, attempting to access the private-period commit directly through the fork's Git API before synchronization fails:

text
1GET /api/v1/repos/bob/P/git/commits/<private-period-commit-sha>

Response:

text
1404 Not Found

This indicates that the commit becomes available in the fork only after the merge-upstream operation synchronizes it from the parent repository.

Impact

A fork created while a repository is public can continue receiving updates from the parent repository after the parent repository is changed to private.

Consequently, content committed after the visibility change may become available through fork synchronization even when the fork owner can no longer directly access the parent repository.

The impact is limited to content that is synchronized from the parent repository into the affected fork. The issue does not allow modification of the parent repository or access to repositories that were never forked.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.