# CVE-2026-34726: Copier `_subdirectory` allows template root escape via parent-directory traversal

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A: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.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-01T22:28:49.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-85v3-4m8g-hrh6, PYSEC-2026-2134
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, 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.14.1, Copier's _subdirectory setting is documented as the subdirectory to use as the template root. However, the current implementation accepts parent-directory traversal such as .. and uses it directly when selecting the template root. As a result, a template can escape its own directory and make Copier render files from the parent directory without --UNSAFE. This issue has been patched in version 9.14.1.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/copier-org/copier/security/advisories/GHSA-85v3-4m8g-hrh6> (exploit, evidence, vendor-advisory, web)
- <https://github.com/copier-org/copier/commit/cb80a3ffc9c3787de3ed837e04ca29a0ff8ca3df> (fix, patch, web)
- <https://github.com/copier-org/copier/releases/tag/v9.14.1> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34726> (advisory)
- <https://github.com/copier-org/copier> (package)

## Sources

- CVE List: [CVE-2026-34726](https://www.cve.org/CVERecord?id=CVE-2026-34726), CVE Terms of Use, modified 2026-04-03
- GitHub Advisory Database: [GHSA-85v3-4m8g-hrh6](https://github.com/advisories/GHSA-85v3-4m8g-hrh6), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-34726](https://nvd.nist.gov/vuln/detail/CVE-2026-34726), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2134](https://osv.dev/vulnerability/PYSEC-2026-2134), CC-BY-4.0, modified 2026-07-13

---

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