Authentication Bypass Affecting freedesktop/polkit package, versions [,0.119)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
1.37% (87th 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 Authentication Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-FREEDESKTOPPOLKIT-2404181
  • published17 Feb 2022
  • disclosed17 Feb 2022
  • creditKevin Backhouse

Introduced: 17 Feb 2022

CVE-2021-3560  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade freedesktop/polkit to version 0.119 or higher.

Overview

Affected versions of this package are vulnerable to Authentication Bypass via the polkit_system_bus_name_get_creds_sync function, that returns true when in fact it should return false in the case where the requesting process disconnects from dbus_daemon just before the call to the function, and will set the error parameter. Because of this, if no checks for the error parameter are made, the caller would think that the UID of the requesting process is 0, which is root, and will allow the action.

CVSS Base Scores

version 3.1