{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2021-35937",
        "ASSIGNER": "secalert@redhat.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "A race condition vulnerability was found in rpm. A local unprivileged user could use this flaw to bypass the checks that were introduced in response to CVE-2017-7500 and CVE-2017-7501, potentially gaining root privileges. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-59 - Improper Link Resolution Before File Access ('Link Following'), CWE-367 - Time-of-check Time-of-use (TOCTOU) Race Condition",
                        "cweId": "CWE-59"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "n/a",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "RPM",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "Fixed in rpm v4.18.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://rpm.org/wiki/Releases/4.18.0",
                "refsource": "MISC",
                "name": "https://rpm.org/wiki/Releases/4.18.0"
            },
            {
                "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1964125",
                "refsource": "MISC",
                "name": "https://bugzilla.redhat.com/show_bug.cgi?id=1964125"
            },
            {
                "url": "https://access.redhat.com/security/cve/CVE-2021-35937",
                "refsource": "MISC",
                "name": "https://access.redhat.com/security/cve/CVE-2021-35937"
            },
            {
                "url": "https://www.usenix.org/legacy/event/sec05/tech/full_papers/borisov/borisov.pdf",
                "refsource": "MISC",
                "name": "https://www.usenix.org/legacy/event/sec05/tech/full_papers/borisov/borisov.pdf"
            },
            {
                "url": "https://security.gentoo.org/glsa/202210-22",
                "refsource": "MISC",
                "name": "https://security.gentoo.org/glsa/202210-22"
            }
        ]
    }
}