Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| copier-org | copier | affected |
|
No data.
| Vendor | Product | Versions |
|---|---|---|
| Copier-org | Copier | — |
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-4fqp-r85r-hxqh | Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.270% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:copier-org:copier:*:*:*:*:*:python:*:* | |
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Copier-org
Copier-org copier |
|
| Vendors & Products |
Copier-org
Copier-org copier |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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 write to arbitrary directories outside the destination path by using directory a symlink along with `_preserve_symlinks: true` and a generated directory structure whose rendered path is inside the symlinked directory. This way, a malicious template author can create a template that overwrites arbitrary files (according to the user's write permissions), e.g., to cause havoc. Version 9.11.2 patches the issue. | |
| Title | Copier safe template has arbitrary filesystem write access via directory symlinks when _preserve_symlinks: true | |
| Weaknesses | CWE-61 | |
| References |
| |
| Metrics |
cvssV4_0
|