Vulnerability · Published Jan 22, 2026 · Assigned by Gitea
CVE-2026-20912Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure
Critical 9.1
In plain English
A critical-severity improper access control in Gitea Open Source Git Server from Gitea. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.5%top 60.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | code.gitea.io/gitea | 1.25.4 | GO-2026-4364 |
| Go | github.com/go-gitea/gitea | 1.25.4 | GHSA-4xx9-vc8v-87hv |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea Open Source Git Server | 0 – through 1.25.3 |
Weakness: CWE-284, CWE-639, CWE-283 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- GitHub Security Advisory vendor-advisory
- GitHub Pull Request #36320 patch
- GitHub Pull Request #36355 patch
- Gitea v1.25.4 Release release-notes
- Gitea v1.25.4 Release Blog Post release-notes
- https://access.redhat.com/security/cve/CVE-2026-20912 vdb-entry, x_refsource_REDHAT
- RHBZ#2432219 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json x_sadp-csaf-vex