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

Patches and fixes

Updates, commits and release notes

Related