CVE-2026-20912: Vulnerability in Gitea
Critical. 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.
Go, CWE-284, CWE-639
- Exploitation
- None confirmed
- Severity
- 9.1 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-4xx9-vc8v-87hv
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weakness
- CWE-284, CWE-639, CWE-283
- Published
- 22 Jan 2026
- Last change
- 15 Jul 2026
- Ecosystem
- Go
Affected products
Affected versions and the first fixed release
- Gitea Before 1.25.4. Fixed in 1.25.4
Affected packages
Vulnerable version ranges and fixed releases
- github.com/go-gitea/gitea Go, Affected before 1.25.4. Fixed in 1.25.4
Advisories
Vendor and security advisories
- blog.gitea.com/release-of-1.25.4/
- github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw
- access.redhat.com/security/cve/CVE-2026-20912
Patches and fixes
Updates, commits and release notes
- github.com/go-gitea/gitea/pull/36320
- github.com/go-gitea/gitea/pull/36355
- github.com/go-gitea/gitea/releases/tag/v1.25.4
Related
- Gitea vulnerabilities Recent advisories, watch this product