{"id":"GHSA-h697-89cp-24q8","summary":"Gitea template repository generation follows unsafe filesystem paths","details":"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.","aliases":["CVE-2026-25718","GO-2026-6340"],"modified":"2026-09-02T19:40:54.286715757Z","published":"2026-07-03T21:31:37Z","database_specific":{"nvd_published_at":"2026-07-03T21:16:57Z","cwe_ids":["CWE-59"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-09-01T17:19:34Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25718"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/36734"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/36746"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/commit/2176e84ab977011ff2bc3f3a9066020cc674f6b1"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/commit/579615936c1ef7ba16c8887b9d12ade4c44f78fa"},{"type":"WEB","url":"https://blog.gitea.com/release-of-1.25.5"},{"type":"PACKAGE","url":"https://github.com/go-gitea/gitea"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/releases/tag/v1.25.5"}],"affected":[{"package":{"name":"code.gitea.io/gitea","ecosystem":"Go","purl":"pkg:golang/code.gitea.io/gitea"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-h697-89cp-24q8/GHSA-h697-89cp-24q8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}