CVE-2026-20912
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-01-22
- Last modified
- 2026-07-15
- Assigned by
- 88ee5874-cf24-4952-aea0-31affedb7ff2
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Scored by
- 134c704f-9b21-4f2e-91b3-4a467353bcc0
- Probability of exploitation
-
0.4 %
higher than 34 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Gitea | Gitea | < 1.25.4 | Affected |
| github.com/go-gitea | gitea (Go) | < 1.25.4 | Affected |
Weakness type
-
CWE-283: Unverified Ownership
The product does not properly verify that a critical resource is owned by the proper entity.
-
CWE-284: Improper Access Control
The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
-
CWE-639: Authorization Bypass Through User-Controlled Key
The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1014: Rootkit
- T1027.009: Embedded Payloads
- T1037: Boot or Logon Initialization Scripts
- T1080: Taint Shared Content
- T1505.005: Terminal Services DLL
- T1542.003: Bootkit
- T1543: Create or Modify System Process
- T1543.001: Launch Agent
- T1543.003: Windows Service
- T1543.004: Launch Daemon
- T1546.001: Change Default File Association
- T1546.004: Unix Shell Configuration Modification
- T1546.008: Accessibility Features
- T1546.016: Installer Packages
- T1547: Boot or Logon Autostart Execution
- T1547.006: Kernel Modules and Extensions
- T1553.004: Install Root Certificate
- T1556.006: Multi-Factor Authentication
- T1574.011: Services Registry Permissions Weakness
References
- https://blog.gitea.com/release-of-1.25.4/
- https://github.com/go-gitea/gitea/pull/36320
- https://github.com/go-gitea/gitea/pull/36355
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4
- https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw
- https://access.redhat.com/security/cve/CVE-2026-20912
- https://bugzilla.redhat.com/show_bug.cgi?id=2432219
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json
Related at Berigo
Articles
-
Sending the same patch twice gives attackers shell access to Gitea servers
Same product
2026-08-27
CISA added CVE-2026-60004 in Gitea to its catalogue of known exploited vulnerabilities on 25 August 2026. The flaw was disclosed on 28 July and fixed…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.