---
title: "CVE-2026-25718: Gitea template repository generation follows unsafe filesystem paths"
url: https://erroneo.us/security/cve/CVE-2026-25718/
description: "CVE-2026-25718 (code.gitea.io/gitea (Go)): Gitea versions before 1.25.5 mishandle path resolution during template repository generation, allowing template…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-07-03
date_modified: 2026-09-01
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-25718"
kev: false
cvss: 9.1
epss: 0.00562
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-25718: Gitea template repository generation follows unsafe filesystem paths

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.6% , percentile 46: FIRST’s model estimates a 0.6% chance of exploitation activity in the next 30 days, higher than 46% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes code.gitea.io/gitea (Go) < 1.25.5, fixed in 1.25.5 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `code.gitea.io/gitea` < 1.25.5 → fixed: 1.25.5

## Affected products (CVE record)

- Gitea Gitea Open Source Git Server: < 1.25.5

## Severity

- CISA-ADP CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.56% probability of exploitation activity in the next 30 days; percentile 46.

## Sources

- [GitHub Pull Request #36734](https://github.com/go-gitea/gitea/pull/36734)
- [GitHub Pull Request #36746](https://github.com/go-gitea/gitea/pull/36746)
- [Gitea v1.25.5 Release](https://github.com/go-gitea/gitea/releases/tag/v1.25.5)
- [Gitea v1.25.5 Release Blog Post](https://blog.gitea.com/release-of-1.25.5/)
- [GitHub Advisory GHSA-h697-89cp-24q8](https://github.com/advisories/GHSA-h697-89cp-24q8)
- [CVE.org record CVE-2026-25718](https://www.cve.org/CVERecord?id=CVE-2026-25718)
- [NVD entry CVE-2026-25718](https://nvd.nist.gov/vuln/detail/CVE-2026-25718)
- [github.com](https://github.com/go-gitea/gitea/commit/2176e84ab977011ff2bc3f3a9066020cc674f6b1)
- [github.com](https://github.com/go-gitea/gitea/commit/579615936c1ef7ba16c8887b9d12ade4c44f78fa)

---
Source page: https://erroneo.us/security/cve/CVE-2026-25718/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
