<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-03T06:47:59.370642+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2025-55201</id>
    <title>CVE-2025-55201 — Copier safe template has arbitrary filesystem read/write access</title>
    <updated>2026-10-03T06:47:59.373853+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> copier-org copier</p>
<p>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.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2025-55201"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-3xw7-v6cj-5q8h</id>
    <title>GHSA-3xw7-v6cj-5q8h — Copier's safe template has arbitrary filesystem read/write access</title>
    <updated>2026-10-03T06:47:59.373913+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: copier</p>
<p>### Impact</p>
<p>Copier's current security model shall restrict filesystem access through Jinja:</p>
<p>- Files can only be read using `{% include ... %}`, which is limited by Jinja to reading files from the subtree of the local template clone in our case.
- Files are written in the destination directory according to their counterparts in the template.</p>
<p>Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use [unsafe](https://copier.readthedocs.io/en/stable/configuring/#unsafe) features like custom Jinja extensions which would require passing the `--UNSAFE,--trust` flag. As it turns out, a safe template can currently read and write arbitrary files because we expose a few `pathlib.Path` objects in the Jinja context which have unconstrained I/O methods. This effectively renders our security model w.r.t. filesystem access useless.</p>
<p>#### Arbitrary read access</p>
<p>Imagine, e.g., a malicious template author who creates a template that reads SSH keys or other secrets from well-known locations, perhaps "masks" them with Base64 encoding to reduce detection risk, and hopes for a user to push the generated project to a public location like [github.com](http://github.com/) where the template author can extract the secrets.</p>
<p>Reproducible example:</p>
<p>- Read known file:</p>
<p>```shell
    echo "s3cr3t" &gt; secret.txt
    mkdir src/
    echo "stolen secret: {{ (_copier_conf.dst_path / '..' / 'secret.txt').resolve().read_text('utf-8') }}" &gt; src/stolen-secret.txt.jinj…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-3xw7-v6cj-5q8h"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/pysec-2026-1271</id>
    <title>PYSEC-2026-1271 — Copier's safe template has arbitrary filesystem read/write access</title>
    <updated>2026-10-03T06:47:59.373979+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: copier</p>
<p>### Impact</p>
<p>Copier's current security model shall restrict filesystem access through Jinja:</p>
<p>- Files can only be read using `{% include ... %}`, which is limited by Jinja to reading files from the subtree of the local template clone in our case.
- Files are written in the destination directory according to their counterparts in the template.</p>
<p>Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use [unsafe](https://copier.readthedocs.io/en/stable/configuring/#unsafe) features like custom Jinja extensions which would require passing the `--UNSAFE,--trust` flag. As it turns out, a safe template can currently read and write arbitrary files because we expose a few `pathlib.Path` objects in the Jinja context which have unconstrained I/O methods. This effectively renders our security model w.r.t. filesystem access useless.</p>
<p>#### Arbitrary read access</p>
<p>Imagine, e.g., a malicious template author who creates a template that reads SSH keys or other secrets from well-known locations, perhaps "masks" them with Base64 encoding to reduce detection risk, and hopes for a user to push the generated project to a public location like [github.com](http://github.com/) where the template author can extract the secrets.</p>
<p>Reproducible example:</p>
<p>- Read known file:</p>
<p>```shell
    echo "s3cr3t" &gt; secret.txt
    mkdir src/
    echo "stolen secret: {{ (_copier_conf.dst_path / '..' / 'secret.txt').resolve().read_text('utf-8') }}" &gt; src/stolen-secret.txt.jinj…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/pysec-2026-1271"/>
  </entry>
</feed>
