Description
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.
Published: 2026-07-03
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gitea releases prior to 1.25.5 construct file paths for release assets by concatenating and the asset filename without sanitizing them. This design allows an attacker who can create a release to supply a maliciously named asset, causing the application to write files to directories outside the intended upload folder. Based on the description, it is inferred that such crafted names could result in arbitrary file writes on the host, potentially overwriting critical configuration files or creating privileged files, which constitutes a File and Directory Path Traversal weakness (CWE‑22).

Affected Systems

All versions of the Gitea Open Source Git Server released before 1.25.5 are affected. Any deployment that permits users to create releases and attach assets—regardless of operating system, cloud platform, or hosting environment—is within risk scope.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate impact, while the EPSS score of < 1% reflects a very low but not zero exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Based on the information, it is inferred that an attacker must have authenticated permissions to publish releases; through the upload of a malicious asset name, they can trigger the path traversal and write arbitrary files on the host. The attack vector is therefore limited to those who can modify releases via the web interface or API.

Generated by OpenCVE AI on July 23, 2026 at 16:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Gitea 1.25.5 or later, which sanitizes tag and asset names when constructing file paths.
  • If upgrading is not immediately possible, restrict the ability of untrusted users to create releases or enforce strict validation of asset names to reject characters such as "..", "/", or backslashes.
  • Run the Gitea service with the least privilege and configure the upload directory permissions so that only the Gitea process can write to it, thereby protecting critical system files from accidental overwrite.

Generated by OpenCVE AI on July 23, 2026 at 16:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 07 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Fri, 03 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Gitea repository dumps write release assets using unsafe path names
Weaknesses CWE-22
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-07T16:58:39.576Z

Reserved: 2026-03-03T03:25:28.526Z

Link: CVE-2026-28705

cve-icon Vulnrichment

Updated: 2026-07-07T16:28:34.923Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T16:15:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')