Advisory

PYSEC-2026-3458

Also known as: CVE-2026-11332, GHSA-w8p5-mx5w-cpqj

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

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-23 11:41 UTC
Modified
2026-07-23 15:00 UTC

Affected packages and fixes

ansible-core

PyPI · All systems

Affected

  • introduced 0, fixed 2.16.19rc1, introduced 2.17.0b1, fixed 2.18.18rc1, introduced 2.19.0b1, fixed 2.19.11rc1, introduced 2.20.0b1, fixed 2.20.7rc1, introduced 2.21.0b1, fixed 2.21.1rc1 (ecosystem)

Fixed versions

2.16.19rc1, 2.18.18rc1, 2.19.11rc1, 2.20.7rc1, 2.21.1rc1

Fix

  • Fixed version 2.16.19rc1
    pip install --upgrade ansible-core==2.16.19rc1
  • Fixed version 2.18.18rc1
    pip install --upgrade ansible-core==2.18.18rc1
  • Fixed version 2.19.11rc1
    pip install --upgrade ansible-core==2.19.11rc1
  • Fixed version 2.20.7rc1
    pip install --upgrade ansible-core==2.20.7rc1
  • Fixed version 2.21.1rc1
    pip install --upgrade ansible-core==2.21.1rc1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences