{"id":68330,"date":"2025-08-18T22:31:55","date_gmt":"2025-08-18T19:01:55","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-55214-copier-path-traversal-vulnerability\/"},"modified":"2025-08-18T22:31:55","modified_gmt":"2025-08-18T19:01:55","slug":"cve-2025-55214-copier-path-traversal-vulnerability","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-55214-copier-path-traversal-vulnerability\/","title":{"rendered":"CVE-2025-55214 &#8211; Copier Path Traversal Vulnerability"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-55214<br \/>\n<br \/>\n<strong>Published : <\/strong> Aug. 18, 2025, 5:15 p.m. | 56\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>Copier library and CLI app for rendering project templates. From 7.1.0 to before 9.9.1, Copier suggests that it&#8217;s safe to generate a project from a safe template, i.e. one that doesn&#8217;t use unsafe features like custom Jinja extensions which would require passing the &#8211;UNSAFE,&#8211;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&#8217;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&#8217;s write permissions), e.g., to cause havoc. This vulnerability is fixed in 9.9.1.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 6.9 | MEDIUM<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-55214 Published : Aug. 18, 2025, 5:15 p.m. | 56\u00a0minutes ago Description : Copier library and CLI app for rendering project templates. From 7.1.0 to before 9.9.1, Copier suggests that it&#8217;s safe to generate a project from a safe template, i.e. one that doesn&#8217;t use unsafe features like custom Jinja extensions which &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-68330","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/68330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=68330"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/68330\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=68330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=68330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=68330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}