Advisory

UBUNTU-CVE-2021-4034

Also known as: CVE-2021-4034

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2022-01-25 17:00 UTC
Modified
2026-04-22 13:00 UTC

Affected packages and fixes

policykit-1

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 0.105-20ubuntu0.18.04.6 (ecosystem)

Fixed versions

0.105-20ubuntu0.18.04.6

Fix

  • Fixed version 0.105-20ubuntu0.18.04.6
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

policykit-1

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 0.105-26ubuntu1.2 (ecosystem)

Fixed versions

0.105-26ubuntu1.2

Fix

  • Fixed version 0.105-26ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

policykit-1

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 0.105-31ubuntu1 (ecosystem)

Fixed versions

0.105-31ubuntu1

Fix

  • Fixed version 0.105-31ubuntu1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences