PT-2026-56480 · Pypi · Copier
CVSS v4.0
8.8
High
| Vector | AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
Name of the Vulnerable Software and Affected Versions
Copier versions 9.5.0 through 9.15.1
Description
An issue exists in the
trust setting's prefix match within copier/ settings.py where the template URL is compared against a trusted prefix using str.startswith without path normalization. Because the URL is normalized during the actual fetch process (using Path.resolve() for local paths and libcurl dot-segment removal for HTTPS), a template reference containing .. that textually starts with a trusted prefix can be granted trust. This allows an attacker-controlled template to execute tasks, migrations, or jinja extensions without the --trust prompt, leading to arbitrary command execution.Recommendations
Update to version 9.15.2.
Exploit
Fix
Path traversal
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Copier