Red Hat Enterprise Linux Command Line Assistant
Monthly
Path traversal in ansible-core's `ansible-galaxy collection install` command allows an attacker-supplied collection artifact to redirect the install destination outside the configured collections path, because the destination directory is derived from the artifact's own unvalidated `namespace` and `name` metadata fields. When a victim installs such a collection - from a local file, remote URL, source directory, git repository, or as a resolved dependency - ansible-galaxy removes an existing directory writable by the invoking user and then writes attacker-controlled files there, giving high integrity and availability impact with no confidentiality impact. Exploitation is interaction-gated: the user must actively run the install against untrusted content, and the damage is bounded by that user's file permissions; no public exploit code was identified at time of analysis and the CVE is not in CISA KEV.
Path traversal in ansible-core's `ansible-galaxy collection install` command allows an attacker-supplied collection artifact to redirect the install destination outside the configured collections path, because the destination directory is derived from the artifact's own unvalidated `namespace` and `name` metadata fields. When a victim installs such a collection - from a local file, remote URL, source directory, git repository, or as a resolved dependency - ansible-galaxy removes an existing directory writable by the invoking user and then writes attacker-controlled files there, giving high integrity and availability impact with no confidentiality impact. Exploitation is interaction-gated: the user must actively run the install against untrusted content, and the damage is bounded by that user's file permissions; no public exploit code was identified at time of analysis and the CVE is not in CISA KEV.