Input validation error in polkit - CVE-2021-4034

 

Input validation error in polkit - CVE-2021-4034

Published: January 26, 2022 / Updated: April 27, 2023


Vulnerability identifier: #VU60007
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Green
CVE-ID: CVE-2021-4034
CWE-ID: CWE-20
Exploitation vector: Local access
Exploit availability: The vulnerability is being exploited in the wild
Vendor: Freedesktop.org
Affected software:
polkit

Detailed vulnerability description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to improper handling of the calling parameters count in the pkexec setuid binary, which causes the binary to execute environment variables as commands. A local user can craft environment variables in a way that they will be processed and executed by pkexec and execute arbitrary commands on the system as root.


How to mitigate CVE-2021-4034

Install update from vendor's website.

Sources