CVE-2026-145570
Deferred Deferred - Pending Action

Arbitrary File Read in Copier via Symlink in Jinja FileSystemLoader

Vulnerability report for CVE-2026-145570, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-05

Last updated on: 2026-12-05

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-05
Last Modified
2026-12-05
Generated
2026-12-06
AI Q&A
2026-12-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
copier-org copier From 8.0.0 (inc) to 9.17.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Copier 8.0.0 before 9.17.2 has an arbitrary file read vulnerability. Malicious templates can exploit symlinks to read files outside the template root using the Jinja FileSystemLoader. Attackers can create a symlink, enable _preserve_symlinks, and use an include tag to access sensitive files like credentials or SSH keys without requiring --trust mode.

Detection Guidance

To detect this vulnerability, check if your Copier version is below 9.17.2. Run: copier --version. If the output shows a version earlier than 9.17.2, the system is vulnerable. Additionally, inspect templates for malicious symlinks or include tags referencing external paths.

Impact Analysis

This vulnerability allows attackers to read sensitive files on your system, potentially exposing credentials, SSH keys, or other confidential data. If you use Copier for project generation, an attacker could craft malicious templates to steal information without direct access to your system.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive files such as credentials or SSH keys, which may contain personal or confidential data. Such exposure risks violating GDPR (if personal data is accessed) and HIPAA (if protected health information is compromised), depending on the files accessed.

Mitigation Strategies

Upgrade Copier to version 9.17.2 or later immediately. Remove any untrusted templates and avoid using the --trust flag. Review template directories for suspicious symlinks or include directives pointing outside the root.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-145570. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...