Critical severity · published Jan 22, 2026
CVE-2026-20912
Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure
9.1
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 39% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GO
Gitea Open Source Git Server · Gitea
through 1.25.3 · source: vendor
GI
Gitea · Gitea
before 1.25.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-20912
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-20912
Release Notes
https://blog.gitea.com/release-of-1.25.4/
Issue Tracking
https://github.com/go-gitea/gitea/pull/36320
Issue Tracking
https://github.com/go-gitea/gitea/pull/36355
Release Notes
https://github.com/go-gitea/gitea/releases/tag/v1.25.4
Broken Link
https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw
access.redhat.com
https://access.redhat.com/security/cve/CVE-2026-20912
More from Gitea Open Source Git Server
9.8
CVE-2026-56654
Privilege Escalation via Access Token Scope Escalation in API
9.8
CVE-2026-58422
Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
9.8
CVE-2026-27780
Gitea pre-receive hook can miss branch-protection checks after scanner errors
9.8
CVE-2026-26292
Gitea LFS mirror synchronization bypasses migration HTTP transport restrictions
9.8
CVE-2026-20896
Gitea Docker image trusts spoofable reverse-proxy headers by default
