CVE-2026-11332: ansible-core Argument Injection Vulnerability
HIGHCVE-2026-11332 is a HIGH (CVSS 7.8) argument injection vulnerability (CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) affecting ansible-core libraries in the PyPI ecosystem. The issue involves argument injection in ansible-galaxy role install leads to arbitrary code execution. Remediation is available by upgrading affected packages to version 2.16.19rc1, 2.18.18rc1, 2.19.11rc1, 2.20.7rc1, 2.21.1rc1.
CVE-2026-11332 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-11332
To remediate this vulnerability, upgrade all affected ansible-core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install ansible-core>=2.16.19rc1
pip install ansible-core>=2.18.18rc1
pip install ansible-core>=2.19.11rc1
pip install ansible-core>=2.20.7rc1
pip install ansible-core>=2.21.1rc1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ansible-core
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-11332, inspect your installed packages using pip:
pip show ansible-core
Analyze the terminal output to locate any version of ansible-core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.16.19rc1), your application is affected.
Note: The pip show ansible-core command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'), where the product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string. In ansible-core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-11332 Affected ansible-core Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ansible-core
|
PyPI |
< 2.16.19rc1
|
2.16.19rc1
|
|
ansible-core
|
PyPI |
≥ 2.17.0b1
< 2.18.18rc1
|
2.18.18rc1
|
|
ansible-core
|
PyPI |
≥ 2.19.0b1
< 2.19.11rc1
|
2.19.11rc1
|
|
ansible-core
|
PyPI |
≥ 2.20.0b1
< 2.20.7rc1
|
2.20.7rc1
|
|
ansible-core
|
PyPI |
≥ 2.21.0b1
< 2.21.1rc1
|
2.21.1rc1
|
References
Frequently Asked Questions
What is CVE-2026-11332?
Which ansible-core versions are affected?
What version fixes CVE-2026-11332?
Is ansible-core affected?
What is the CVSS score of CVE-2026-11332?
What CWE is associated with CVE-2026-11332?
How can I check PyPI dependencies for CVE-2026-11332?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w8p5-mx5w-cpqj",
"modified" : "2026-07-16T19:30:13Z",
"published" : "2026-06-05T09:33:46Z",
"aliases" : [ "CVE-2026-11332" ],
"summary" : "ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution",
"details" : "A flaw was found in ansible-core. The ansible-galaxy role install command processes dependency specifications from a role's meta/requirements.yml file. Due to improper neutralization of argument delimiters, a malicious role author can inject arbitrary git configuration flags through the src field. This allows arbitrary code execution on the machine of a user who installs the role via ansible-galaxy role install.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.16.19rc1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.17.0b1"
}, {
"fixed" : "2.18.18rc1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.19.0b1"
}, {
"fixed" : "2.19.11rc1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.20.0b1"
}, {
"fixed" : "2.20.7rc1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.21.0b1"
}, {
"fixed" : "2.21.1rc1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-11332"
}, {
"type" : "WEB",
"url" : "https://github.com/ansible/ansible/pull/87070"
}, {
"type" : "WEB",
"url" : "https://github.com/ansible/ansible/commit/edee59aa15abcc74d920bb3e9c3835ab8db05a2f"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-11332"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2485379"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ansible/ansible"
}, {
"type" : "WEB",
"url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11332.json"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-88" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-16T19:30:13Z",
"nvd_published_at" : "2026-06-05T09:16:26Z"
}
}