CVE-2026-105929

8.1High

Published 18 Nov 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite

8.1CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
Required
Impact
High impact on integrity, availability
Weakness
CWE-22

What an attacker gets

Attackers can overwrite or delete arbitrary files on your system with the permissions of the user running ansible-galaxy. This requires an operator to install a malicious role containing a crafted requirements.yml file.

Root cause

The ansible-galaxy command fails to sanitize the role name field, allowing path traversal sequences like ../ to escape the target installation directory.

Affected versions

ansible-core versions before 2.16.15, 2.17.8, and 2.18.2.

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Fix & remediation

Upgrade to ansible-core 2.16.15, 2.17.8, 2.18.2, or later. Until you can patch, avoid installing roles from untrusted or unverified sources.

remediation — bash
$ pip install --upgrade ansible-core

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

A path traversal vulnerability (CWE-22) was found in ansible-core's ansible-galaxy role installation. An explicit role "name" taken from a role's meta/requirements.yml is used to construct the on-disk installation path without validating that the resulting destination stays within the selected roles directory. A name containing "../" escapes that directory, and an absolute name replaces it entirely. Because ansible-galaxy processes transitive dependencies from an installed role's meta/requirements.yml, a malicious role publisher can cause attacker-supplied files to be written outside the operator's chosen roles directory when the operator installs the role, and, when --force is used, can cause an existing role directory outside that path to be removed and replaced. The impact is bounded by the invoking user's filesystem permissions and requires the operator to install the attacker-influenced content.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-105929