4.4 MEDIUM
- CVSS version: 3.1
- Attack vector (AV): LOCAL
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): REQUIRED
- Scope (S): UNCHANGED
- Confidentiality impact (C): LOW
- Integrity impact (I): LOW
- Availability impact (A): NONE
Copier `_subdirectory` allows template root escape via parent-directory traversal
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.
References
-
https://github.com/copier-org/copier/security/advisories/GHSA-85v3-4m8g-hrh6 x_refsource_CONFIRM
-
https://github.com/copier-org/copier/releases/tag/v9.14.1 x_refsource_MISC
Affected products
- ==< 9.14.1
Matching in nixpkgs
pkgs.copier
Library and command-line utility for rendering projects templates
pkgs.apksigcopier
Copy/extract/patch android apk signatures & compare APKs
pkgs.gnomeExtensions.copier
Copy text notes to clipboard via a panel indicator
pkgs.python312Packages.copier
Library and command-line utility for rendering projects templates
pkgs.python313Packages.copier
Library and command-line utility for rendering projects templates
pkgs.python314Packages.copier
Library and command-line utility for rendering projects templates
pkgs.python312Packages.copier-template-tester
ctt: CLI and pre-commit tool for testing copier
pkgs.python313Packages.copier-template-tester
ctt: CLI and pre-commit tool for testing copier
pkgs.python314Packages.copier-template-tester
CLI and pre-commit tool for testing copier
Package maintainers
-
@obfusk FC Stegerman <flx@obfusk.net>
-
@honnip Jung seungwoo <me@honnip.page>
-
@yajo Jairo Llopis <yajo.sk8@gmail.com>
-
@savtrip Sav Tripodi