Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Creating releases requires authenticated write access (PR:L); a separate actor must trigger the dump (UI:R); path traversal affects both file write destination (I:L) and potential exposure of adjacent content (C:L).
Primary rating from Vendor (Gitea).
CVSS VectorVendor: Gitea
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Lifecycle Timeline
3DescriptionCVE.org
Gitea versions before 1.25.5 use release tag names and asset names as filesystem path components when dumping release assets, allowing specially crafted names to affect dump output paths.
AnalysisAI
Path traversal in Gitea's release asset dump functionality (all versions before 1.25.5) allows attackers who can create releases with malicious tag or asset names to influence where dump output files are written on the server filesystem. The root cause - confirmed by reviewed PR diffs - is that dump.go passed user-controlled release.TagName and asset.Name directly into filepath.Join() without sanitization. No public exploit or active exploitation has been identified; EPSS is 0.18% (8th percentile) and SSVC confirms exploitation status as none.
Technical ContextAI
The vulnerable code resides in services/migrations/dump.go, where Gitea constructs filesystem paths for dumped release assets using filepath.Join('release_assets', release.TagName) and filepath.Join(attachDir, asset.Name). Because TagName and asset.Name are user-supplied strings never validated for path traversal sequences such as '../', a specially crafted name can redirect dump output outside the intended directory. The affected product is Gitea Open Source Git Server (CPE: cpe:2.3:a:gitea:gitea_open_source_git_server:*:*:*:*:*:*:*:*) in all versions from 0 up to 1.25.5. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal), a classic failure to sanitize user input before using it in filesystem operations. The upstream fix, confirmed via PRs #36799 and #36839, replaces both TagName and asset.Name with uuid.New().String() values, severing the link between user-controlled input and file paths entirely.
RemediationAI
Upgrade to Gitea version 1.25.5 or later; this is a vendor-released patch confirmed by the official release tag and blog post. The fix is implemented via PRs #36799 (https://github.com/go-gitea/gitea/pull/36799) and #36839 (https://github.com/go-gitea/gitea/pull/36839), both of which replace user-controlled names with UUID strings in dump path construction. For organizations unable to patch immediately, restricting or disabling access to Gitea's repository dump and migration endpoints is the most targeted compensating control, though this will impact backup and repository transfer workflows. Additionally, auditing existing repositories for release tag names and asset names containing path traversal patterns (e.g., sequences with '../' or absolute path prefixes) can identify prior exposure before patching.
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
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
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
An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4. Rated high severity (CVSS 7.1), this vulnerab
Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5. Rated medium severity (CVSS 6.1), this vulne
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-41641
GHSA-7jvx-g65v-r899