ghsa-qgr2-xgqv-24x8
Vulnerability from github
Published
2022-01-29 00:00
Modified
2024-11-04 18:31
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.

Show details on source website


{
   affected: [],
   aliases: [
      "CVE-2021-4034",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-125",
         "CWE-787",
      ],
      github_reviewed: false,
      github_reviewed_at: null,
      nvd_published_at: "2022-01-28T20:15:00Z",
      severity: "HIGH",
   },
   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.",
   id: "GHSA-qgr2-xgqv-24x8",
   modified: "2024-11-04T18:31:16Z",
   published: "2022-01-29T00:00:42Z",
   references: [
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2021-4034",
      },
      {
         type: "WEB",
         url: "https://www.suse.com/support/kb/doc/?id=000020564",
      },
      {
         type: "WEB",
         url: "https://www.starwindsoftware.com/security/sw-20220818-0001",
      },
      {
         type: "WEB",
         url: "https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034",
      },
      {
         type: "WEB",
         url: "https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt",
      },
      {
         type: "WEB",
         url: "https://www.oracle.com/security-alerts/cpuapr2022.html",
      },
      {
         type: "WEB",
         url: "https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683",
      },
      {
         type: "WEB",
         url: "https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf",
      },
      {
         type: "WEB",
         url: "https://bugzilla.redhat.com/show_bug.cgi?id=2025869",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/security/vulnerabilities/RHSB-2022-001",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/security/cve/CVE-2021-4034",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0540",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0443",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0274",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0273",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0272",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0271",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0270",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0269",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0268",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0267",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0266",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2022:0265",
      },
      {
         type: "WEB",
         url: "http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html",
      },
      {
         type: "WEB",
         url: "http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
         type: "CVSS_V3",
      },
   ],
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.