Advisory

GHSA-w8p5-mx5w-cpqj

Also known as: CVE-2026-11332, PYSEC-2026-3458

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: The source's own band: HIGH

Dates

Published
2026-06-05 09:33 UTC
Modified
2026-07-23 15:11 UTC

Affected packages and fixes

ansible-core

PyPI · All systems

Affected

  • introduced 0, fixed 2.16.19rc1 (ecosystem)

Fixed versions

2.16.19rc1

Fix

  • Fixed version 2.16.19rc1
    pip install --upgrade ansible-core==2.16.19rc1

ansible-core

PyPI · All systems

Affected

  • introduced 2.17.0b1, fixed 2.18.18rc1 (ecosystem)

Fixed versions

2.18.18rc1

Fix

  • Fixed version 2.18.18rc1
    pip install --upgrade ansible-core==2.18.18rc1

ansible-core

PyPI · All systems

Affected

  • introduced 2.19.0b1, fixed 2.19.11rc1 (ecosystem)

Fixed versions

2.19.11rc1

Fix

  • Fixed version 2.19.11rc1
    pip install --upgrade ansible-core==2.19.11rc1

ansible-core

PyPI · All systems

Affected

  • introduced 2.20.0b1, fixed 2.20.7rc1 (ecosystem)

Fixed versions

2.20.7rc1

Fix

  • Fixed version 2.20.7rc1
    pip install --upgrade ansible-core==2.20.7rc1

ansible-core

PyPI · All systems

Affected

  • introduced 2.21.0b1, fixed 2.21.1rc1 (ecosystem)

Fixed versions

2.21.1rc1

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences