Name | CVE-2024-9902 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3963-1 |
Debian Bugs | 1086883 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
ansible (PTS) | jessie, jessie (lts) | 1.7.2+dfsg-2+deb8u3 | vulnerable |
| stretch (security), stretch (lts), stretch | 2.2.1.0-2+deb9u3 | vulnerable |
| buster (security), buster, buster (lts) | 2.7.7+dfsg-1+deb10u2 | vulnerable |
| bullseye | 2.10.7+merged+base+2.10.17+dfsg-0+deb11u1 | vulnerable |
| bullseye (security) | 2.10.7+merged+base+2.10.17+dfsg-0+deb11u2 | fixed |
| bookworm | 7.7.0+dfsg-3+deb12u1 | fixed |
| sid, trixie | 11.1.0+dfsg-1 | fixed |
ansible-core (PTS) | bookworm | 2.14.16-0+deb12u1 | vulnerable |
| trixie | 2.17.5-5 | vulnerable |
| sid | 2.18.1-2 | fixed |
The information below is based on the following data on fixed versions.
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)