Skip to content
Heist/ feed
Back to feed
HighFix available

policykit-1 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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 administrative rights on the target machine.

Products
policykit-1
Affected versions
Not specified
Fixed versions
0.105-31.1
CVEs
CVE-2021-4034
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:40 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-4034

core-osv · Original source

Published 28 Jan 2022, 20:15 UTC

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.

osv:DEBIAN-CVE-2021-4034

policykit-1

Fixed versions: 0.105-31.1

policykit-1

Fixed versions: 0.105-31.1

policykit-1

Fixed versions: 0.105-31.1

Complete source record
{
  "id": "37ff4b1650b5a1dab125824b65e5f375cb4723329df7e0b9a2174af310eb9bc9",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-4034",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-4034",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-4034",
    "products": [
      {
        "name": {
          "value": "policykit-1",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.105-31.1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "policykit-1",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.105-31.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "policykit-1",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.105-31.1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-4034",
      "aliases": [
        "DEBIAN-CVE-2021-4034"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.105-31.1"
                }
              ]
            }
          ],
          "package": {
            "name": "policykit-1",
            "purl": "pkg:deb/debian/policykit-1?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-4034.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.105-31.1"
                }
              ]
            }
          ],
          "package": {
            "name": "policykit-1",
            "purl": "pkg:deb/debian/policykit-1?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-4034.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.105-31.1"
                }
              ]
            }
          ],
          "package": {
            "name": "policykit-1",
            "purl": "pkg:deb/debian/policykit-1?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-4034.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:33.004417190Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-4034"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-4034"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-4034",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421879,
  "published_at": "2022-01-28T20:15:12.193+00:00"
}