---
title: "CVE-2021-4034"
canonical_url: "https://pkgseek.com/security/CVE-2021-4034"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2021-4034

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 ad…

CVE-2021-4034 is rated HIGH (7.8), with 15 indexed affected package builds across 3 distributions.

- **Severity / Score**: HIGH (7.8)
- **Affected builds**: 15
- **Affected distros**: 3
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | polkit | 0.115-11.1.al8.1 | 0.115-13.al8.1 |
| Alibaba Cloud Linux | 3 | polkit-devel | 0.115-11.1.al8.1 | 0.115-13.al8.1 |
| Alibaba Cloud Linux | 3 | polkit-docs | 0.115-11.1.al8.1 | 0.115-13.al8.1 |
| Alibaba Cloud Linux | 3 | polkit-libs | 0.115-11.1.al8.1 | 0.115-13.al8.1 |
| Oracle Linux | 8 | polkit | 0.115-12.0.1.el8 | 0.115-13.0.1.el8_5.1 |
| Oracle Linux | 8 | polkit-devel | 0.115-12.0.1.el8 | 0.115-13.0.1.el8_5.1 |
| Oracle Linux | 8 | polkit-docs | 0.115-12.0.1.el8 | 0.115-13.0.1.el8_5.1 |
| Oracle Linux | 8 | polkit-libs | 0.115-12.0.1.el8 | 0.115-13.0.1.el8_5.1 |
| Ubuntu | focal | gir1.2-polkit-1.0 | 0.105-26ubuntu1 | 0.105-26ubuntu1.2 |
| Ubuntu | focal | libpolkit-agent-1-0 | 0.105-26ubuntu1 | 0.105-26ubuntu1.2 |
| Ubuntu | focal | libpolkit-agent-1-dev | 0.105-26ubuntu1 | 0.105-26ubuntu1.2 |
| Ubuntu | focal | libpolkit-gobject-1-0 | 0.105-26ubuntu1 | 0.105-26ubuntu1.2 |
| Ubuntu | focal | libpolkit-gobject-1-dev | 0.105-26ubuntu1 | 0.105-26ubuntu1.2 |
| Ubuntu | focal | policykit-1 | 0.105-26ubuntu1 | 0.105-26ubuntu1.2 |
| Ubuntu | focal | policykit-1-doc | 0.105-26ubuntu1 | 0.105-26ubuntu1.2 |
