Skip to main content

Gitea EUVDEUVD-2026-126123

| CVE-2026-123065 MEDIUM
Path Traversal (CWE-22)
2026-11-15 Gitea
5.7
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with release write access on any repo
  2. Delivery
    Obtain victim attachment UUID from pages/APIs/URLs
  3. Exploit
    Submit crafted traversal UUID in release-edit form
  4. Execution
    Authorization check bypassed (no matching DB row)
  5. Persist
    Storage deletes foreign attachment file
  6. Impact
    Downloads 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Gitea 1.15.0 <28.4.0

Affected Packages

euvd gitea fix: 28.4.0

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

Vendor (Gitea) PRIMARY 5.7 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
CVSS changed
Nov 17, 2026 - 16:22 NVD
5.7 (MEDIUM)
CVE Published
Nov 15, 2026 - 21:14 cve.org
UNKNOWN (no severity yet)

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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
popular self-hosted Git service, common in dev teams but not ubiquitous
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

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

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy