{"id":"CVE-2024-9902","published":"2024-11-06T09:56:54Z","modified":"2026-11-05T14:45:38Z","title":"Ansible-core: ansible-core user may read/write unauthorized content","vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0025,"percentile":0.16674,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:10762","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8969","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9894","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2025:1861","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-9902","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2318271","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html","tags":[]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":3.33},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.41}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-23","earliestUrl":"https://github.com/M8seven/cve-2026-11837-ansible-posix-authorized-key","repos":[{"name":"M8seven/cve-2026-11837-ansible-posix-authorized-key","url":"https://github.com/M8seven/cve-2026-11837-ansible-posix-authorized-key","stars":1,"created":"2026-06-23"}]},"first":{"date":"2026-06-23","source":"PoC-in-GitHub","url":"https://github.com/M8seven/cve-2026-11837-ansible-posix-authorized-key"},"provenance":"source"},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":["< 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"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","versions":["all versions"]}],"workarounds":{"items":["In the play that uses the user module with the key generation option, have a prior task ensuring the public key does not exist for example: - name: avoid user exploit (change name depending on other options used in user task) file: path=/home/{{username}}/.ssh/id_rsa.pub state=absent"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-06T14:20:56.915379Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ansible-core","vulnerableRanges":["<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"],"patched":["2.14.18rc1","2.15.13rc1","2.16.13rc1","2.17.6rc1","2.18.0rc2"],"from":["GHSA-32p4-gm2c-wmch","PYSEC-2026-1121"],"provenance":"source"}],"summary":{"text":"The flaw lies in the ansible-core user module, which ships within Ansible Automation Platform Execution Environments, and it allows an unprivileged user to abuse incorrect authorization handling. An attacker with a local, low-privilege account can exploit it when a privileged user runs the user module against that unprivileged user's home directory, provided the attacker has traversal permissions on the directory containing the target file, and the exploit requires user interaction in the form of that privileged execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:05Z"},"euvd":{"id":"EUVD-2024-3182","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-ansible-automation-platform-exec-cve-2024-9902","children":[{"from":"CVE-2024-9902","to":"CVE-2026-123037","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is an incomplete fix of CVE-2024-9902.","from":"CVE.org","in":"CVE-2026-123037"}]}],"packageHistory":[{"cve":"CVE-2023-5764","published":"2023-12-12","fixed":"2.16.1","kev":false},{"cve":"CVE-2024-0690","published":"2024-02-06","fixed":"2.16.3","kev":false,"link":{"from":"CVE-2024-0690","to":"CVE-2024-9902","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ansible-core","fromFixed":"2.14.14","toFixed":"2.14.18rc1","daysApart":274}]}},{"cve":"CVE-2024-8775","published":"2024-09-14","fixed":"2.17.6","kev":false},{"cve":"CVE-2024-9902","published":"2024-11-06","fixed":"2.18.0rc2","kev":false},{"cve":"CVE-2024-11079","published":"2024-11-11","fixed":"2.18.1rc1","kev":false,"link":{"from":"CVE-2024-9902","to":"CVE-2024-11079","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ansible-core","fromFixed":"2.18.0rc2","toFixed":"2.18.1rc1","daysApart":5}]}},{"cve":"CVE-2026-11332","published":"2026-06-05","fixed":"2.21.1rc1","kev":false}],"package":"PyPI:ansible-core"}}