Security Advisory

CVE-2021-3560: polkit D-Bus Auth Bypass Local Root

Last updated:
  • CVE-2021-3560

CVE-2021-3560 is a local privilege escalation in polkit, the Linux authorisation service: a local user can make polkit skip its D-Bus credential check and act as root. It affects polkit 0.113 to 0.118 and is fixed in 0.119. NVD scores it 7.8 and CISA KEV lists it. Update polkit, or the firmware image that bundles it.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

21.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-3560 · Source: NVD

Affected components

ComponentCPEVersion range
polkit (upstream)cpe:2.3:a:polkit_project:polkit:*:*:*:*:*:*:*:*0.113 up to 0.119 (exclusive); fixed in 0.119 (NVD, Red Hat Bugzilla 1961710, GitHub Security Lab)
Debian policykit-1cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*Vulnerable from the 0.105-26 backport; fixed in 0.105-31 (unstable); stretch and buster not affected (Debian security tracker)
Ubuntu 20.04, Red Hat Enterprise Linux 8, Red Hat Virtualization 4, OpenShift Container Platform 4.7cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:*:*:*:*Named as vulnerable by NVD's CPE configuration and the GitHub Security Lab write-up; RHEL 7 and Ubuntu 18.04 not affected
Yocto Project / OpenEmbedded meta-oe polkit recipe (dunfell)—polkit 0.116 recipe patched with the upstream fix (meta-oe dunfell patch, accepted)

What does this mean for affected devices?

CVE-2021-3560 is an authorisation flaw in polkit, the service that decides whether an unprivileged process may perform a privileged action over D-Bus. The CVE record, published by Red Hat, says polkit "could be tricked into bypassing the credential checks for D-Bus requests, elevating the privileges of the requestor to the root user", and that an unprivileged local attacker could use it to "create a new local administrator" (NVD, CVE record). NVD's Primary scores are 7.8 in CVSS 3.1 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and 7.2 in CVSS 2; CISA ADP gives the same 7.8. NVD classifies it as CWE-754 (improper check for unusual or exceptional conditions); Red Hat and CISA KEV use CWE-863 (incorrect authorization).

Kevin Backhouse of GitHub Security Lab found it. His write-up of 2021-06-10 says the fix was released on 2021-06-03, the bug first shipped in polkit 0.113, and Debian's fork picked it up in 0.105-26. Red Hat Bugzilla 1961710 gives the fixed version as polkit 0.119.

Which systems and devices are affected?

Any Linux system running polkit 0.113 to 0.118, or Debian's fork from 0.105-26. The GitHub write-up lists RHEL 8, Fedora 21 and later, Debian testing (bullseye) and Ubuntu 20.04 as vulnerable, and RHEL 7, Debian 10 (buster) and Ubuntu 18.04 as not vulnerable. NVD's CPE configuration adds Red Hat Virtualization 4, Red Hat Virtualization Host 4 and OpenShift Container Platform 4.7. Debian's security tracker marks stretch and buster not affected because the vulnerable code came later, with the fix in policykit-1 0.105-31.

For embedded Linux, polkit reaches firmware through build systems rather than a distribution installer. The OpenEmbedded meta-oe layer accepted a dunfell patch that backports the upstream fix into its polkit 0.116 recipe, so images built from older Yocto branches without it carry the flaw. Exploitation needs a local account, so on devices the exposure is any path that gives an attacker a low-privileged shell first, such as a web interface command injection.

How do you fix CVE-2021-3560?

Update polkit to 0.119 or later, or to the distribution package that carries the fix, then restart the polkit service. For firmware, rebuild the image with a polkit recipe that includes the backport and ship it as a firmware update; check the SBOM or package list of each device for polkit 0.113 to 0.118. Our patch management guide covers rolling such fixes out, and the KEV and EPSS prioritisation guide explains how to rank local privilege escalation flaws. polkit has a second KEV-listed local root, PwnKit CVE-2021-4034 in pkexec; see also the kernel flaw CVE-2019-13272.

