CVE-2024-9902

NameCVE-2024-9902
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1086883

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ansible (PTS)bullseye2.10.7+merged+base+2.10.17+dfsg-0+deb11u1vulnerable
bookworm7.7.0+dfsg-3+deb12u1fixed
trixie10.5.0+dfsg-2fixed
sid10.6.0+dfsg-1fixed
ansible-core (PTS)bookworm2.14.16-0+deb12u1vulnerable
trixie2.17.5-5vulnerable
sid2.18.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ansiblesource(unstable)5.4.0-1
ansible-coresource(unstable)2.18.0-11086883

Notes

[bookworm] - ansible-core <no-dsa> (Minor issue)
ansible-core was split off from src:ansible with 4.6.0-1 in experimental/5.4.0-1 in sid
https://bugzilla.redhat.com/show_bug.cgi?id=2318271
https://github.com/ansible/ansible/issues/83955
https://github.com/ansible/ansible/pull/83956
Fixed by: https://github.com/ansible/ansible/commit/0959472bc62d3fcb28200bebed6346398ca355ea
Fixed by: https://github.com/ansible/ansible/commit/c068e45d8da7c6f5bbd3a12493047b07d77e6479 (v2.18.0rc1)
Fixed by: https://github.com/ansible/ansible/commit/3b5a4319985e1eabe7fc0410bf8308b671f4f586 (v2.17.6rc1)

Search for package or bug name: Reporting problems