# CVE-2026-25718: Gitea template repository generation mishandles symlinked paths

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-07-03T20:19:33.104Z
- Modified: 2026-10-25T15:10:00.147Z
- Also known as: GHSA-h697-89cp-24q8, GO-2026-6340
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Gitea

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

(As written by CVE List.)

## Affected

- Gitea Gitea Open Source Git Server: before 1.25.5
- code.gitea.io/gitea (Go): before 1.25.5

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `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 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/go-gitea/gitea/pull/36734> (patch, web)
- <https://github.com/go-gitea/gitea/pull/36746> (patch, web)
- <https://github.com/go-gitea/gitea/releases/tag/v1.25.5> (release-notes, web)
- <https://blog.gitea.com/release-of-1.25.5/> (release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25718> (advisory)
- <https://github.com/go-gitea/gitea/commit/2176e84ab977011ff2bc3f3a9066020cc674f6b1> (web)
- <https://github.com/go-gitea/gitea/commit/579615936c1ef7ba16c8887b9d12ade4c44f78fa> (web)
- <https://blog.gitea.com/release-of-1.25.5> (web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/advisories/GHSA-h697-89cp-24q8> (advisory)

## Sources

- CVE List: [CVE-2026-25718](https://www.cve.org/CVERecord?id=CVE-2026-25718), CVE Terms of Use, modified 2026-07-07
- GitHub Advisory Database: [GHSA-h697-89cp-24q8](https://github.com/advisories/GHSA-h697-89cp-24q8), CC-BY-4.0, modified 2026-09-02
- Go Vulnerability Database: [GO-2026-6340](https://pkg.go.dev/vuln/GO-2026-6340), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-25718](https://nvd.nist.gov/vuln/detail/CVE-2026-25718), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-25718 · Whole record: https://cve.day/CVE-2026-25718.json · Rebuilt by cve.day 2026-11-25T22:59:27.110Z