Is CVE-2021-3560 exploited?

Yes. CISA added it to the KEV catalog on 2023-05-12 as "Red Hat Polkit Incorrect Authorization Vulnerability", with a due date of 2023-06-02 and the required action to apply updates per vendor instructions. Known ransomware campaign use is marked Unknown. It is listed as of 2026-11-26 (catalog version 2026.11.25). FIRST EPSS gives it 0.21768, the 98.16th percentile, in the 2026-11-25 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD: [email protected] Primary CVSS 3.1 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, CVSS 2 7.2; CISA ADP 7.8; CWE-754 (NVD Primary), CWE-863 (Red Hat); CPE polkit < 0.119, Debian 11, Ubuntu 20.04, Red Hat Virtualization 4 / Virtualization Host 4, OpenShift 4.7; published 2022-02-16; read 2026-11-26. — NVD
  • CVE record (CNA Red Hat): PUBLISHED 2022-02-16, CWE-863, polkit 0.119. — CVE.org
  • Red Hat Bugzilla 1961710: Fixed In Version polkit 0.119. — Red Hat
  • GitHub blog (Kevin Backhouse, 2021-06-10): fix released 2021-06-03; introduced in commit shipped in polkit 0.113; Debian fork from 0.105-26; vulnerable RHEL 8, Fedora 21+, Debian testing, Ubuntu 20.04; not vulnerable RHEL 7, Fedora 20-, Debian 10, Ubuntu 18.04. — GitHub Security Lab
  • Debian security tracker: policykit-1 stretch and buster not affected (vulnerable code introduced later); fixed 0.105-31 unstable. — Debian
  • meta-oe dunfell patch 'polkit: fix CVE-2021-3560' (2022-03-15), state Accepted; modifies polkit_0.116.bb; Upstream-Status Backport. — Yocto Project patchwork
  • CISA KEV catalog 2026.11.25: dateAdded 2023-05-12, due 2023-06-02, knownRansomwareCampaignUse Unknown, CWE-863, required action apply updates per vendor instructions; checked 2026-11-26. — CISA KEV
  • EPSS 0.21768, percentile 0.98159, dataset 2026-11-25, read 2026-11-26. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE.org record CVE-2021-3560 (CNA: Red Hat)
  3. Red Hat Bugzilla 1961710: CVE-2021-3560 polkit local privilege escalation
  4. GitHub blog: Privilege escalation with polkit (CVE-2021-3560)
  5. Debian security tracker: CVE-2021-3560
  6. OpenEmbedded meta-oe (dunfell): polkit: fix CVE-2021-3560
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Which polkit versions are affected by CVE-2021-3560?

Upstream polkit 0.113 up to 0.118, fixed in 0.119; in Debian's fork, versions from 0.105-26, fixed in 0.105-31. Debian stretch and buster, RHEL 7 and Ubuntu 18.04 shipped older code and are not affected (per NVD, Red Hat Bugzilla, the Debian security tracker and GitHub Security Lab).

Does CVE-2021-3560 matter for embedded Linux devices?

Yes, where the firmware image includes polkit 0.113 to 0.118. Yocto-based builds pick it up from the meta-oe polkit recipe, which received the upstream fix as a backport on the dunfell branch; the attacker needs a local account or shell on the device first (per the meta-oe patch and the CVE record).

How is CVE-2021-3560 different from PwnKit (CVE-2021-4034)?

Both give local users root through polkit, but CVE-2021-3560 is in the polkit service's handling of D-Bus requests, while PwnKit is in the separate pkexec program. Both are on the CISA KEV list (per NVD and CISA KEV).

Is CVE-2021-3560 exploited in the wild?

Yes. CISA added it to the KEV catalog on 2023-05-12 and it is listed as of 2026-11-26 (catalog version 2026.11.25), with ransomware use marked Unknown. FIRST EPSS gives it 0.21768, the 98.16th percentile, in the 2026-11-25 dataset (per CISA KEV and FIRST EPSS).