{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-4034",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "assignerShortName": "redhat",
        "dateUpdated": "2026-08-15T03:55:29.140Z",
        "dateReserved": "2021-11-29T00:00:00.000Z",
        "datePublished": "2022-01-28T00:00:00.000Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2023-10-18T00:16:44.133Z"
            },
            "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"
                }
            },
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.8,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2022-06-27T00:00:00+00:00",
                                "options": [
                                    {
                                        "Exploitation": "active"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3",
                                "id": "CVE-2021-4034"
                            }
                        }
                    },
                    {
                        "other": {
                            "type": "kev",
                            "content": {
                                "dateAdded": "2022-06-27",
                                "reference": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034"
                            }
                        }
                    }
                ],
                "references": [
                    {
                        "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034",
                        "tags": [
                            "government-resource"
                        ]
                    }
                ],
                "timeline": [
                    {
                        "time": "2022-06-27T00:00:00.000Z",
                        "lang": "en",
                        "value": "CVE-2021-4034 added to CISA KEV"
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-08-15T03:55:29.140Z"
                }
            }
        ]
    }
}