# CVE-2026-123065: Gitea deletion of arbitrary attachment files through release edit

- Severity: Medium 5.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-11-15T21:14:01.669Z
- Modified: 2026-11-17T16:17:41.163Z
- Weaknesses: CWE-22, CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Gitea

## 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.

(As written by CVE List.)

## Affected

- gitea.dev: from 1.15.0 before 28.4.0

## 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)

## Sources

- CVE List: [CVE-2026-123065](https://www.cve.org/CVERecord?id=CVE-2026-123065), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-123065](https://nvd.nist.gov/vuln/detail/CVE-2026-123065), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-123065 · Whole record: https://cve.day/CVE-2026-123065.json · Rebuilt by cve.day 2026-11-25T22:59:50.838Z
