Description
The Gitea API routes for issue attachments (`/api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}`) also accepted attachments that belong to comments on the issue. Because the author of an issue may edit and delete the issue's attachments, a user who opened an issue could rename or delete attachments that other users had posted in comments on that issue. The contents of the attachments could not be changed.
Weaknesses
- CWE-639 — CWE-639: Authorization Bypass Through User-Controlled Key
- CWE-863 — CWE-863: Incorrect Authorization
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | 0 to <=28.0.0 |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-96qg-qxxj-r8xq (vendor-advisory)
- https://github.com/go-gitea/gitea/pull/39501 (patch)
- https://github.com/go-gitea/gitea/pull/39507 (patch)
- https://blog.gitea.com/release-of-28.1.0/ (release-notes)
- https://github.com/go-gitea/gitea/releases/tag/v28.1.0 (release-notes)
Generated from the official CVE List on 07 Oct 2026 10:16 UTC.