Skip to content
skopnix

CVE-2021-4034 · NVD published 28 Jan 2022

Red Hat Polkit

On CISA's KEV list 150 days after disclosure; 171 public exploits; 1 attacker cited in reports.

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.

CISA required action (federal due date 18 Jul 2022): Apply updates per vendor instructions.

Signals

KEV, exploited in the wild
yes, added 27 Jun 2022, due 18 Jul 2022, known ransomware use
EPSS, 30-day forecast
95%, 100th percentile (as of 4 Dec 2026)
CVSS, NVD, HIGH
7.8
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Internet exposure
not stated

KEV is an observation, EPSS a forecast; KEV outranks it.

Timeline 26 Jan 2022 to today

150 days from disclosure to the KEV listing
2023202420252026Metasploit 26 Jan 2022First PoC 27 Jan 2022Disclosed 28 Jan 2022KEV 27 Jun 2022today
  1. Metasploit
  2. First PoC+1 d
  3. Disclosed+1 d
  4. KEV+150 d

150 days from disclosure to the KEV listing

Who exploits it 1 citation

  1. Earth Krahang
    1. “Exploiting CVE-2021-4034, CVE-2021-22555, and CVE-2016-5195 for privilege escalation on Linux systems”

      cited as exploiting · named nearby · trendmicro.com ↗ · 17 Oct 2026

Each actor is cited by the quoted source, linked under the quote. A citation is that source's claim, not our confirmation.

Linked 4 in our graph

Exploited by

  1. actorEarth Krahang
  2. malwarexmrig

Rules that detect it

  1. public rulePwnKit Local Privilege Escalation
  2. public rulePrivilege Escalation via PKEXEC Exploitation

Links our graph holds for this CVE, strongest first. The same data is in the graph API.

Indicators 1 tied by threat feeds

Addresses, hosts and files that threat feeds tag with this CVE: exploitation sources, payload hosts and what was dropped. Defanged. “In rule” marks the ones strong enough for the indicator sweep above.

  1. 0e7c96a22e3612c68866a8693cc583df95972d3444978ce163c024a45682133aMalware file

    sha256 · XMRIG · 1 feed · last seen 2 Nov 2026

On the wire 0 dispatches

No dispatch on our wire has named this CVE yet.

Public exploit code 171 known · links only

GitHub PoCs 169Metasploit 1Exploit-DB 1

GitHub PoCs, by trust then stars169

  1. first seen by skopnix 18 Oct 2026

  2. first seen by skopnix 18 Oct 2026

  3. first seen by skopnix 18 Oct 2026

  4. first seen by skopnix 18 Oct 2026

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

  7. first seen by skopnix 18 Oct 2026

  8. first seen by skopnix 18 Oct 2026

