CVE-2026-145570

medium

Description

Copier 8.0.0 before 9.17.2 contains an arbitrary file read vulnerability that allows malicious templates to read files outside the template root via symlinks followed by the Jinja FileSystemLoader. Attackers can ship a symlink, enable _preserve_symlinks, and reference it with an include tag to render credentials or SSH keys into generated projects without --trust.

References

https://www.vulncheck.com/advisories/copier-8.0.0-before-9.17.2-arbitrary-file-read-via-symlinked-jinja-include

https://github.com/copier-org/copier/security/advisories/GHSA-rg63-g45r-jc58

https://github.com/copier-org/copier/releases/tag/v9.17.2

https://github.com/copier-org/copier/commit/1ae1a9461e80662a4a11b62f423d56590dfb93f6

https://github.com/copier-org/copier/blob/v9.17.1/copier/_main.py#L698-L705

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-145708

Details

Source: Mitre, NVD

Published: 2026-12-05

Updated: 2026-12-05

CVSS v3

Base Score: 5.5

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Severity: Medium

CVSS v4

Base Score: 6.8

Vector: 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

Severity: Medium