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.39%
32.9th 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
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| code.gitea.io | gitea | >= 0 < 1.25.4 | 1.25.4 |
| code.gitea.io | gitea | >= 0 < 1.27.0 | 1.27.0 |
| 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.
GHSA
Gitea: Cross-repository issue/comment attachment re-linking can expose private attachment content
ghsa·2026-07-21
CVE-2026-57886 [MEDIUM] CWE-639 Gitea: Cross-repository issue/comment attachment re-linking can expose private attachment content
Gitea: Cross-repository issue/comment attachment re-linking can expose private attachment content
## Summary
Gitea's issue and comment attachment update paths accept attachment UUIDs without verifying that each attachment belongs to the target issue/comment repository. If an authenticated attacker knows a victim attachment UUID, they can re-link that attachment to an attacker-controlled issue or comment, causing later attachment access checks to use the attacker's repository authorization context.
## Affected
- Component: web issue/comment attachment handling.
- Confirmed version: `main` commit `a39b2775edcb3ba53def96794491b91335117d81` (`v1.27.0-dev-352-ga39b2775ed`).
- Fixed in: not fixed at the time of validation.
- Other versions: not exhaustively tested. The affected code path app
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