Show 161 more
  1. first seen by skopnix 18 Oct 2026

  2. first seen by skopnix 18 Oct 2026

  3. first seen by skopnix 18 Oct 2026

  4. first seen by skopnix 18 Oct 2026

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

  7. first seen by skopnix 18 Oct 2026

  8. first seen by skopnix 18 Oct 2026

  9. first seen by skopnix 18 Oct 2026

  10. first seen by skopnix 18 Oct 2026

  11. first seen by skopnix 18 Oct 2026

  12. first seen by skopnix 18 Oct 2026

  13. first seen by skopnix 18 Oct 2026

  14. first seen by skopnix 18 Oct 2026

  15. first seen by skopnix 18 Oct 2026

  16. first seen by skopnix 18 Oct 2026

  17. first seen by skopnix 18 Oct 2026

  18. first seen by skopnix 18 Oct 2026

  19. first seen by skopnix 18 Oct 2026

  20. first seen by skopnix 18 Oct 2026

  21. first seen by skopnix 18 Oct 2026

  22. first seen by skopnix 18 Oct 2026

  23. first seen by skopnix 18 Oct 2026

  24. first seen by skopnix 18 Oct 2026

  25. first seen by skopnix 18 Oct 2026

  26. first seen by skopnix 18 Oct 2026

  27. first seen by skopnix 18 Oct 2026

  28. first seen by skopnix 18 Oct 2026

  29. first seen by skopnix 18 Oct 2026

  30. first seen by skopnix 18 Oct 2026

  31. first seen by skopnix 18 Oct 2026

  32. first seen by skopnix 18 Oct 2026

  33. first seen by skopnix 18 Oct 2026

  34. first seen by skopnix 18 Oct 2026

  35. first seen by skopnix 18 Oct 2026

  36. first seen by skopnix 18 Oct 2026

  37. first seen by skopnix 18 Oct 2026

  38. first seen by skopnix 18 Oct 2026

  39. first seen by skopnix 18 Oct 2026

  40. first seen by skopnix 18 Oct 2026

  41. first seen by skopnix 18 Oct 2026

  42. first seen by skopnix 18 Oct 2026

  43. first seen by skopnix 18 Oct 2026

  44. first seen by skopnix 18 Oct 2026

  45. first seen by skopnix 18 Oct 2026

  46. first seen by skopnix 18 Oct 2026

  47. first seen by skopnix 18 Oct 2026

  48. first seen by skopnix 18 Oct 2026

  49. first seen by skopnix 18 Oct 2026

  50. first seen by skopnix 18 Oct 2026

  51. first seen by skopnix 18 Oct 2026

  52. first seen by skopnix 18 Oct 2026

  53. first seen by skopnix 18 Oct 2026

  54. first seen by skopnix 18 Oct 2026

  55. first seen by skopnix 18 Oct 2026

  56. first seen by skopnix 18 Oct 2026

  57. first seen by skopnix 18 Oct 2026

  58. first seen by skopnix 18 Oct 2026

  59. first seen by skopnix 18 Oct 2026

  60. first seen by skopnix 18 Oct 2026

  61. first seen by skopnix 18 Oct 2026

  62. first seen by skopnix 18 Oct 2026

  63. first seen by skopnix 18 Oct 2026

  64. first seen by skopnix 18 Oct 2026

  65. first seen by skopnix 18 Oct 2026

  66. first seen by skopnix 18 Oct 2026

  67. first seen by skopnix 18 Oct 2026

  68. first seen by skopnix 18 Oct 2026

  69. first seen by skopnix 18 Oct 2026

  70. first seen by skopnix 18 Oct 2026

  71. first seen by skopnix 18 Oct 2026

  72. first seen by skopnix 18 Oct 2026

  73. first seen by skopnix 18 Oct 2026

  74. first seen by skopnix 18 Oct 2026

  75. first seen by skopnix 18 Oct 2026

  76. first seen by skopnix 18 Oct 2026

  77. first seen by skopnix 18 Oct 2026

  78. first seen by skopnix 18 Oct 2026

  79. first seen by skopnix 18 Oct 2026

  80. first seen by skopnix 18 Oct 2026

  81. first seen by skopnix 18 Oct 2026

  82. first seen by skopnix 18 Oct 2026

  83. first seen by skopnix 18 Oct 2026

  84. first seen by skopnix 18 Oct 2026

  85. first seen by skopnix 18 Oct 2026

  86. first seen by skopnix 18 Oct 2026

  87. first seen by skopnix 18 Oct 2026

  88. first seen by skopnix 18 Oct 2026

  89. first seen by skopnix 18 Oct 2026

  90. first seen by skopnix 18 Oct 2026

  91. first seen by skopnix 18 Oct 2026

  92. first seen by skopnix 18 Oct 2026

  93. first seen by skopnix 18 Oct 2026

  94. first seen by skopnix 18 Oct 2026

  95. first seen by skopnix 18 Oct 2026

  96. first seen by skopnix 18 Oct 2026

  97. first seen by skopnix 18 Oct 2026

  98. first seen by skopnix 18 Oct 2026

  99. first seen by skopnix 18 Oct 2026

  100. first seen by skopnix 18 Oct 2026

  101. first seen by skopnix 18 Oct 2026

  102. first seen by skopnix 18 Oct 2026

  103. first seen by skopnix 18 Oct 2026

  104. first seen by skopnix 18 Oct 2026

  105. first seen by skopnix 18 Oct 2026

  106. first seen by skopnix 18 Oct 2026

  107. first seen by skopnix 18 Oct 2026

  108. first seen by skopnix 18 Oct 2026

  109. first seen by skopnix 18 Oct 2026

  110. first seen by skopnix 18 Oct 2026

  111. first seen by skopnix 18 Oct 2026

  112. first seen by skopnix 18 Oct 2026

  113. first seen by skopnix 18 Oct 2026

  114. first seen by skopnix 18 Oct 2026

  115. first seen by skopnix 18 Oct 2026

  116. first seen by skopnix 18 Oct 2026

  117. first seen by skopnix 18 Oct 2026

  118. first seen by skopnix 18 Oct 2026

  119. first seen by skopnix 18 Oct 2026

  120. first seen by skopnix 18 Oct 2026

  121. first seen by skopnix 18 Oct 2026

  122. first seen by skopnix 18 Oct 2026

  123. first seen by skopnix 18 Oct 2026

  124. first seen by skopnix 18 Oct 2026

  125. first seen by skopnix 18 Oct 2026

  126. first seen by skopnix 18 Oct 2026

  127. first seen by skopnix 18 Oct 2026

  128. first seen by skopnix 18 Oct 2026

  129. first seen by skopnix 18 Oct 2026

  130. first seen by skopnix 18 Oct 2026

  131. first seen by skopnix 18 Oct 2026

  132. first seen by skopnix 18 Oct 2026

  133. first seen by skopnix 18 Oct 2026

  134. first seen by skopnix 18 Oct 2026

  135. first seen by skopnix 18 Oct 2026

  136. first seen by skopnix 18 Oct 2026

  137. first seen by skopnix 18 Oct 2026

  138. first seen by skopnix 18 Oct 2026

  139. first seen by skopnix 18 Oct 2026

  140. first seen by skopnix 18 Oct 2026

  141. first seen by skopnix 18 Oct 2026

  142. first seen by skopnix 18 Oct 2026

  143. first seen by skopnix 18 Oct 2026

  144. first seen by skopnix 18 Oct 2026

  145. first seen by skopnix 18 Oct 2026

  146. first seen by skopnix 18 Oct 2026

  147. first seen by skopnix 18 Oct 2026

  148. first seen by skopnix 18 Oct 2026

  149. first seen by skopnix 18 Oct 2026

  150. first seen by skopnix 18 Oct 2026

  151. first seen by skopnix 18 Oct 2026

  152. first seen by skopnix 18 Oct 2026

  153. first seen by skopnix 18 Oct 2026

  154. first seen by skopnix 18 Oct 2026

  155. first seen by skopnix 18 Oct 2026

  156. first seen by skopnix 18 Oct 2026

  157. first seen by skopnix 18 Oct 2026

  158. first seen by skopnix 18 Oct 2026

  159. first seen by skopnix 18 Oct 2026

  160. first seen by skopnix 18 Oct 2026

  161. first seen by skopnix 18 Oct 2026

Fake proof-of-concept repositories have been used to deliver malware to the researchers who run them. The trust verdict is our engine's heuristic over the repository (account age, what it ships, how its stars arrived); it is a reason to read the code first, not a finding about its author.

Metasploit1

  1. A bug exists in the polkit pkexec binary in how it processes arguments. If the binary is provided with no arguments, it will continue to process environment variables as argument variables, but without any security checking. By using the execve call we can specify a null argument list and populate the proper environment variables. This exploit is architecture independent.

    ruby · first seen by skopnix 18 Oct 2026

Exploit-DB1

  1. created 27 Jan 2022

References

Watch this one?

KEV additions reach Telegram and the KEV-only RSS as they land.

Telegram ↗KEV RSSAPIStack check