Description
Gitea's web attachment handler skips its cross-repository ownership check for attachments created before 16 January 2026 and checks permissions against the repository named in the request URL instead. An unauthenticated attacker who knows a private attachment's UUID can request it through a public repository's attachment path and retrieve its contents. This can expose issue and pull request attachments or release assets; the random attachment UUID must already be known to the attacker.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Gitea | Gitea | 1.26.0 – ≤ 1.27.2 | — |
Advisories 1
- WID-SEC-2026-3079 Gitea: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode BSI CERT-Bund (WID) · Oct 14, 2026
References
- GitHub Security Advisory GHSA-frpv-2xgv-wxpq vendor-advisory
- Gitea 1.27.3 release announcement release-notes
- Fix: go-gitea/gitea pull request #39048 patch
- Fix: go-gitea/gitea pull request #39077 patch
- go-gitea/gitea v1.27.3 release release-notes