{"id":44989,"date":"2022-01-25T21:28:47","date_gmt":"2022-01-25T21:28:47","guid":{"rendered":"https:\/\/packetstormsecurity.com\/news\/view\/33037\/PwnKit-pkexec-Local-Privilege-Escalation-Vulnerability-Discovered.html"},"modified":"2022-01-25T21:28:47","modified_gmt":"2022-01-25T21:28:47","slug":"pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered","status":"publish","type":"post","link":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/","title":{"rendered":"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered"},"content":{"rendered":"<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" data-attachment-id=\"29249\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/pwnkit\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/pwnkit.png\" data-orig-size=\"623,116\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"pwnkit\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/pwnkit-300x56.png\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/pwnkit.png\" loading=\"lazy\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit.png?is-pending-load=1\" alt class=\"wp-image-29249 jetpack-lazy-image\" width=\"318\" height=\"60\" data-lazy-srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit.png 623w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit-300x56.png 300w\" data-lazy-sizes=\"(max-width: 318px) 100vw, 318px\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><br \/>\n<noscript><img decoding=\"async\" data-attachment-id=\"29249\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/pwnkit\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/pwnkit.png\" data-orig-size=\"623,116\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"pwnkit\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/pwnkit-300x56.png\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/pwnkit.png\" loading=\"lazy\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit.png\" alt class=\"wp-image-29249\" width=\"318\" height=\"60\" srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit.png 623w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit-300x56.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\"><\/noscript><br \/>\n<\/figure>\n<p>The Qualys Research Team has discovered a memory corruption vulnerability in polkit\u2019s pkexec, a SUID-root program that is installed by default on every major Linux distribution. This easily exploited vulnerability allows any unprivileged user to gain full root privileges on a vulnerable host by exploiting this vulnerability in its default configuration.<\/p>\n<h3>About Polkit pkexec for Linux<\/h3>\n<p>Polkit (formerly PolicyKit) is a component for controlling system-wide privileges in Unix-like operating systems. It provides an organized way for non-privileged processes to communicate with privileged processes. It is also possible to use polkit to execute commands with elevated privileges using the command pkexec followed by the command intended to be executed (with root permission).<\/p>\n<h3>Potential Impact of PwnKit Vulnerability<\/h3>\n<p>Successful exploitation of this vulnerability allows any unprivileged user to gain root privileges on the vulnerable host. Qualys security researchers have been able to independently verify the vulnerability, develop an exploit, and obtain full root privileges on default installations of Ubuntu, Debian, Fedora, and CentOS. Other Linux distributions are likely vulnerable and probably exploitable. This vulnerability has been hiding in plain sight for 12+ years and affects all versions of pkexec since its first version in May 2009 (commit c8c3d83,&nbsp; \u201cAdd a pkexec(1) command\u201d).<\/p>\n<p>As soon as our Research Team confirmed the vulnerability, Qualys engaged in responsible vulnerability disclosure and has coordinated with both vendor and open-source distributions to announce the vulnerability.<\/p>\n<h3>Vulnerability Disclosure Timeline<\/h3>\n<ul>\n<li>2021-11-18: Advisory sent to secalert@redhat.<\/li>\n<li>2022-01-11: Advisory and patch sent to distros@openwall.<\/li>\n<li>2022-01-25: Coordinated Release Date (5:00 PM UTC).<\/li>\n<\/ul>\n<p> <span id=\"more-29243\"><\/span> <\/p>\n<h3>Proof of Concept Video of PwnKit Exploit<\/h3>\n<p>View this video of a potential exploit path.<\/p>\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n<div class=\"wp-block-embed__wrapper\">\n<div class=\"embed-vimeo\"><iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/669715589\" width=\"640\" height=\"360\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen>[embedded content]<\/iframe><\/div>\n<\/p><\/div>\n<\/figure>\n<h3>Technical Details of PwnKit Vulnerability<\/h3>\n<p>What follows is an explanation of how the PwnKit vulnerability works.<\/p>\n<p>The beginning of pkexec\u2019s main() function processes the command-line arguments (lines 534-568), and searches for the program to be executed, if its path is not absolute, in the directories of the PATH environment variable (lines 610-640):<\/p>\n<pre class=\"wp-block-code\"><code>------------------------------------------------------------------------\n435 main (int argc, char *argv[])\n436 {\n...\n534 for (n = 1; n &lt; (guint) argc; n++)\n535 {\n...\n568 }\n...\n610 path = g_strdup (argv[n]);\n...\n629 if (path[0] != '\/')\n630 {\n...\n632 s = g_find_program_in_path (path);\n...\n639 argv[n] = path = s;\n640 }\n------------------------------------------------------------------------\n<\/code><\/pre>\n<p>Unfortunately, if the number of command-line arguments argc is 0 \u2013 which means if the argument list argv that we pass to execve() is empty, i.e. {NULL} \u2013 then argv[0] is NULL. This is the argument list\u2019s terminator. Therefore:<\/p>\n<ul>\n<li>&nbsp;at line 534, the integer n is permanently set to 1;<\/li>\n<li>&nbsp;at line 610, the pointer path is read out-of-bounds from argv[1];<\/li>\n<li>&nbsp;at line 639, the pointer s is written out-of-bounds to argv[1].<\/li>\n<\/ul>\n<p>But what exactly is read from and written to this out-of-bounds argv[1]?<\/p>\n<p>To answer this question, we must digress briefly. When we execve() a new program, the kernel copies our argument, environment strings, and pointers (argv and envp) to the end of the new program\u2019s stack; for example:<\/p>\n<pre class=\"wp-block-code\"><code>|---------+---------+-----+------------|---------+---------+-----+------------| | argv[0] | argv[1] | ... | argv[argc] | envp[0] | envp[1] | ... | envp[envc] | |----|----+----|----+-----+-----|------|----|----+----|----+-----+-----|------| V V V V V V \"program\" \"-option\" NULL \"value\" \"PATH=name\" NULL <\/code><\/pre>\n<p>Clearly, because the argv and envp pointers are contiguous in memory, if argc is 0, then the out-of-bounds argv[1] is actually envp[0], the pointer to our first environment variable, \u201cvalue\u201d. Consequently:<\/p>\n<ul>\n<li>&nbsp;At line 610, the path of the program to be executed is read out-of-bounds from argv[1] (i.e. envp[0]), and points to \u201cvalue\u201d;<\/li>\n<li>&nbsp;At line 632, this path \u201cvalue\u201d is passed to g_find_program_in_path()&nbsp; (because \u201cvalue\u201d does not start with a slash, at line 629);<\/li>\n<li>&nbsp;Then, g_find_program_in_path() searches for an executable file named \u201cvalue\u201d in the directories of our PATH environment variable;<\/li>\n<li>&nbsp;If such an executable file is found, its full path is returned to pkexec\u2019s main() function (at line 632);<\/li>\n<li>&nbsp;Finally, at line 639, this full path is written out-of-bounds to argv[1] (i.e. envp[0]), thus overwriting our first environment variable.<\/li>\n<\/ul>\n<p>So, stated more precisely:<\/p>\n<ul>\n<li>&nbsp;If our PATH environment variable is \u201cPATH=name\u201d, and if the directory \u201cname\u201d exists (in the current working directory) and contains an&nbsp; executable file named \u201cvalue\u201d, then a pointer to the string&nbsp; \u201cname\/value\u201d is written out-of-bounds to envp[0];<\/li>\n<\/ul>\n<p>OR<\/p>\n<ul>\n<li>&nbsp;If our PATH is \u201cPATH=name=.\u201d, and if the directory \u201cname=.\u201d exists and contains an executable file named \u201cvalue\u201d, then a pointer to the&nbsp; string \u201cname=.\/value\u201d is written out-of-bounds to envp[0].<\/li>\n<\/ul>\n<p>In other words, this out-of-bounds write allows us to re-introduce an \u201cunsecure\u201d environment variable (for example, LD_PRELOAD) into pkexec\u2019s environment. These \u201cunsecure\u201d variables are normally removed (by ld.so) from the environment of SUID programs before the main() function is called. We will exploit this powerful primitive in the following section.<\/p>\n<p>Last-minute note: polkit also supports non-Linux operating systems such as Solaris and *BSD, but we have not investigated their exploitability. However, we note that OpenBSD is not exploitable, because its kernel refuses to execve() a program if argc is 0.<\/p>\n<h3>Solution: How to Patch the PwnKit Vulnerability<\/h3>\n<p>Given the breadth of the attack surface for this vulnerability across both Linux and non-Linux OS, Qualys recommends that users apply patches for this vulnerability immediately.<\/p>\n<p>Current Qualys customers can search the vulnerability knowledgebase for CVE-2021-4034 to identify all the QIDs and assets vulnerable for this vulnerability.<\/p>\n<p>Other interested parties can start a free Qualys VMDR trial to get full access to the QIDs (detections) for CVE-2021-4034, where all vulnerable assets can be identified.<\/p>\n<h4>Qualys QID Coverage<\/h4>\n<p>Qualys is releasing the QIDs in the table below as they become available starting with vulnsigs version VULNSIGS-2.5.387-2 and in Linux Cloud Agent manifest version lx_manifest-2.5.387.2-1.<\/p>\n<figure class=\"wp-block-table is-style-stripes\">\n<table>\n<tbody>\n<tr>\n<td><strong>QID<\/strong><\/td>\n<td><strong>Title<\/strong><\/td>\n<td><strong>VulnSigs Version<\/strong><\/td>\n<\/tr>\n<tr>\n<td>376287<\/td>\n<td>Polkit pkexec Local Privilege Escalation Vulnerability (PwnKit)<\/td>\n<td>VULNSIGS-2.5.387-2 &nbsp;\/ lx_manifest- VULNSIGS-2.5.387.2-1 &nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3>Discover Vulnerable Linux Servers Using Qualys VMDR<\/h3>\n<h4>Identify Assets Running Linux Kernel<\/h4>\n<p>The following instructs current Qualys customers on how to detect PwnKit in their environment.<\/p>\n<p>The first step in managing this&nbsp;critical vulnerability and reducing risk is the identification of all assets running Linux OS. <a href=\"https:\/\/www.qualys.com\/apps\/vulnerability-management-detection-response\/\">Qualys VMDR<\/a> makes it easy to identify such assets.<\/p>\n<p><em>Query: operatingSystem.category1:`Linux`<\/em><\/p>\n<figure class=\"wp-block-image alignwide size-large\"><img decoding=\"async\" data-attachment-id=\"29248\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/csam-3\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/csam.jpg\" data-orig-size=\"1420,797\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"csam\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/csam-300x168.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/csam-1070x601.jpg\" loading=\"lazy\" width=\"1070\" height=\"601\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-1070x601.jpg?is-pending-load=1\" alt class=\"wp-image-29248 jetpack-lazy-image\" data-lazy-srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-1070x601.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-300x168.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-768x431.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam.jpg 1420w\" data-lazy-sizes=\"(max-width: 1070px) 100vw, 1070px\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><br \/>\n<noscript><img decoding=\"async\" data-attachment-id=\"29248\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/csam-3\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/csam.jpg\" data-orig-size=\"1420,797\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"csam\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/csam-300x168.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/csam-1070x601.jpg\" loading=\"lazy\" width=\"1070\" height=\"601\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-1070x601.jpg\" alt class=\"wp-image-29248\" srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-1070x601.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-300x168.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam-768x431.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/csam.jpg 1420w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\"><\/noscript><br \/>\n<\/figure>\n<p>Once the hosts are identified, they can be grouped together with a \u2018dynamic tag\u2019, let\u2019s say: \u201cLinux Servers\u201d. This helps by automatically grouping existing hosts with the above vulnerabilities as well as any new Linux assets that spin up in your environment. Tagging makes these grouped assets available for querying, reporting, and management throughout the <a href=\"https:\/\/www.qualys.com\/cloud-platform\/\">Qualys Cloud Platform<\/a>.<\/p>\n<h4>Prioritize Based on RTIs<\/h4>\n<p>Using Qualys VMDR, the PwnKit vulnerability can be prioritized using the following real-time threat indicators (RTIs):<\/p>\n<ul>\n<li>Predicted_High_Risk<\/li>\n<li>Privilege_Escalation<\/li>\n<li>Easy_Exploit<\/li>\n<li>High_Lateral_Movement<\/li>\n<\/ul>\n<figure class=\"wp-block-image alignwide size-large\"><img decoding=\"async\" data-attachment-id=\"29246\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/priotization-pwnkit\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit.jpg\" data-orig-size=\"2080,1300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Priotization-Pwnkit\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-300x188.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1070x669.jpg\" loading=\"lazy\" width=\"1070\" height=\"669\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1070x669.jpg?is-pending-load=1\" alt class=\"wp-image-29246 jetpack-lazy-image\" data-lazy-srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1070x669.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-300x188.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-768x480.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1536x960.jpg 1536w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-2048x1280.jpg 2048w\" data-lazy-sizes=\"(max-width: 1070px) 100vw, 1070px\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><br \/>\n<noscript><img decoding=\"async\" data-attachment-id=\"29246\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/priotization-pwnkit\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit.jpg\" data-orig-size=\"2080,1300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Priotization-Pwnkit\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-300x188.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1070x669.jpg\" loading=\"lazy\" width=\"1070\" height=\"669\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1070x669.jpg\" alt class=\"wp-image-29246\" srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1070x669.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-300x188.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-768x480.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-1536x960.jpg 1536w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/Priotization-Pwnkit-2048x1280.jpg 2048w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\"><\/noscript><br \/>\n<\/figure>\n<h3>Patch With Qualys VMDR<\/h3>\n<p>We expect vendors to release patches for this vulnerability in the short term. Qualys Patch Management can be used to deploy those patches to vulnerable assets, when available.<\/p>\n<p>Using the same prioritization based on the RTI method as described above, customers can use the \u201cpatch now\u201d button found to the right of the vulnerability to add PwnKit to a patch job. Once patches are released, Qualys will find the relevant patches for this vulnerability and automatically add those patches to a patch job. This will allow customers to deploy those patches to vulnerable devices, all from Qualys Cloud Platform.<\/p>\n<h4>Detect Impacted Assets with Threat Protection<\/h4>\n<p>VMDR also enables you to automatically map assets vulnerable to PwnKit vulnerabilities using Threat Protect.<\/p>\n<figure class=\"wp-block-image alignwide size-large\"><img decoding=\"async\" data-attachment-id=\"29245\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/threatfeed-pwnkit\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit.jpg\" data-orig-size=\"2080,1251\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ThreatFeed-Pwnkit\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-300x180.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1070x644.jpg\" loading=\"lazy\" width=\"1070\" height=\"644\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1070x644.jpg?is-pending-load=1\" alt class=\"wp-image-29245 jetpack-lazy-image\" data-lazy-srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1070x644.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-300x180.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-768x462.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1536x924.jpg 1536w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-2048x1232.jpg 2048w\" data-lazy-sizes=\"(max-width: 1070px) 100vw, 1070px\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><br \/>\n<noscript><img decoding=\"async\" data-attachment-id=\"29245\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/threatfeed-pwnkit\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit.jpg\" data-orig-size=\"2080,1251\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ThreatFeed-Pwnkit\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-300x180.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1070x644.jpg\" loading=\"lazy\" width=\"1070\" height=\"644\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1070x644.jpg\" alt class=\"wp-image-29245\" srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1070x644.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-300x180.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-768x462.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-1536x924.jpg 1536w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/ThreatFeed-Pwnkit-2048x1232.jpg 2048w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\"><\/noscript><br \/>\n<\/figure>\n<h4>Track Vulnerability with VMDR Dashboard<\/h4>\n<p>With VMDR Unified Dashboard, you can track this vulnerability, impacted hosts, status, and overall management in real time. With trending enabled for dashboard widgets, you can keep track of these vulnerability trends in your environment using the \u201cPwnKit\u201d Dashboard.<\/p>\n<figure class=\"wp-block-image alignwide size-large\"><img decoding=\"async\" data-attachment-id=\"29255\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/vmdr-polkit-dashboard\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard.jpg\" data-orig-size=\"2080,1842\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"vmdr-polkit-dashboard\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-300x266.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1070x948.jpg\" loading=\"lazy\" width=\"1070\" height=\"948\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1070x948.jpg?is-pending-load=1\" alt class=\"wp-image-29255 jetpack-lazy-image\" data-lazy-srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1070x948.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-300x266.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-768x680.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1536x1360.jpg 1536w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-2048x1814.jpg 2048w\" data-lazy-sizes=\"(max-width: 1070px) 100vw, 1070px\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><br \/>\n<noscript><img decoding=\"async\" data-attachment-id=\"29255\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/vmdr-polkit-dashboard\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard.jpg\" data-orig-size=\"2080,1842\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"vmdr-polkit-dashboard\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-300x266.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1070x948.jpg\" loading=\"lazy\" width=\"1070\" height=\"948\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1070x948.jpg\" alt class=\"wp-image-29255\" srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1070x948.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-300x266.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-768x680.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-1536x1360.jpg 1536w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/vmdr-polkit-dashboard-2048x1814.jpg 2048w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\"><\/noscript><br \/>\n<\/figure>\n<h3>Leverage Qualys XDR Identifying Exploit Attempts<\/h3>\n<p>Qualys XDR customers can use the rule name titled \u2013 \u201cT1068 \u2013 Linux: Polkit pkexec Local Privilege Escalation Vulnerability Detected (CVE-2021-4034)\u201d to detect post-exploitation activity on affected systems. Post enablement, customers can also search for vulnerable systems using the following QQL query:<\/p>\n<p><em>eventName:\u201d The value for the SHELL variable was not found the \/etc\/shells file\u201c or \u201ccontains suspicious content\u201c<\/em><\/p>\n<p>Customers will be able to see output similar to the following screenshot:<\/p>\n<figure class=\"wp-block-image alignwide size-large\"><img decoding=\"async\" data-attachment-id=\"29247\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/threat-management\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/threat-management.jpg\" data-orig-size=\"1430,693\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"threat-management\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/threat-management-300x145.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/threat-management-1070x519.jpg\" loading=\"lazy\" width=\"1070\" height=\"519\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-1070x519.jpg?is-pending-load=1\" alt class=\"wp-image-29247 jetpack-lazy-image\" data-lazy-srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-1070x519.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-300x145.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-768x372.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management.jpg 1430w\" data-lazy-sizes=\"(max-width: 1070px) 100vw, 1070px\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><br \/>\n<noscript><img decoding=\"async\" data-attachment-id=\"29247\" data-permalink=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2022\/01\/25\/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034\/attachment\/threat-management\" data-orig-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/threat-management.jpg\" data-orig-size=\"1430,693\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"threat-management\" data-image-description data-image-caption data-medium-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/threat-management-300x145.jpg\" data-large-file=\"https:\/\/blog.qualys.com\/wp-content\/uploads\/2022\/01\/threat-management-1070x519.jpg\" loading=\"lazy\" width=\"1070\" height=\"519\" src=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-1070x519.jpg\" alt class=\"wp-image-29247\" srcset=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-1070x519.jpg 1070w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-300x145.jpg 300w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management-768x372.jpg 768w, https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/threat-management.jpg 1430w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\"><\/noscript><br \/>\n<\/figure>\n<p>Interested customers can contact <a href=\"https:\/\/www.qualys.com\/support\/\">Qualys Support<\/a> for a copy of the XDR rule until it is available in the rule library.<\/p>\n<h3>Vendor References<\/h3>\n<p><a href=\"https:\/\/www.qualys.com\/2022\/01\/25\/cve-2021-4034\/pwnkit.txt\">Read the PwnKit security advisory<\/a><\/p>\n<h3>Frequently Asked Questions (FAQs)<\/h3>\n<h4>What versions are vulnerable?<\/h4>\n<p>All Polkit versions from 2009 onwards are vulnerable.<\/p>\n<h4>Will the Qualys Research Team publish exploit code for this vulnerability?<\/h4>\n<p>No. But given how easy it is to exploit the vulnerability, we anticipate public exploits to become available within a few days of this blog\u2019s post date.<\/p>\n<h4>Are there any mitigations for this vulnerability?<\/h4>\n<p>If no patches are available for your operating system, you can remove the SUID-bit from pkexec as a temporary mitigation; for example:<\/p>\n<p><em># chmod 0755 \/usr\/bin\/pkexec<\/em><\/p>\n<h4>Is this vulnerability remotely exploitable?<\/h4>\n<p>No. But if an attacker can log in as any unprivileged user, the vulnerability can be quickly exploited to gain root privileges.<\/p>\n<h4>Is it possible to check for evidence of exploitation?<\/h4>\n<p>Yes, this exploitation technique leaves traces in the logs (either \u201cThe value for the SHELL variable was not found the \/etc\/shells file\u201d or \u201cThe value for environment variable [\u2026] contains suspicious content\u201d). However, please note that this vulnerability is also exploitable without leaving any traces in the logs.<\/p>\n<h4>Why is the vulnerability named \u201cPwnKit\u201d?<\/h4>\n<p>This is a pun intended on the name of the vulnerable application Polkit.<\/p>\n<p> READ MORE <a href=\"https:\/\/packetstormsecurity.com\/news\/view\/33037\/PwnKit-pkexec-Local-Privilege-Escalation-Vulnerability-Discovered.html\">HERE<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>READ MORE HERE&#8230;<\/p>\n","protected":false},"author":2,"featured_media":44990,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_layout":"default_layout","footnotes":""},"categories":[60],"tags":[8415],"class_list":["post-44989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-packet-storm","tag-headlinelinuxflawbsd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered 2026 | ThreatsHub Cybersecurity News<\/title>\n<meta name=\"description\" content=\"ThreatsHub Cybersecurity News | ThreatsHub.org | Cloud Security &amp; Cyber Threats Analysis Hub. 100% Free OSINT Threat Intelligent and Cybersecurity News.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered 2026 | ThreatsHub Cybersecurity News\" \/>\n<meta property=\"og:description\" content=\"ThreatsHub Cybersecurity News | ThreatsHub.org | Cloud Security &amp; Cyber Threats Analysis Hub. 100% Free OSINT Threat Intelligent and Cybersecurity News.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/\" \/>\n<meta property=\"og:site_name\" content=\"ThreatsHub Cybersecurity News\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-25T21:28:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit.png?is-pending-load=1\" \/>\n<meta name=\"author\" content=\"TH Author\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@threatshub\" \/>\n<meta name=\"twitter:site\" content=\"@threatshub\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TH Author\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/\"},\"author\":{\"name\":\"TH Author\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#\\\/schema\\\/person\\\/12e0a8671ff89a863584f193e7062476\"},\"headline\":\"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered\",\"datePublished\":\"2022-01-25T21:28:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/\"},\"wordCount\":1515,\"publisher\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png\",\"keywords\":[\"headline,linux,flaw,bsd\"],\"articleSection\":[\"Packet Storm\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/\",\"url\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/\",\"name\":\"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered 2026 | ThreatsHub Cybersecurity News\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png\",\"datePublished\":\"2022-01-25T21:28:47+00:00\",\"description\":\"ThreatsHub Cybersecurity News | ThreatsHub.org | Cloud Security & Cyber Threats Analysis Hub. 100% Free OSINT Threat Intelligent and Cybersecurity News.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png\",\"contentUrl\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png\",\"width\":623,\"height\":116},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"headline,linux,flaw,bsd\",\"item\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/tag\\\/headlinelinuxflawbsd\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/\",\"name\":\"ThreatsHub Cybersecurity News\",\"description\":\"%%focuskw%% Threat Intel \u2013 Threat Intel Services \u2013 CyberIntelligence \u2013 Cyber Threat Intelligence - Threat Intelligence Feeds - Threat Intelligence Reports - CyberSecurity Report \u2013 Cyber Security PDF \u2013 Cybersecurity Trends - Cloud Sandbox \u2013- Threat IntelligencePortal \u2013 Incident Response \u2013 Threat Hunting \u2013 IOC - Yara - Security Operations Center \u2013 SecurityOperation Center \u2013 Security SOC \u2013 SOC Services - Advanced Threat - Threat Detection - TargetedAttack \u2013 APT \u2013 Anti-APT \u2013 Advanced Protection \u2013 Cyber Security Services \u2013 Cybersecurity Services -Threat Intelligence Platform\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#organization\"},\"alternateName\":\"Threatshub.org\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#organization\",\"name\":\"ThreatsHub.org\",\"alternateName\":\"Threatshub.org\",\"url\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Threatshub_Favicon1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Threatshub_Favicon1.jpg\",\"width\":432,\"height\":435,\"caption\":\"ThreatsHub.org\"},\"image\":{\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/threatshub\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.threatshub.org\\\/blog\\\/#\\\/schema\\\/person\\\/12e0a8671ff89a863584f193e7062476\",\"name\":\"TH Author\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/066276f086d5155df79c850206a779ad368418a844da0182ce43f9cd5b506c3d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/066276f086d5155df79c850206a779ad368418a844da0182ce43f9cd5b506c3d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/066276f086d5155df79c850206a779ad368418a844da0182ce43f9cd5b506c3d?s=96&d=mm&r=g\",\"caption\":\"TH Author\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered 2026 | ThreatsHub Cybersecurity News","description":"ThreatsHub Cybersecurity News | ThreatsHub.org | Cloud Security & Cyber Threats Analysis Hub. 100% Free OSINT Threat Intelligent and Cybersecurity News.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/","og_locale":"en_US","og_type":"article","og_title":"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered 2026 | ThreatsHub Cybersecurity News","og_description":"ThreatsHub Cybersecurity News | ThreatsHub.org | Cloud Security & Cyber Threats Analysis Hub. 100% Free OSINT Threat Intelligent and Cybersecurity News.","og_url":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/","og_site_name":"ThreatsHub Cybersecurity News","article_published_time":"2022-01-25T21:28:47+00:00","og_image":[{"url":"https:\/\/2jws2s3y97dy39441y2lgm98-wpengine.netdna-ssl.com\/wp-content\/uploads\/2022\/01\/pwnkit.png?is-pending-load=1","type":"","width":"","height":""}],"author":"TH Author","twitter_card":"summary_large_image","twitter_creator":"@threatshub","twitter_site":"@threatshub","twitter_misc":{"Written by":"TH Author","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/#article","isPartOf":{"@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/"},"author":{"name":"TH Author","@id":"https:\/\/www.threatshub.org\/blog\/#\/schema\/person\/12e0a8671ff89a863584f193e7062476"},"headline":"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered","datePublished":"2022-01-25T21:28:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/"},"wordCount":1515,"publisher":{"@id":"https:\/\/www.threatshub.org\/blog\/#organization"},"image":{"@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/#primaryimage"},"thumbnailUrl":"https:\/\/www.threatshub.org\/blog\/coredata\/uploads\/2022\/01\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png","keywords":["headline,linux,flaw,bsd"],"articleSection":["Packet Storm"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/","url":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/","name":"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered 2026 | ThreatsHub Cybersecurity News","isPartOf":{"@id":"https:\/\/www.threatshub.org\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/#primaryimage"},"image":{"@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/#primaryimage"},"thumbnailUrl":"https:\/\/www.threatshub.org\/blog\/coredata\/uploads\/2022\/01\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png","datePublished":"2022-01-25T21:28:47+00:00","description":"ThreatsHub Cybersecurity News | ThreatsHub.org | Cloud Security & Cyber Threats Analysis Hub. 100% Free OSINT Threat Intelligent and Cybersecurity News.","breadcrumb":{"@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/#primaryimage","url":"https:\/\/www.threatshub.org\/blog\/coredata\/uploads\/2022\/01\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png","contentUrl":"https:\/\/www.threatshub.org\/blog\/coredata\/uploads\/2022\/01\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered.png","width":623,"height":116},{"@type":"BreadcrumbList","@id":"https:\/\/www.threatshub.org\/blog\/pwnkit-pkexec-local-privilege-escalation-vulnerability-discovered\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.threatshub.org\/blog\/"},{"@type":"ListItem","position":2,"name":"headline,linux,flaw,bsd","item":"https:\/\/www.threatshub.org\/blog\/tag\/headlinelinuxflawbsd\/"},{"@type":"ListItem","position":3,"name":"PwnKit: pkexec Local Privilege Escalation Vulnerability Discovered"}]},{"@type":"WebSite","@id":"https:\/\/www.threatshub.org\/blog\/#website","url":"https:\/\/www.threatshub.org\/blog\/","name":"ThreatsHub Cybersecurity News","description":"%%focuskw%% Threat Intel \u2013 Threat Intel Services \u2013 CyberIntelligence \u2013 Cyber Threat Intelligence - Threat Intelligence Feeds - Threat Intelligence Reports - CyberSecurity Report \u2013 Cyber Security PDF \u2013 Cybersecurity Trends - Cloud Sandbox \u2013- Threat IntelligencePortal \u2013 Incident Response \u2013 Threat Hunting \u2013 IOC - Yara - Security Operations Center \u2013 SecurityOperation Center \u2013 Security SOC \u2013 SOC Services - Advanced Threat - Threat Detection - TargetedAttack \u2013 APT \u2013 Anti-APT \u2013 Advanced Protection \u2013 Cyber Security Services \u2013 Cybersecurity Services -Threat Intelligence Platform","publisher":{"@id":"https:\/\/www.threatshub.org\/blog\/#organization"},"alternateName":"Threatshub.org","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.threatshub.org\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.threatshub.org\/blog\/#organization","name":"ThreatsHub.org","alternateName":"Threatshub.org","url":"https:\/\/www.threatshub.org\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.threatshub.org\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.threatshub.org\/blog\/coredata\/uploads\/2025\/05\/Threatshub_Favicon1.jpg","contentUrl":"https:\/\/www.threatshub.org\/blog\/coredata\/uploads\/2025\/05\/Threatshub_Favicon1.jpg","width":432,"height":435,"caption":"ThreatsHub.org"},"image":{"@id":"https:\/\/www.threatshub.org\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/threatshub"]},{"@type":"Person","@id":"https:\/\/www.threatshub.org\/blog\/#\/schema\/person\/12e0a8671ff89a863584f193e7062476","name":"TH Author","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/066276f086d5155df79c850206a779ad368418a844da0182ce43f9cd5b506c3d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/066276f086d5155df79c850206a779ad368418a844da0182ce43f9cd5b506c3d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/066276f086d5155df79c850206a779ad368418a844da0182ce43f9cd5b506c3d?s=96&d=mm&r=g","caption":"TH Author"}}]}},"_links":{"self":[{"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/posts\/44989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/comments?post=44989"}],"version-history":[{"count":0,"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/posts\/44989\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/media\/44990"}],"wp:attachment":[{"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/media?parent=44989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/categories?post=44989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.threatshub.org\/blog\/wp-json\/wp\/v2\/tags?post=44989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}