CVE-2026-123065
published medium CVSS 3.1 · 5.7Gitea deletion of arbitrary attachment files through release edit
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | gitea.devGitea · 1.15.0 to < 28.4.0 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 1.15.0 to < 28.4.0 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
2- 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
References
5- Gitea 28.4.0 release announcement https://blog.gitea.com/release-of-28.4.0/
- Fix: go-gitea/gitea pull request #40120 https://github.com/go-gitea/gitea/pull/40120
- Fix backport to release/v28: go-gitea/gitea pull request #40268 https://github.com/go-gitea/gitea/pull/40268
- go-gitea/gitea v28.4.0 release https://github.com/go-gitea/gitea/releases/tag/v28.4.0
- GitHub Security Advisory GHSA-4p89-xcq8-xfhm https://github.com/go-gitea/gitea/security/advisories/GHSA-4p89-xcq8-xfhm
Provider assertions
2Gitea · cna
Gitea deletion of arbitrary attachment files through release edit
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 98c8a2517217f047cc1b893158168922306b079c026326dc92a385da65d0b083
- Ingested
- 17 Nov 2026, 15:17:56 UTC
- Source record
- Official CVE record