Skip to content

Known exploited

CVE-2021-4034 on Amazon Linux 2023: affected packages and fixed versions

4 packages on Amazon Linux 2023 are affected by CVE-2021-4034 (Red Hat Polkit Out-of-Bounds Read and Write Vulnerability). A host is fixed once the package is at the version below or newer.

This vulnerability is known to be exploited. CISA added it to its catalog on June 27, 2022, with a remediation date of July 18, 2022 for US federal agencies. It has been used in ransomware campaigns.

Affected packages

PackageFixed inSeverityAdvisory
polkit 0.117-10.amzn2023.0.3 Important ALAS2023-2023-026
polkit-devel 0.117-10.amzn2023.0.3 Important ALAS2023-2023-026
polkit-docs 0.117-10.amzn2023.0.3 Important ALAS2023-2023-026
polkit-libs 0.117-10.amzn2023.0.3 Important ALAS2023-2023-026

Check a host

Show the installed versions and compare with the table above:

rpm -q polkit polkit-devel polkit-docs polkit-libs

Update to the fixed build:

sudo dnf upgrade polkit polkit-devel polkit-docs polkit-libs

The fixed version may look older than the upstream release that fixed the bug. Amazon Linux 2023 carries the fix in the version it already ships.

What it is

A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine.

CVE-2021-4034 on other releases

Know which of your hosts are affected

SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.

Get started free Check one server now, no signup