CVE-2021-4034KEV · OVERDUECWE-125CWE-787

Red Hat Polkit Out-of-Bounds Read and Write Vulnerability

High · published January 29, 2022

Patch now

Confirmed exploited, and the score agrees

CVSS calls it high at 7.8. It is confirmed in active exploitation. It sits in the 99.9th percentile for exploit probability.

1558
days past CISA
deadline
CVSS v3.1
7.8
EPSS
95%
Percentile
99.9
In the wild
Confirmed
What it is

🚨 A miscount of calling parameters in the pkexec tool opens the door for mischief—unprivileged users may exploit this to escalate their privileges! ⚡ Think of pkexec as a restaurant where unprivileged users can order meals that require a special chef's touch. If the chef misinterprets the orders (calling parameters), they might mistakenly serve up a gourmet dish that anyone can access, even those who shouldn’t be in the kitchen! 🍽️ An attacker could craft clever environment variables that trick pkexec into executing arbitrary code, effectively granting them administrative rights on the machine. This means unauthorized access to sensitive data, the ability to change system settings, or even delete critical files—quite the digital heist! ⚠️

Put simply

Think of pkexec as a restaurant where unprivileged users can order meals that require a special chef's touch. If the chef misinterprets the orders (calling parameters), they might mistakenly serve up a gourmet dish that anyone can access, even those who shouldn’t be in the kitchen! 🍽️ This vulnerability allows local privilege escalation due to pkexec's incorrect handling of the count of calling parameters, leading to arbitrary code execution through crafted environment variables.

What to do

An attacker could craft clever environment variables that trick pkexec into executing arbitrary code, effectively granting them administrative rights on the machine. This means unauthorized access to sensitive data, the ability to change system settings, or even delete critical files—quite the digital heist! ⚠️ To mitigate this risk, ensure that you update pkexec to the latest version as soon as possible. Additionally, review and limit the use of pkexec based on your security policies to minimize exposure. Regularly audit the permissions of your applications that utilize pkexec as well. You’ve got this! By taking these steps, you'll fortify your defenses and keep your systems safe! 🛡️

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.94921 · 99.9th percentile
Weaknesses
CWE-125 · Out-of-bounds Read; CWE-787 · Out-of-bounds Write
Published
2022-01-29T01:15Z
KEV added
2022-06-27 · due 2022-07-18
Affected products (54)
ProductVersionsFixed in
polkit_project/polkit< 121121
redhat/enterprise_linux_server_update_services_for_sap_solutionsall versions—
redhat/enterprise_linux_server_update_services_for_sap_solutionsall versions—
redhat/enterprise_linuxall versions—
redhat/enterprise_linux_desktopall versions—
redhat/enterprise_linux_eusall versions—
redhat/enterprise_linux_for_ibm_z_systemsall versions—
redhat/enterprise_linux_for_ibm_z_systemsall versions—
redhat/enterprise_linux_for_ibm_z_systems_eusall versions—
redhat/enterprise_linux_for_ibm_z_systems_eusall versions—
redhat/enterprise_linux_for_power_big_endianall versions—
redhat/enterprise_linux_for_power_little_endianall versions—
redhat/enterprise_linux_for_power_little_endianall versions—
redhat/enterprise_linux_for_power_little_endian_eusall versions—
redhat/enterprise_linux_for_power_little_endian_eusall versions—
redhat/enterprise_linux_for_power_little_endian_eusall versions—
redhat/enterprise_linux_for_scientific_computingall versions—
redhat/enterprise_linux_serverall versions—
redhat/enterprise_linux_serverall versions—
redhat/enterprise_linux_server_ausall versions—
redhat/enterprise_linux_server_ausall versions—
redhat/enterprise_linux_server_ausall versions—
redhat/enterprise_linux_server_ausall versions—
redhat/enterprise_linux_server_ausall versions—
redhat/enterprise_linux_server_ausall versions—
redhat/enterprise_linux_server_eusall versions—
redhat/enterprise_linux_server_tusall versions—
redhat/enterprise_linux_server_tusall versions—
redhat/enterprise_linux_server_tusall versions—
redhat/enterprise_linux_server_tusall versions—
redhat/enterprise_linux_server_update_services_for_sap_solutionsall versions—
redhat/enterprise_linux_server_update_services_for_sap_solutionsall versions—
redhat/enterprise_linux_server_update_services_for_sap_solutionsall versions—
redhat/enterprise_linux_workstationall versions—
canonical/ubuntu_linuxall versions—
canonical/ubuntu_linuxall versions—
canonical/ubuntu_linuxall versions—
canonical/ubuntu_linuxall versions—
canonical/ubuntu_linuxall versions—
suse/enterprise_storageall versions—
suse/linux_enterprise_high_performance_computingall versions—
suse/manager_proxyall versions—
suse/manager_serverall versions—
suse/linux_enterprise_desktopall versions—
suse/linux_enterprise_serverall versions—
suse/linux_enterprise_serverall versions—
suse/linux_enterprise_workstation_extensionall versions—
oracle/http_serverall versions—
oracle/http_serverall versions—
oracle/zfs_storage_appliance_kitall versions—
siemens/sinumerik_edge< 3.3.03.3.0
siemens/scalance_lpe9403_firmware< 2.02.0
starwindsoftware/command_centerall versions—
starwindsoftware/starwind_virtual_sanall versions—
References (24)
http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html · [email protected]http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html · [email protected]https://access.redhat.com/security/vulnerabilities/RHSB-2022-001 · [email protected]https://bugzilla.redhat.com/show_bug.cgi?id=2025869 · [email protected]https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf · [email protected]https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683 · [email protected]https://www.oracle.com/security-alerts/cpuapr2022.html · [email protected]https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt · [email protected]https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/ · [email protected]https://www.starwindsoftware.com/security/sw-20220818-0001/ · [email protected]https://www.suse.com/support/kb/doc/?id=000020564 · [email protected]http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html · af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/security/vulnerabilities/RHSB-2022-001 · af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=2025869 · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf · af854a3a-2127-422b-91ae-364da2661108https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683 · af854a3a-2127-422b-91ae-364da2661108https://www.oracle.com/security-alerts/cpuapr2022.html · af854a3a-2127-422b-91ae-364da2661108https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt · af854a3a-2127-422b-91ae-364da2661108https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/ · af854a3a-2127-422b-91ae-364da2661108https://www.starwindsoftware.com/security/sw-20220818-0001/ · af854a3a-2127-422b-91ae-364da2661108https://www.suse.com/support/kb/doc/?id=000020564 · af854a3a-2127-422b-91ae-364da2661108https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034 · af854a3a-2127-422b-91ae-364da2661108https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034 · 134c704f-9b21-4f2e-91b3-4a467353bcc0
EPSS history
Timeline
  • 27 JUN 00:00Z
    Added to CISA KEV — remediate by Jul 18
    kev
  • 28 JAN 00:00Z
    A local privilege escalation vulnerability was found on polkit's pkexec utility
    cvelistv5