A path traversal flaw was found in ansible-core. When installing a collection with ansible-galaxy collection install, the install destination director...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12ansible-core |
All versions→ Not listed |
Not listed |
| Debian:13ansible-core |
All versions→ Not listed |
Not listed |
| Debian:14ansible-core |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
A path traversal flaw was found in ansible-core. When installing a collection with ansible-galaxy collection install, the install destination directory is derived from the namespace and name fields declared inside the collection artifact's own metadata, which are not validated as well-formed collection identifiers or checked for path containment. A malicious collection artifact -- delivered as a local file, a remote URL, a source directory, a git repository, or as a dependency -- can use a crafted name value to redirect the install destination outside the configured collections path, causing ansible-galaxy to delete an existing directory writable by the invoking user and then write attacker-controlled files to that location.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org