CVE-2026-123009 Gitea base repository code disclosure through the web editor in forks
MediumCVSS 4.3
EPSS 0.37%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
When a file is edited in a fork through the web editor, Gitea can first copy a branch from the base repository into the fork. That copy did not check whether the user may read the base repository's code. A user who had forked a repository and later lost access to it, for example after it was made private or they were removed as a collaborator, could keep copying its current branches into their fork and read them. The copy now requires read access to the code of the base repository.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Gitea | >= 1.25.0, < 28.4.0 | 28.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Gitea | >= 1.25.0, < 28.4.0 | 28.4.0 |
References
- GitHub Security Advisory GHSA-9vh6-6hgj-j5m5 vendor-advisory
- Fix: go-gitea/gitea pull request #40131 patch
- Fix backport to release/v28: go-gitea/gitea pull request #40281 patch
- Gitea 28.4.0 release announcement release-notes
- go-gitea/gitea v28.4.0 release release-notes
- ENISA EUVD EUVD-2026-126122 third-party-advisory