CVE-2021-3560 Red Hat Polkit Incorrect Authorization

Exploited in the wild High 7.8 Published Updated

An unprivileged local attacker can bypass polkit credential checks to gain root privileges and create new administrator accounts.

Exploited in the wild
Since 12 May 2023
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3560?

CVE-2021-3560 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 16 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

It was found that polkit could be tricked into bypassing the credential checks for D-Bus requests, elevating the privileges of the requestor to the root user. This flaw could be used by an unprivileged local attacker to, for example, create a new local administrator. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Weakness: CWE-754, CWE-863

Which versions are affected by CVE-2021-3560?

It affects 6 products.

Linux distribution packages (40)
polkit Red Hat:enterprise_linux:8::baseosAll versions0:0.115-11.el8_4.1
polkit-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:0.115-11.el8_4.1
polkit-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:0.115-11.el8_4.1
polkit-devel Red Hat:enterprise_linux:8::baseosAll versions0:0.115-11.el8_4.1
polkit-docs Red Hat:enterprise_linux:8::baseosAll versions0:0.115-11.el8_4.1
polkit-libs Red Hat:enterprise_linux:8::baseosAll versions0:0.115-11.el8_4.1
polkit-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:0.115-11.el8_4.1
polkit Red Hat:rhel_eus:8.1::baseosAll versions0:0.115-9.el8_1.1
polkit-debuginfo Red Hat:rhel_eus:8.1::baseosAll versions0:0.115-9.el8_1.1
polkit-debugsource Red Hat:rhel_eus:8.1::baseosAll versions0:0.115-9.el8_1.1
polkit-devel Red Hat:rhel_eus:8.1::baseosAll versions0:0.115-9.el8_1.1
polkit-docs Red Hat:rhel_eus:8.1::baseosAll versions0:0.115-9.el8_1.1
polkit-libs Red Hat:rhel_eus:8.1::baseosAll versions0:0.115-9.el8_1.1
polkit-libs-debuginfo Red Hat:rhel_eus:8.1::baseosAll versions0:0.115-9.el8_1.1
polkit Red Hat:rhel_eus:8.2::baseosAll versions0:0.115-11.el8_2.1
polkit-debuginfo Red Hat:rhel_eus:8.2::baseosAll versions0:0.115-11.el8_2.1
polkit-debugsource Red Hat:rhel_eus:8.2::baseosAll versions0:0.115-11.el8_2.1
polkit-devel Red Hat:rhel_eus:8.2::baseosAll versions0:0.115-11.el8_2.1
polkit-docs Red Hat:rhel_eus:8.2::baseosAll versions0:0.115-11.el8_2.1
polkit-libs Red Hat:rhel_eus:8.2::baseosAll versions0:0.115-11.el8_2.1
polkit-libs-debuginfo Red Hat:rhel_eus:8.2::baseosAll versions0:0.115-11.el8_2.1
polkit Rocky Linux:8All versions0:0.115-11.el8_4.1
polkit SUSE:Enterprise Storage 6All versions0.114-3.12.1
polkit SUSE:HPE Helion OpenStack 8All versions0.113-5.21.1
polkit SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions0.114-3.12.1
polkit SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions0.114-3.12.1
polkit SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions0.114-3.12.1
polkit SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions0.114-3.12.1
polkit SUSE:Linux Enterprise Micro 5.0All versions0.116-3.3.1
polkit SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions0.116-3.3.1
polkit SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions0.116-3.3.1
polkit SUSE:Linux Enterprise Server 12 SP2-BCLAll versions0.113-5.21.1
polkit SUSE:Linux Enterprise Server 12 SP3-BCLAll versions0.113-5.21.1
polkit SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions0.113-5.21.1
polkit SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions0.113-5.21.1
polkit SUSE:Linux Enterprise Server 12 SP5All versions0.113-5.21.1
polkit SUSE:Linux Enterprise Server 15 SP1-BCLAll versions0.114-3.12.1
polkit SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions0.114-3.12.1
polkit SUSE:Linux Enterprise Server 15-LTSSAll versions0.114-3.12.1
polkit SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions0.113-5.21.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Polkit Project Polkit, Redhat Openshift Container Platform, Redhat Virtualization, Redhat Virtualization Host.

How do I fix CVE-2021-3560?

Apply the vendor's patch. US federal agencies must fix it by 2 Jun 2023.

Is CVE-2021-3560 being exploited?

Yes. Attackers have exploited CVE-2021-3560 in the wild since at least 12 May 2023.

Public exploit code: 1 Metasploit module, 1 Exploit-DB entry and 33 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-3560, GHSA-7c49-j253-wq5r, MGASA-2021-0244, OESA-2021-1230, RHSA-2021:2236, RHSA-2021:2237 and 9 more.

Is CVE-2021-3560 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free