Description
When a release was edited, the files of the attachments to remove were deleted by the identifiers submitted in the form rather than by the attachments verified to belong to the release. A user with write access to the releases of any repository, including their own, could submit a crafted identifier that resolves to the stored file of another attachment and delete it, provided they know that attachment's UUID. The attachment record stayed, so downloads of the affected issue, comment or release file failed. Release edits now only delete the files of attachments that belong to the release.
Weaknesses
- CWE-22 — CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-639 — CWE-639: Authorization Bypass Through User-Controlled Key
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | 1.15.0 to <28.4.0 [affected] |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-4p89-xcq8-xfhm (vendor-advisory)
- https://github.com/go-gitea/gitea/pull/40120 (patch)
- https://github.com/go-gitea/gitea/pull/40268 (patch)
- https://blog.gitea.com/release-of-28.4.0/ (release-notes)
- https://github.com/go-gitea/gitea/releases/tag/v28.4.0 (release-notes)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 16 Nov 2026 08:07 UTC.