CVE-2026-20912
CRITICAL 9.1CVSS 3.1Gitea does not properly validate repository ownership when linking attachments to releases
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.
- Published
- 22 Jan 2026
- Last modified
- 15 Jul 2026
- Assigned by
- 88ee5874-cf24-4952-aea0-31affedb7ff2
- NVD status
- Modified
- Weakness
- CWE-283CWE-284
- Also known as
- BIT-gitea-2026-20912GHSA-4xx9-vc8v-87hvGHSA-vfmv-f93v-37mwGO-2026-4364
- Sources
- NVDJSONOSV GHSA-4xx9-vc8v-87hvJSONOSV GO-2026-4364JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitea | giteacpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:* |
< 1.25.4 | 1.25.4 |
| OSV | Go | github.com/go-gitea/gitea | < 1.25.4 | 1.25.4 |
| OSV | Go | code.gitea.io/gitea | < 1.25.4 | 1.25.4 |
References
- https://blog.gitea.com/release-of-1.25.4/ · Release Notes, WEB
- https://github.com/go-gitea/gitea/pull/36320 · Issue Tracking, Patch, WEB
- https://github.com/go-gitea/gitea/pull/36355 · Issue Tracking, Patch, WEB
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4 · Release Notes, WEB
- https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw · Broken Link
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-20912 · ADVISORY
- https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30 · WEB
- https://github.com/go-gitea/gitea · PACKAGE
- https://github.com/advisories/GHSA-4xx9-vc8v-87hv · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 22 Jan 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Jan 2026)