Vulnerability advisory
CVE-2026-20912
Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure
Also known as BIT-gitea-2026-20912GHSA-4xx9-vc8v-87hvGHSA-vfmv-f93v-37mwGO-2026-4364
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/go-gitea/gitea ↗ | |
| All commits before 369830bada2fd8826a5135cb2fc66660a9bef708 | 369830bada2fd8826a5135cb2fc66660a9bef708 |
Also listed as affected (43)
| |
Description
Gitea does not properly validate repository ownership when linking attachments to releases. An attachment uploaded to a private repository could potentially be linked to a release in a different public repository, making it accessible to unauthorized users.
References
- Websecurity.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json ↗
- Advisoryaccess.redhat.com/security/cve/CVE-2026-20912 ↗
- Advisoryblog.gitea.com/release-of-1.25.4/ ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/20xxx/CVE-2026-20912.json ↗
- Advisorygithub.com/go-gitea/gitea/releases/tag/v1.25.4 ↗
- Advisorygithub.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-20912 ↗
- Reportbugzilla.redhat.com/show_bug.cgi?id=2432219 ↗
- Fixgithub.com/go-gitea/gitea/pull/36320 ↗
- Fixgithub.com/go-gitea/gitea/pull/36355 ↗