{"id":"CVE-2026-25718","aliases":["CVE-2026-25718","GHSA-h697-89cp-24q8","GO-2026-6340"],"related":[],"kind":"vulnerability","state":"published","title":"Gitea template repository generation mishandles symlinked paths","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Gitea template repository generation follows unsafe filesystem paths in code.gitea.io/gitea","format":"markdown","source":"go"},{"lang":"es","text":"Las versiones de Gitea anteriores a la 1.25.5 manejan incorrectamente la resolución de rutas durante la generación de repositorios de plantilla, permitiendo que el procesamiento de plantillas lea o escriba a través de rutas con enlaces simbólicos o de otro modo no regulares.","source":"nvd"}],"published":"2026-07-03T20:19:33.104Z","modified":"2026-10-25T15:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.25.5","status":"affected"}],"vendor":"Gitea","product":"Gitea Open Source Git Server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.5"}],"ecosystem":"Go","package":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.5"}],"ecosystem":"Go","package":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","source":"go"}],"references":[{"url":"https://github.com/go-gitea/gitea/pull/36734","tags":["patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/36746","tags":["patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.25.5","tags":["release-notes","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://blog.gitea.com/release-of-1.25.5/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25718","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/go-gitea/gitea/commit/2176e84ab977011ff2bc3f3a9066020cc674f6b1","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-gitea/gitea/commit/579615936c1ef7ba16c8887b9d12ade4c44f78fa","tags":["web"],"sources":["ghsa","go"]},{"url":"https://blog.gitea.com/release-of-1.25.5","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-h697-89cp-24q8","tags":["advisory"],"sources":["go"]}],"credits":["yonatan-pl"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-07-07T16:15:33.744Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25718","url":"https://www.cve.org/CVERecord?id=CVE-2026-25718","licence":"CVE Terms of Use","modified":"2026-07-07T16:59:46.910Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h697-89cp-24q8","url":"https://github.com/advisories/GHSA-h697-89cp-24q8","licence":"CC-BY-4.0","modified":"2026-09-02T19:41:25.388Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6340","url":"https://pkg.go.dev/vuln/GO-2026-6340","licence":"CC-BY-4.0","modified":"2026-09-02T19:30:10.022Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25718","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25718","licence":"Public domain","modified":"2026-10-25T15:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.110Z","epss":{"score":0.00428,"percentile":0.38966,"date":"2026-12-01T12:00:22.000Z"}}