CVE-2026-123009
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.
Impact
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.
An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: low risk of data being read.
Affected products · Gitea
| Product | Affected versions |
|---|---|
| Gitea | from 1.25.0 before 28.4.0 |