CVE-2026-20736
published 2026-01-22CVE-2026-20736: 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…
PriorityP345high7.5CVSS 3.1
AVNACLPRNUINSUCNIHAN
EPSS
0.36%
27.7th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| code.gitea.io | gitea | >= 0 < 1.25.4 | 1.25.4 |
| gitea | gitea | < 1.25.4 | 1.25.4 |
| gitea | gitea_open_source_git_server | <= 1.25.3 | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
Gitea up to 1.25.3 Attachment access control (GHSA-jr6h-pwwp-c8g6 / EUVD-2026-4269)
vuldb·2026-06-30·CVSS 7.5
CVE-2026-20736 [HIGH] Gitea up to 1.25.3 Attachment access control (GHSA-jr6h-pwwp-c8g6 / EUVD-2026-4269)
A vulnerability was found in Gitea up to 1.25.3. It has been declared as critical. The affected element is an unknown function of the component Attachment Handler. Executing a manipulation can lead to improper access controls.
This vulnerability is tracked as CVE-2026-20736. The attack can be launched remotely. No exploit exists.
It is recommended to upgrade the affected component.
OSV
Gitea has improper access control for uploaded attachments in code.gitea.io/gitea
osv·2026-02-02
CVE-2026-20736 Gitea has improper access control for uploaded attachments in code.gitea.io/gitea
Gitea has improper access control for uploaded attachments in code.gitea.io/gitea
Gitea has improper access control for uploaded attachments in code.gitea.io/gitea
OSV
Gitea has improper access control for uploaded attachments
osv·2026-01-23
CVE-2026-20736 [LOW] Gitea has improper access control for uploaded attachments
Gitea 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.
GHSA
Gitea has improper access control for uploaded attachments
ghsa·2026-01-23
CVE-2026-20736 [LOW] CWE-284 Gitea has improper access control for uploaded attachments
Gitea 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.
Red Hat
gitea: Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
vendor_redhat·2026-01-22·CVSS 7.5
CVE-2026-20736 [HIGH] CWE-284 gitea: Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
gitea: Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
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.
An access control flaw has been discovered in Gitea. 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.
Mitigation: Mitigation for this issue is either not available or the currently available o
No detection rules found.
No public exploits indexed.
https://blog.gitea.com/release-of-1.25.4/https://github.com/go-gitea/gitea/pull/36320https://github.com/go-gitea/gitea/releases/tag/v1.25.4https://github.com/go-gitea/gitea/security/advisories/GHSA-jr6h-pwwp-c8g6https://access.redhat.com/security/cve/CVE-2026-20736https://bugzilla.redhat.com/show_bug.cgi?id=2432205https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20736.json
2026-01-22
Published