Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2026-25718

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

July 3, 2026 (updated September 1, 2026)

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.

References

  • blog.gitea.com/release-of-1.25.5
  • github.com/advisories/GHSA-h697-89cp-24q8
  • github.com/go-gitea/gitea/commit/2176e84ab977011ff2bc3f3a9066020cc674f6b1
  • github.com/go-gitea/gitea/commit/579615936c1ef7ba16c8887b9d12ade4c44f78fa
  • github.com/go-gitea/gitea/pull/36734
  • github.com/go-gitea/gitea/pull/36746
  • github.com/go-gitea/gitea/releases/tag/v1.25.5
  • nvd.nist.gov/vuln/detail/CVE-2026-25718

Code Behaviors & Features

Detect and mitigate CVE-2026-25718 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.25.5

Fixed versions

  • 1.25.5

Solution

Upgrade to version 1.25.5 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

go/code.gitea.io/gitea/CVE-2026-25718.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 08 Sep 2026 00:17:16 +0000.