Advisory

PYSEC-2026-1121

Also known as: CVE-2024-9902, GHSA-32p4-gm2c-wmch

Summary

ansible-core Incorrect Authorization vulnerability

Details

A flaw was found in Ansible. The ansible-core user module can allow an unprivileged user to silently create or replace the contents of any file on any system path and take ownership of it when a privileged user executes the user module against the unprivileged user's home directory. If the unprivileged user has traversal permissions on the directory containing the exploited target file, they retain full control over the contents of the file as its owner.

Severity

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

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

ansible-core

PyPI · All systems

Affected

  • introduced 0, fixed 2.14.18rc1, introduced 2.15.0b1, fixed 2.15.13rc1, introduced 2.16.0b1, fixed 2.16.13rc1, introduced 2.17.0b1, fixed 2.17.6rc1, introduced 2.18.0b1, fixed 2.18.0rc2 (ecosystem)

Fixed versions

2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2

Fix

  • Fixed version 2.14.18rc1
    pip install --upgrade ansible-core==2.14.18rc1
  • Fixed version 2.15.13rc1
    pip install --upgrade ansible-core==2.15.13rc1
  • Fixed version 2.16.13rc1
    pip install --upgrade ansible-core==2.16.13rc1
  • Fixed version 2.17.6rc1
    pip install --upgrade ansible-core==2.17.6rc1
  • Fixed version 2.18.0rc2
    pip install --upgrade ansible-core==2.18.0rc2

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