Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with release write access on any repo
-
DeliveryObtain victim attachment UUID from pages/APIs/URLs
-
ExploitSubmit crafted traversal UUID in release-edit form
-
ExecutionAuthorization check bypassed (no matching DB row)
-
PersistStorage deletes foreign attachment file
-
ImpactDownloads fail with dangling record / HTTP 500
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Gitea account that holds release write permission on at least one repository - crucially, this can be the attacker's own repository, so any low-trust collaborator or self-registered user who can create a repo qualifies. The attacker must know the target attachment's UUID, which the advisory notes is exposed through repository pages, APIs, and download URLs, making enumeration/discovery feasible. Exploitation depends on Gitea's shared attachment storage layout, where all repositories' attachment files live under one root that the crafted traversal path can reach (FilePathJoinAbs blocks escaping above the storage root but permits movement within it). Limiting factors: a valid authenticated account and release write permission are required (not fully unauthenticated), the victim UUID must be known, and only file deletion/DoS is possible - there is no confidentiality exposure and database records are not altered. |
| Impact | This is a genuine but moderate-priority integrity flaw rather than an emergency. The provided CVSS:3.1 vector (AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N, 5.7) shows a network-reachable, low-complexity issue that nonetheless requires privileges (PR:L) - an authenticated account with release write permission on any repository. EPSS is low (0.24%, 15th percentile) and the vulnerability is NOT in CISA KEV, so there is no_public_exploit_identified and no evidence of active or automated exploitation; these signals agree that mass exploitation is unlikely. The vuln.today decision label is 'this_month', consistent with a patch-available, non-emergency integrity bug. One signal to flag: the vendor set UI:R, but the GHSA evidence describes the attacker performing their own crafted release-edit submission, which does not obviously require a separate victim's interaction - the UI:R choice is not explained in the available sources and may overstate the barrier. Also note the vendor rated A:N despite the advisory documenting a short-UUID HTTP 500 denial-of-service and persistent download failures (dangling DB rows pointing at deleted files); real availability impact to repository assets exists even though the base score marks A:N. The dominant real-world risk is an insider/low-trust-collaborator deleting other tenants' attachment and release files instance-wide on a shared storage backend, not opportunistic internet-wide attacks. |
| Exploit ScenarioDerived | An authenticated user who holds release write permission on any repository (including one they created themselves) opens the release-edit form and submits a crafted attachment-del entry containing a path-traversal UUID such as '../../../8/f/<victim-uuid>'. The backend's authorization check passes because the traversal string matches no database row, but the storage layer still deletes the resolved file, destroying another repository's attachment or release asset while leaving its database record intact. No public exploit is identified, but the GHSA advisory documents the exact mechanism and code paths. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 17, 2026
Attachment file deletion in Gitea 1.15 through 28.3.x allows an authenticated user holding release write permission on any repository - including one they created themselves - to delete stored files belonging to other repositories' attachments by submitting a crafted traversal identifier in a release edit, provided the victim attachment's UUID is known. The database records survive the deletion, so affected issue, comment and release downloads subsequently fail with HTTP 500, and a short malformed identifier causes an immediate request error. The vendor fixed the issue in 28.4.0; EPSS is 0.24% (15th percentile), and no public exploit code was identified at time of analysis.
RemediationAI
Vendor-released patch: Gitea 28.4.0 - upgrade to that release, which changes release edits so that only files of attachments verified to belong to the release are deleted from storage; the fix is referenced by pull requests https://github.com/go-gitea/gitea/pull/40120 and https://github.com/go-gitea/gitea/pull/40268, and full details are in the advisory at https://github.com/go-gitea/gitea/security/advisories/GHSA-4p89-xcq8-xfhm. Where an immediate upgrade is not possible, reduce exposure by restricting release write permission and repository creation to trusted accounts, since the exploit only requires write access to the releases of any repository - including the attacker's own - with the trade-off of reduced self-service collaboration for untrusted users; note that this is a containment measure rather than a complete fix, because the traversal is confined only by FilePathJoinAbs and any account that can create a repository and know a UUID can still trigger cross-repository file deletion. Back up the attachment storage directory before upgrading to allow recovery of files already deleted, and be aware that restoring deleted blobs is required separately from patching because the database attachment rows remain but their backing files are gone.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw sits in Gitea's release editing flow and is a path traversal (CWE-22) compounded by an authorization/ownership confusion (CWE-639, as classified in the GHSA). The edit form submits attachment-del-<uuid>=true entries; the router collects these raw keys from the form without validating their format, the release service resolves them through the database and correctly rejects attachments that do not belong to the edited release, but the subsequent storage deletion loop iterates over the raw, unresolved request list instead of the authorized set. The storage path is built by AttachmentRelativePath, which performs no length or format validation and simply joins uuid[0:1], uuid[1:2] and the uuid - a one-character input panics on the slice, while a traversal string such as ../../../8/f/<victim-uuid> normalizes through path.Join and FilePathJoinAbs into the victim path inside Gitea's single shared attachment store. FilePathJoinAbs blocks escaping above the storage root but permits movement within it, which is exactly what makes cross-repository deletion possible. Legitimate UUIDs are exposed through pages, APIs and download URLs, so a determined attacker can discover targets, and because only the storage object is removed while the database row is retained, the damage is persistent and manifests as failed downloads.
Know when Gitea gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
Network-reachable release-edit endpoint, low complexity; PR:L because release write access is required; UI:N since the attacker submits their own crafted form; I:H for arbitrary cross-repo file deletion, C:N/A:N per observed impact.
Primary rating from Vendor (Gitea).
CVSS VectorVendor: Gitea
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
EUVD-2026-126123
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB