cve.bz

CVE-2024-9902

6.3 mediumEPSS 0.3%

Medium (6.3). EPSS 0.3% chance of exploitation in the next 30 days. Fixed in ansible-core 2.14.18rc1, 2.15.13rc1, 2.16.13rc1.

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

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
EPSS
0.3% chance of exploitation in the next 30 days; higher than 17% of CVEs (scores of 2026-10-31)
CWE
CWE-863
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-32p4-gm2c-wmchPyPIansible-core<2.14.18rc12.14.18rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.15.0b1 <2.15.13rc12.15.13rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.16.0b1 <2.16.13rc12.16.13rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.17.0b1 <2.17.6rc12.17.6rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.18.0b1 <2.18.0rc22.18.0rc2
PYSEC-2026-1121PyPIansible-core<2.14.18rc1
>=2.15.0b1 <2.15.13rc1
>=2.16.0b1 <2.16.13rc1
>=2.17.0b1 <2.17.6rc1
>=2.18.0b1 <2.18.0rc2
2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2

References

Check your stackJSON