Vulnerability advisory
CVE-2026-20736
Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
Also known as BIT-gitea-2026-20736GHSA-hgr3-x44x-33hxGHSA-jr6h-pwwp-c8g6GO-2026-4367
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/go-gitea/gitea ↗ | |
| All commits before 369830bada2fd8826a5135cb2fc66660a9bef708 | 369830bada2fd8826a5135cb2fc66660a9bef708 |
Also listed as affected (43)
| |
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.
References
- Websecurity.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20736.json ↗
- Advisoryaccess.redhat.com/security/cve/CVE-2026-20736 ↗
- Advisoryblog.gitea.com/release-of-1.25.4/ ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/20xxx/CVE-2026-20736.json ↗
- Advisorygithub.com/go-gitea/gitea/releases/tag/v1.25.4 ↗
- Advisorygithub.com/go-gitea/gitea/security/advisories/GHSA-jr6h-pwwp-c8g6 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-20736 ↗
- Reportbugzilla.redhat.com/show_bug.cgi?id=2432205 ↗
- Fixgithub.com/go-gitea/gitea/pull/36320 ↗