{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-9902",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "state": "PUBLISHED",
        "assignerShortName": "redhat",
        "dateReserved": "2024-10-12T02:46:57.580Z",
        "datePublished": "2024-11-06T09:56:54.505Z",
        "dateUpdated": "2025-11-06T23:17:23.106Z"
    },
    "containers": {
        "cna": {
            "title": "Ansible-core: ansible-core user may read/write unauthorized content",
            "metrics": [
                {
                    "other": {
                        "content": {
                            "value": "Moderate",
                            "namespace": "https://access.redhat.com/security/updates/classification/"
                        },
                        "type": "Red Hat severity rating"
                    }
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "LOW",
                        "baseScore": 6.3,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L",
                        "version": "3.1"
                    },
                    "format": "CVSS"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "2.14.18rc1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "2.15.0b1",
                            "lessThan": "2.15.13rc1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "2.16.0b1",
                            "lessThan": "2.16.13rc1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "2.17.0b1",
                            "lessThan": "2.17.6rc1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "2.18.0b1",
                            "lessThan": "2.18.0rc2",
                            "versionType": "custom"
                        }
                    ],
                    "packageName": "ansible-core",
                    "collectionURL": "https://github.com/ansible/ansible",
                    "defaultStatus": "unaffected"
                },
                {
                    "vendor": "Red Hat",
                    "product": "Ansible Automation Platform Execution Environments",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "ansible-automation-platform/ansible-builder-rhel8",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "3.0.1-96",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_core:2::el9",
                        "cpe:/a:redhat:ansible_core:2::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Ansible Automation Platform Execution Environments",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "ansible-automation-platform/ansible-builder-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "3.0.1-95",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_core:2::el9",
                        "cpe:/a:redhat:ansible_core:2::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Ansible Automation Platform Execution Environments",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "ansible-automation-platform/ee-29-rhel8",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "2.9.27-32",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_core:2::el9",
                        "cpe:/a:redhat:ansible_core:2::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Ansible Automation Platform Execution Environments",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "ansible-automation-platform/ee-minimal-rhel8",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "2.14.13-21",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_core:2::el9",
                        "cpe:/a:redhat:ansible_core:2::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Ansible Automation Platform Execution Environments",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "ansible-automation-platform/ee-minimal-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "2.17.6-2",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_core:2::el9",
                        "cpe:/a:redhat:ansible_core:2::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Ansible Automation Platform 2.4 for RHEL 8",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "ansible-core",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1:2.15.13-1.el8ap",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8",
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9",
                        "cpe:/a:redhat:ansible_automation_platform:2.4::el8",
                        "cpe:/a:redhat:ansible_automation_platform:2.4::el9",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Ansible Automation Platform 2.4 for RHEL 9",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "ansible-core",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1:2.15.13-1.el9ap",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8",
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9",
                        "cpe:/a:redhat:ansible_automation_platform:2.4::el8",
                        "cpe:/a:redhat:ansible_automation_platform:2.4::el9",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Ansible Automation Platform 2.5 for RHEL 8",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "ansible-core",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1:2.16.13-1.el8ap",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_automation_platform:2.5::el9",
                        "cpe:/a:redhat:ansible_automation_platform:2.5::el8",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.5::el9",
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.5::el9",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.5::el8",
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.5::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Ansible Automation Platform 2.5 for RHEL 9",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "ansible-core",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1:2.16.13-1.el9ap",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:ansible_automation_platform:2.5::el9",
                        "cpe:/a:redhat:ansible_automation_platform:2.5::el8",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.5::el9",
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.5::el9",
                        "cpe:/a:redhat:ansible_automation_platform_developer:2.5::el8",
                        "cpe:/a:redhat:ansible_automation_platform_inside:2.5::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat OpenStack Platform 17.1 for RHEL 9",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "openstack-ansible-core",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "0:2.14.2-4.6.el9ost",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:openstack:17.1::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Enterprise Linux 10",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "ansible-core",
                    "defaultStatus": "unaffected",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:10"
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:10762",
                    "name": "RHSA-2024:10762",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:8969",
                    "name": "RHSA-2024:8969",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:9894",
                    "name": "RHSA-2024:9894",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2025:1861",
                    "name": "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",
                    "name": "RHBZ#2318271",
                    "tags": [
                        "issue-tracking",
                        "x_refsource_REDHAT"
                    ]
                }
            ],
            "datePublic": "2024-11-06T06:11:25.611Z",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-863",
                            "description": "Incorrect Authorization",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "x_redhatCweChain": "CWE-863: Incorrect Authorization",
            "workarounds": [
                {
                    "lang": "en",
                    "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\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"
                }
            ],
            "timeline": [
                {
                    "lang": "en",
                    "time": "2024-10-12T02:41:32.581Z",
                    "value": "Reported to Red Hat."
                },
                {
                    "lang": "en",
                    "time": "2024-11-06T06:11:25.611Z",
                    "value": "Made public."
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Red Hat would like to thank Matt Clay for reporting this issue."
                }
            ],
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2025-11-06T23:17:23.106Z"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-11-06T14:20:56.915379Z",
                                "id": "CVE-2024-9902",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-11-06T14:21:06.565Z"
                }
            },
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html"
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2025-11-03T22:33:34.510Z"
                }
            }
        ]
    }
}