CVE catalog

CVE-2024-9902

ansible: CVE-2024-9902

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.26% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianansiblesid14.4.0+dfsg-1fixed
Debianansibleforky14.0.0+dfsg-1fixed
Debianansibletrixie12.0.0+dfsg-0+deb13u1fixed
Debianansiblebookworm7.7.0+dfsg-3+deb12u1fixed
Debianansible-coresid2.22.0~beta2-1fixed
Debianansible-coreforky2.22.0~beta2-1fixed
Debianansible-coretrixie2.19.11-0+deb13u1fixed
Debianansible-corebookworm2.14.18-0+deb12u2fixed
PyPIansible-coreNot reported2.18.0rc2fixed
PyPIansible-coreNot reported2.15.13rc1fixed
PyPIansible-coreNot reported2.16.13rc1fixed
PyPIansible-coreNot reported2.17.6rc1fixed
PyPIansible-coreNot reported2.18.0rc2fixed
PyPIansible-coreNot reported2.18.0rc2fixed
PyPIansible-coreNot reported2.14.18rc1fixed
PyPIansible-coreNot reported2.15.13rc1fixed
PyPIansible-coreNot reported2.16.13rc1fixed
PyPIansible-coreNot reported2.17.6rc1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianansiblesourcesid5.4.0-1not yet assignedNot reportedNot reported
Debianansiblesourceforky5.4.0-1not yet assignedNot reportedNot reported
Debianansiblesourcetrixie5.4.0-1not yet assignedNot reportedNot reported
Debianansiblesourcebookworm5.4.0-1not yet assignedNot reportedNot reported
Debianansible-coresourcesid2.18.0-1not yet assignedNot reported[1086883]
Debianansible-coresourceforky2.18.0-1not yet assignedNot reported[1086883]
Debianansible-coresourcetrixie2.18.0-1not yet assignedNot reported[1086883]
Debianansible-coresourcebookworm2.14.18-0+deb12u1not yet assignedNot reported[1086883]
PyPIansible-corePyPINot reported2.18.0rc2Not reportedGHSA-32P4-GM2C-WMCHNot reported
PyPIansible-corePyPINot reported2.15.13rc1Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.16.13rc1Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.17.6rc1Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.18.0rc2Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.18.0rc2Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.14.18rc1Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.15.13rc1Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.16.13rc1Not reportedNot reportedNot reported
PyPIansible-corePyPINot reported2.17.6rc1Not reportedNot reportedNot reported

[Debian bug #1086883]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [ansible]Fixed
    Details (2)
    • 7.7.0+dfsg-3+deb12u1 · all · bookworm

      Fixed · Fixed: 5.4.0-1

      dsa · ansible · debian · bookworm; dsa · ansible · debian · 12

    • 7.7.0+dfsg-3+deb12u1 · all · bookworm

      Fixed · Fixed: 5.4.0-1

      dsa · ansible · debian · bookworm; dsa · ansible · debian · 12

  • Details (2)
    • 2.14.18-0+deb12u2 · all · bookworm

      Fixed · Fixed: 2.14.18-0+deb12u1

      dsa · ansible-core · debian · bookworm; dsa · ansible-core · debian · 12

    • 2.14.18-0+deb12u2 · all · bookworm

      Fixed · Fixed: 2.14.18-0+deb12u1

      dsa · ansible-core · debian · bookworm; dsa · ansible-core · debian · 12

[Debian 13 (Trixie)]

  • [ansible]Fixed
    Details (2)
    • 12.0.0+dfsg-0+deb13u1 · all · trixie

      Fixed · Fixed: 5.4.0-1

      dsa · ansible · debian · 13

    • 12.0.0+dfsg-0+deb13u1 · all · trixie

      Fixed · Fixed: 5.4.0-1

      dsa · ansible · debian · 13

  • Details (2)
    • 2.19.4-0+deb13u1 · all · trixie

      Fixed · Fixed: 2.18.0-1

      dsa · ansible-core · debian · 13

    • 2.19.4-0+deb13u1 · all · trixie

      Fixed · Fixed: 2.18.0-1

      dsa · ansible-core · debian · 13

Observed:

References