{"id":"CVE-2025-55201","published":"2025-08-18T16:21:25Z","modified":"2025-08-18T17:37:53Z","title":"Copier safe template has arbitrary filesystem read/write access","vendor":"copier-org","product":"copier","tier":"tail","description":{"text":"Copier library and CLI app for rendering project templates. Prior to 9.9.1, a safe template can currently read and write arbitrary files because Copier exposes a few pathlib.Path objects in the Jinja context which have unconstrained I/O methods. This effectively renders the security model w.r.t. filesystem access useless. This vulnerability is fixed in 9.9.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00296,"percentile":0.22769,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/copier-org/copier/security/advisories/GHSA-3xw7-v6cj-5q8h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/copier-org/copier/commit/3feea3b3ff3c20d80cbb16a2f3b9567ffc5606d1","tags":["x_refsource_MISC"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":4.55},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"copier-org","affectedVersions":[{"vendor":"copier-org","product":"copier","versions":["< 9.9.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-18T17:37:40.776729Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"copier","vulnerableRanges":["<9.9.1"],"patched":["9.9.1"],"from":["GHSA-3xw7-v6cj-5q8h","PYSEC-2026-1271"],"provenance":"source"}],"summary":{"text":"The Copier library and CLI application for rendering project templates contains a flaw in its safe-template mode, where a few pathlib.Path objects exposed in the Jinja context carry unconstrained read and write methods that defeat the intended filesystem restrictions. An attacker who can supply a template that is rendered in safe mode, and who gets a user to take action such as running or accepting that template, can read and write arbitrary files on the local system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:31Z"},"euvd":{"id":"EUVD-2025-25132","exploited":false,"provenance":"source"}}