Out-of-bounds Write Affecting freedesktop/polkit package, versions [,121)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
88.81% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-FREEDESKTOPPOLKIT-2766489
  • published17 Apr 2022
  • disclosed17 Apr 2022
  • creditQualys

Introduced: 17 Apr 2022

CVE-2021-4034  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade freedesktop/polkit to version 121 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via pkexec, due to not validating the argument count. The utility assumes the count will always be at least 1 and that the second value is either NULL or the command to be executed by pkexec as a privileged user. In case the argument array is empty, pkexec will interpret content from the environment array as the application to be executed. An attacker can leverage this by manipulating these variables to contain specific values and payloads, allowing it to be executed as a privileged user without any authentication to be requested.

CVSS Base Scores

version 3.1