# CVE-2026-23968: Copier safe template has arbitrary filesystem read access via symlinks when _preserve_symlinks: false

- Severity: Medium 6.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-21T22:08:48.000Z
- Modified: 2026-07-07T17:57:15.178Z
- Also known as: GHSA-xjhm-gp88-8pfx, PYSEC-2026-1274
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- copier-org copier: < 9.11.2; before 9.11.2
- copier (PyPI): before 9.11.2

## Every score

- GitHub_M: CVSS:4.0 6.8 Medium `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`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/copier-org/copier/security/advisories/GHSA-xjhm-gp88-8pfx> (exploit, third-party-advisory, web)
- <https://github.com/copier-org/copier/commit/b3a7b3772d17cf0e7a4481978188c9f536c8d8f6> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23968> (advisory)
- <https://github.com/copier-org/copier> (package)
- <https://pypi.org/project/copier> (package)
- <https://github.com/advisories/GHSA-xjhm-gp88-8pfx> (advisory)

## Sources

- CVE List: [CVE-2026-23968](https://www.cve.org/CVERecord?id=CVE-2026-23968), CVE Terms of Use, modified 2026-01-22
- GitHub Advisory Database: [GHSA-xjhm-gp88-8pfx](https://github.com/advisories/GHSA-xjhm-gp88-8pfx), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-23968](https://nvd.nist.gov/vuln/detail/CVE-2026-23968), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1274](https://osv.dev/vulnerability/PYSEC-2026-1274), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2026-23968 · Whole record: https://cve.day/CVE-2026-23968.json · Rebuilt by cve.day 2026-11-25T22:59:13.030Z
