CVE-2024-9902

Ansible-core: ansible-core user may read/write unauthorized content

State
Published
Severity
6.3 Medium
Published
Nov 6, 2024
Updated
Nov 6, 2025
Reserved
Oct 12, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:Lredhat

Weaknesses

Affected Products

ProductVersions
ansible-core
  • before 2.14.18rc1Affected
  • 2.15.0b1 to before 2.15.13rc1Affected
  • 2.16.0b1 to before 2.16.13rc1Affected
  • 2.17.0b1 to before 2.17.6rc1Affected
  • 2.18.0b1 to before 2.18.0rc2Affected
Ansible Automation Platform Execution EnvironmentsRed Hat
  • 3.0.1-96 and laterNot affected
Ansible Automation Platform Execution EnvironmentsRed Hat
  • 3.0.1-95 and laterNot affected
Ansible Automation Platform Execution EnvironmentsRed Hat
  • 2.9.27-32 and laterNot affected
Ansible Automation Platform Execution EnvironmentsRed Hat
  • 2.14.13-21 and laterNot affected
Ansible Automation Platform Execution EnvironmentsRed Hat
  • 2.17.6-2 and laterNot affected
Red Hat Ansible Automation Platform 2.4 for RHEL 8Red Hat
  • 1:2.15.13-1.el8ap and laterNot affected
Red Hat Ansible Automation Platform 2.4 for RHEL 9Red Hat
  • 1:2.15.13-1.el9ap and laterNot affected
Red Hat Ansible Automation Platform 2.5 for RHEL 8Red Hat
  • 1:2.16.13-1.el8ap and laterNot affected
Red Hat Ansible Automation Platform 2.5 for RHEL 9Red Hat
  • 1:2.16.13-1.el9ap and laterNot affected
Red Hat OpenStack Platform 17.1 for RHEL 9Red Hat
  • 0:2.14.2-4.6.el9ost and laterNot affected
Red Hat Enterprise Linux 10Red Hat

    References

    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.