{
  "threat_severity" : "Moderate",
  "public_date" : "2024-11-06T06:11:25Z",
  "bugzilla" : {
    "description" : "ansible-core: Ansible-core user may read/write unauthorized content",
    "id" : "2318271",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2318271"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L",
    "status" : "verified"
  },
  "cwe" : "CWE-863",
  "details" : [ "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.", "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." ],
  "acknowledgement" : "Red Hat would like to thank Matt Clay for reporting this issue.",
  "affected_release" : [ {
    "product_name" : "Ansible Automation Platform Execution Environments",
    "release_date" : "2024-11-06T00:00:00Z",
    "advisory" : "RHSA-2024:8969",
    "cpe" : "cpe:/a:redhat:ansible_core:2::el8",
    "package" : "ansible-automation-platform/ansible-builder-rhel8:1.2.0-91"
  }, {
    "product_name" : "Ansible Automation Platform Execution Environments",
    "release_date" : "2024-11-06T00:00:00Z",
    "advisory" : "RHSA-2024:8969",
    "cpe" : "cpe:/a:redhat:ansible_core:2::el8",
    "package" : "ansible-automation-platform/ansible-builder-rhel9:3.0.1-95"
  }, {
    "product_name" : "Ansible Automation Platform Execution Environments",
    "release_date" : "2024-11-06T00:00:00Z",
    "advisory" : "RHSA-2024:8969",
    "cpe" : "cpe:/a:redhat:ansible_core:2::el8",
    "package" : "ansible-automation-platform/ee-29-rhel8:2.9.27-32"
  }, {
    "product_name" : "Ansible Automation Platform Execution Environments",
    "release_date" : "2024-11-06T00:00:00Z",
    "advisory" : "RHSA-2024:8969",
    "cpe" : "cpe:/a:redhat:ansible_core:2::el8",
    "package" : "ansible-automation-platform/ee-minimal-rhel8:2.12.10-54"
  }, {
    "product_name" : "Ansible Automation Platform Execution Environments",
    "release_date" : "2024-11-06T00:00:00Z",
    "advisory" : "RHSA-2024:8969",
    "cpe" : "cpe:/a:redhat:ansible_core:2::el8",
    "package" : "ansible-automation-platform/ee-minimal-rhel9:2.15.12-17"
  }, {
    "product_name" : "Red Hat Ansible Automation Platform 2.4 for RHEL 8",
    "release_date" : "2024-12-03T00:00:00Z",
    "advisory" : "RHSA-2024:10762",
    "cpe" : "cpe:/a:redhat:ansible_automation_platform:2.4::el8",
    "package" : "ansible-core-1:2.15.13-1.el8ap"
  }, {
    "product_name" : "Red Hat Ansible Automation Platform 2.4 for RHEL 9",
    "release_date" : "2024-12-03T00:00:00Z",
    "advisory" : "RHSA-2024:10762",
    "cpe" : "cpe:/a:redhat:ansible_automation_platform:2.4::el9",
    "package" : "ansible-core-1:2.15.13-1.el9ap"
  }, {
    "product_name" : "Red Hat Ansible Automation Platform 2.5 for RHEL 8",
    "release_date" : "2024-11-18T00:00:00Z",
    "advisory" : "RHSA-2024:9894",
    "cpe" : "cpe:/a:redhat:ansible_automation_platform:2.5::el8",
    "package" : "ansible-core-1:2.16.13-1.el8ap"
  }, {
    "product_name" : "Red Hat Ansible Automation Platform 2.5 for RHEL 9",
    "release_date" : "2024-11-18T00:00:00Z",
    "advisory" : "RHSA-2024:9894",
    "cpe" : "cpe:/a:redhat:ansible_automation_platform:2.5::el9",
    "package" : "ansible-core-1:2.16.13-1.el9ap"
  }, {
    "product_name" : "Red Hat OpenStack Platform 17.1 for RHEL 9",
    "release_date" : "2025-02-25T00:00:00Z",
    "advisory" : "RHSA-2025:1861",
    "cpe" : "cpe:/a:redhat:openstack:17.1::el9",
    "package" : "openstack-ansible-core-0:2.14.2-4.6.el9ost"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Not affected",
    "package_name" : "ansible-core",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-9902\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-9902" ],
  "name" : "CVE-2024-9902",
  "mitigation" : {
    "value" : "In the play that uses the user module with the key generation option,\nhave a prior task ensuring the public key does not exist for example:\n- name: avoid user exploit (change name depending on other options\nused in user task)\nfile: path=/home/{{username}}/.ssh/id_rsa.pub state=absent",
    "lang" : "en:us"
  },
  "csaw" : false
}