{"id":"CVE-2026-23968","published":"2026-01-21T22:13:25Z","modified":"2026-01-22T16:49:32Z","title":"Copier safe template has arbitrary filesystem read access via symlinks when _preserve_symlinks: false","vendor":"copier-org","product":"copier","tier":"tail","description":{"text":"Copier is a library and CLI app for rendering project templates. Prior to version 9.11.2, Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use unsafe features like custom Jinja extensions which would require passing the `--UNSAFE,--trust` flag. As it turns out, a safe template can currently include arbitrary files/directories outside the local template clone location by using symlinks along with `_preserve_symlinks: false` (which is Copier's default setting). Version 9.11.2 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00239,"percentile":0.15245,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://github.com/copier-org/copier/security/advisories/GHSA-xjhm-gp88-8pfx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/copier-org/copier/commit/b3a7b3772d17cf0e7a4481978188c9f536c8d8f6","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":3.05},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"copier-org","affectedVersions":[{"vendor":"copier-org","product":"copier","versions":["< 9.11.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-22T15:09:28.359725Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"copier","vulnerableRanges":["<9.11.2"],"patched":["9.11.2"],"from":["GHSA-xjhm-gp88-8pfx","PYSEC-2026-1274"],"provenance":"source"}],"summary":{"text":"The flaw is in Copier's template rendering component, where symlinks in a template are followed when _preserve_symlinks is set to false (the default), affecting the copier library and CLI. An attacker who can supply a template that is considered safe (one that does not use unsafe features such as custom Jinja extensions) can cause files or directories outside the local template clone to be included in the generated output, which requires local access, no privileges, and a user to generate a project from the malicious template.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:11Z"},"euvd":{"id":"EUVD-2026-4142","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-55201","published":"2025-08-18","fixed":"9.9.1","kev":false},{"cve":"CVE-2025-55214","published":"2025-08-18","fixed":"9.9.1","kev":false,"link":{"from":"CVE-2025-55214","to":"CVE-2026-23968","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:copier","fromFixed":"9.9.1","toFixed":"9.11.2","daysApart":156},{"kind":"same-code","provenance":"machine","files":["copier/_main.py"],"commits":["https://github.com/copier-org/copier/commit/fdbc0167cc22780b497e4db176feaf6f024757d6","https://github.com/copier-org/copier/commit/b3a7b3772d17cf0e7a4481978188c9f536c8d8f6"],"basis":"shared file"}]}},{"cve":"CVE-2026-23968","published":"2026-01-21","fixed":"9.11.2","kev":false},{"cve":"CVE-2026-23986","published":"2026-01-21","fixed":"9.11.2","kev":false},{"cve":"CVE-2026-34726","published":"2026-04-02","fixed":"9.14.1","kev":false},{"cve":"CVE-2026-34730","published":"2026-04-02","fixed":"9.14.1","kev":false}],"package":"PyPI:copier"}}