CVE-2026-20736
Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
HIGH 7.5
At a glance
- Source
- NVD
- EPSS
- EPSS 0.43 % · percentile 37 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Gitea
- NVD status
- Modified
Description
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.
Weaknesses (CWE)
- CWE-284 — Improper Access Control
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-jr6h-pwwp-c8g6
- https://github.com/go-gitea/gitea/pull/36320
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4
- https://blog.gitea.com/release-of-1.25.4/
- 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
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | CISA-ADP |
| 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 | redhat-SADP |
| 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 · 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) |
Advisories
- GHSA-hgr3-x44x-33hx — Gitea has improper access control for uploaded attachments
- GO-2026-4367 — Gitea has improper access control for uploaded attachments in code.gitea.io/gitea
European references
- ENISA EUVD · EUVD-2026-4269
- GCVE · GCVE-0-2026-20736
Affected configurations (NVD CPE)
cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*< 1.25.4
Affected products
| Product | Versions |
|---|---|
| Gitea · Gitea Open Source Git Server | affected 0 ≤ 1.25.3 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |