QID 376287

Date Published: 2022-01-25

QID 376287: Polkit pkexec Local Privilege Escalation Vulnerability (PwnKit)

Polkit (formerly PolicyKit) is a component for controlling system-wide privileges in Unix-like operating systems. Polkit additionally allows an authorized user to execute PROGRAM as another user. If username is not specified then it defaults to root.

We discovered a memory corruption vulnerability that allow Local Privilege Escalation (from any user to root) in polkit's pkexec, a SUID-root program that is installed by default on every major Linux distribution. It has been given the name PwnKit.

Affected Versions:
All versions of PolKit

QID Detection Logic:
The QID checks for vulnerable instances of polkit by running a specially crafted command using python which triggers an error message on vulnerable hosts. The error message is "Cannot run program PROGRAM=nonexistent: No such file or directory". On Solaris we only check if polkit exists or not.

The vulnerability allows any unprivileged user to gain full root privileges on an affected host by exploiting this vulnerability in its default configuration.

  • CVSS V3 rated as High - 7.8 severity.
  • CVSS V2 rated as High - 7.2 severity.
  • Solution
    Customer are advised to patch to the latest version of Polkit.

    Vendor References

    CVEs related to QID 376287

    Software Advisories
    Advisory ID Software Component Link
    Polkit pkexec Local Privilege Escalation URL Logo www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
    © CVE.report 2026 |

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report