{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-55214","id":"CVE-2025-55214","title":"Copier safe template has filesystem write access outside destination path","description":"Copier library and CLI app for rendering project templates. From 7.1.0 to before 9.9.1, 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 write files outside the destination path where a project shall b","descriptionLong":"Copier library and CLI app for rendering project templates. From 7.1.0 to before 9.9.1, 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 write files outside the destination path where a project shall be generated or updated. This is possible when rendering a generated directory structure whose rendered path is either a relative parent path or an absolute path. Constructing such paths is possible using Copier's builtin pathjoin Jinja filter and its builtin _copier_conf.sep variable, which is the platform-native path separator. This way, a malicious template author can create a template that overwrites arbitrary files (according to the user's write permissions), e.g., to cause havoc. This vulnerability is fixed in 9.9.1.","published":"2025-08-18T16:36:46.621Z","updated":"2026-10-28T02:30:54.461788969Z","reserved":"2025-08-08T21:55:07.967Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["copier-org copier"],"affectedProducts":[{"vendor":"copier-org","product":"copier","defaultStatus":null,"versions":[{"version":">= 7.1.0, < 9.9.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"copier","purl":"pkg:pypi/copier","ranges":[">=7.1.0 <9.9.1"],"fixed":["9.9.1"],"advisory":"GHSA-p7q8-grrj-3m8w"}],"cwes":["CWE-22"],"aliases":["GHSA-p7q8-grrj-3m8w","PYSEC-2026-1273"],"references":[{"url":"https://github.com/copier-org/copier/security/advisories/GHSA-p7q8-grrj-3m8w","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/copier-org/copier/commit/fdbc0167cc22780b497e4db176feaf6f024757d6","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/55xxx/CVE-2025-55214.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55214","tags":["advisory"]},{"url":"https://github.com/copier-org/copier","tags":["package"]},{"url":"https://pypi.org/project/copier","tags":["package"]},{"url":"https://github.com/advisories/GHSA-p7q8-grrj-3m8w","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00301,"epssPercentile":0.23305,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-55214","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55214","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-55214","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p7q8-grrj-3m8w","ok":true,"note":"GHSA-p7q8-grrj-3m8w"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-55214","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}