CVE-2026-20736
HIGH 7.5CVSS 3.1Gitea has improper access control for uploaded attachments
Gitea does not properly verify repository context when deleting attachments. A user who previously uploaded an attachment to a repository may be able to delete it after losing access to that repository by making the request through a different repository they can access.
- Published
- 22 Jan 2026
- Last modified
- 15 Jul 2026
- Assigned by
- 88ee5874-cf24-4952-aea0-31affedb7ff2
- NVD status
- Modified
- Weakness
- CWE-284
- Also known as
- BIT-gitea-2026-20736GHSA-hgr3-x44x-33hxGHSA-jr6h-pwwp-c8g6GO-2026-4367
- Sources
- NVDJSONOSV GHSA-hgr3-x44x-33hxJSONOSV GO-2026-4367JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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 | 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/releases/tag/v1.25.4 · Release Notes, WEB
- https://github.com/go-gitea/gitea/security/advisories/GHSA-jr6h-pwwp-c8g6 · Broken Link
- https://access.redhat.com/security/cve/CVE-2026-20736
- https://bugzilla.redhat.com/show_bug.cgi?id=2432205
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20736.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-20736 · ADVISORY
- https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30 · WEB
- https://github.com/go-gitea/gitea · PACKAGE
- https://github.com/advisories/GHSA-hgr3-x44x-33hx · 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)