CVE-2026-25718

Gitea template repository generation mishandles symlinked paths

Published Jul 3, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
Gitea versions before 1.25.5 mishandle path resolution during template repository generation, allowing template processing to read or write through symlinked or otherwise non-regular paths.

Analysis

AI-generated

Technical impact

Gitea versions older than 1.25.5 improperly resolve paths when generating a template repository, allowing a path traversal through symlinks or other non‑regular paths (CWE‑59). This flaw enables an attacker to overwrite files, potentially compromising configuration files, sensitive data, and providing a foothold for further compromise.

Affected Systems

The vulnerability affects all installations of the Gitea Open Source Git Server running any version prior to v1.25.5. Any instance that permits users to generate template repositories—whether in development or production—remains susceptible, regardless of the deployment environment.

Risk and Exploitability

The EPSS score of less than 1% indicates a very low exploitation probability, and the issue is not listed in the CISA KEV catalog, suggesting no confirmed widespread exploitation yet. The CVSS score of 9.1 rates the vulnerability as Critical impact on confidentiality, integrity, and availability. The likely attack vector is an attacker who can initiate template repository creation within an authenticated Gitea session, as the flaw is exposed through the template generation process; this inference is based on the description that the vulnerability is triggered by template processing. Once triggered, the attacker can read or overwrite files, posing a significant confidentiality and integrity risk to the host filesystem. The attack surface is therefore limited to deployments where template generation is enabled and the user possesses sufficient permissions within Gitea to start that process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to v1.25.5 or later so the path resolution flaw is removed
  • Restrict template repository generation to trusted users or disable the feature entirely in production deployments
  • Audit file permissions in directories involved in template repository generation, and enforce least privilege on file accesses

Generated by OpenCVE AI on August 1, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h697-89cp-24q8 Gitea template repository generation follows unsafe filesystem paths
History
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description Gitea versions before 1.25.5 mishandle path resolution during template repository generation, allowing template processing to read or write through symlinked or otherwise non-regular paths.
Title Gitea template repository generation mishandles symlinked paths
Weaknesses CWE-59
References
Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jul 7, 2026, 4:59 PM
Reserved
Feb 22, 2026, 3:13 PM
Status
Deferred
Published
Jul 3, 2026, 9:16 PM
Modified
Oct 25, 2026, 3:10 PM