{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-4034",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "assignerShortName": "redhat",
        "dateUpdated": "2024-09-23T18:05:54.355Z",
        "dateReserved": "2021-11-29T00:00:00",
        "datePublished": "2022-01-28T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2022-10-11T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine."
                }
            ],
            "affected": [
                {
                    "vendor": "n/a",
                    "product": "polkit",
                    "versions": [
                        {
                            "version": "all",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://access.redhat.com/security/vulnerabilities/RHSB-2022-001"
                },
                {
                    "url": "https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt"
                },
                {
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2025869"
                },
                {
                    "url": "https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683"
                },
                {
                    "url": "https://www.oracle.com/security-alerts/cpuapr2022.html"
                },
                {
                    "url": "http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html"
                },
                {
                    "url": "http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html"
                },
                {
                    "url": "https://www.suse.com/support/kb/doc/?id=000020564"
                },
                {
                    "url": "https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf"
                },
                {
                    "url": "https://www.starwindsoftware.com/security/sw-20220818-0001/"
                },
                {
                    "url": "https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "(CWE-787|CWE-125)",
                            "cweId": "CWE-787"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-09-23T18:05:54.355Z"
                },
                "references": [
                    {
                        "url": "https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://access.redhat.com/security/vulnerabilities/RHSB-2022-001"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2025869"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://www.oracle.com/security-alerts/cpuapr2022.html"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://www.suse.com/support/kb/doc/?id=000020564"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://www.starwindsoftware.com/security/sw-20220818-0001/"
                    },
                    {
                        "tags": [
                            "x_transferred"
                        ],
                        "url": "https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/"
                    }
                ],
                "title": "CVE Program Container",
                "x_generator": {
                    "engine": "ADPogram 0.0.1"
                }
            }
        ]
    }
}