Copier `_subdirectory` allows template root escape via parent-directory traversal
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-85v3-4m8g-hrh6 | Copier `_subdirectory` allows template root escape via parent-directory traversal |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.397% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:copier-org:copier:*:*:*:*:*:python:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| 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 |
|---|---|---|
| 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. | |
| Title | Copier `_subdirectory` allows template root escape via parent-directory traversal | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV3_1
|