Details have emerged about a new critical security flaw impacting PHP that could be exploited to achieve remote code execution under certain circumstances. The vulnerability, tracked as CVE-2024-4577, has been described as a CGI argument injection vulnerability affecting all versions of PHP installed on the Windows operating system. According to DEVCORE security researcher, the shortcoming makes it possible to bypass protections put in place for another security flaw, CVE-2012-1823. &#8220;While implementing PHP, the team did not notice the Best-Fit feature of encoding conversion within the  <span><a href="https://ndc.bcc.gov.bd/?news=new-php-vulnerability-exposes-windows-servers-to-remote-code-execution" class="readmore">Continue reading &rarr;</a></span>{"id":1679,"date":"2024-06-10T10:12:47","date_gmt":"2024-06-10T04:12:47","guid":{"rendered":"https:\/\/ndc.bcc.gov.bd\/?post_type=news&#038;p=1679"},"modified":"2024-06-10T10:12:47","modified_gmt":"2024-06-10T04:12:47","slug":"new-php-vulnerability-exposes-windows-servers-to-remote-code-execution","status":"publish","type":"news","link":"https:\/\/ndc.bcc.gov.bd\/?news=new-php-vulnerability-exposes-windows-servers-to-remote-code-execution","title":{"rendered":"New PHP Vulnerability Exposes Windows Servers to Remote Code Execution"},"content":{"rendered":"<p>Details have emerged about a new critical security flaw impacting PHP that could be exploited to achieve remote code execution under certain circumstances.<\/p>\n<p>The vulnerability, tracked as <strong>CVE-2024-4577<\/strong>, has been described as a CGI argument injection vulnerability affecting all versions of PHP installed on the Windows operating system.<\/p>\n<p>According to DEVCORE security researcher, the shortcoming makes it possible to bypass protections put in place for another security flaw, <a href=\"https:\/\/www.kb.cert.org\/vuls\/id\/520827\" target=\"_blank\" rel=\"noopener noreferrer\">CVE-2012-1823<\/a>.<\/p>\n<p>&#8220;While implementing PHP, the team did not notice the <a href=\"https:\/\/learn.microsoft.com\/en-us\/openspecs\/windows_protocols\/ms-ucoderef\/d1980631-6401-428e-a49d-d71394be7da8\" target=\"_blank\" rel=\"noopener noreferrer\">Best-Fit<\/a> feature of encoding conversion within the Windows operating system,&#8221; security researcher Orange Tsai <a href=\"https:\/\/devco.re\/blog\/2024\/06\/06\/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en\/\" target=\"_blank\" rel=\"noopener noreferrer\">said<\/a>.<\/p>\n<p>&#8220;This oversight allows unauthenticated attackers to bypass the previous protection of CVE-2012-1823 by specific character sequences. Arbitrary code can be executed on remote PHP servers through the argument injection attack.&#8221;<\/p>\n<p>Following responsible disclosure on May 7, 2024, a fix for the <a href=\"https:\/\/github.com\/php\/php-src\/security\/advisories\/GHSA-3qgc-jrrr-25jv\" target=\"_blank\" rel=\"noopener noreferrer\">vulnerability<\/a> has been made available in <a href=\"https:\/\/www.php.net\/ChangeLog-8.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP versions 8.3.8, 8.2.20, and 8.1.29<\/a>.<\/p>\n<p>DEVCORE has warned that all XAMPP installations on Windows are vulnerable by default when configured to use the <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/intl\/locales-and-languages\" target=\"_blank\" rel=\"noopener noreferrer\">locales<\/a> for Traditional Chinese, Simplified Chinese, or Japanese.<\/p>\n<p>The Taiwanese company is also recommending that administrators move away from the outdated PHP CGI altogether and opt for a more secure solution such as Mod-PHP, FastCGI, or PHP-FPM.<\/p>\n<p>&#8220;This vulnerability is incredibly simple, but that&#8217;s also what makes it interesting,&#8221; Tsai <a href=\"https:\/\/blog.orange.tw\/2024\/06\/cve-2024-4577-yet-another-php-rce.html\" target=\"_blank\" rel=\"noopener noreferrer\">said<\/a>. &#8220;Who would have thought that a patch, which has been reviewed and proven secure for the past 12 years, could be bypassed due to a minor Windows feature?&#8221;<\/p>\n<p>The Shadowserver Foundation, in a post <a href=\"https:\/\/x.com\/Shadowserver\/status\/1799053497490698548\" target=\"_blank\" rel=\"noopener noreferrer\">shared<\/a> on X, said it has already detected exploitation attempts involving the flaw against its honeypot servers within 24 hours of public disclosure.<\/p>\n<p>watchTowr Labs said it was able to devise an exploit for CVE-2024-4577 and achieve remote code execution, making it imperative that users move quickly to apply the latest patches.<\/p>\n<p>&#8220;A nasty bug with a very simple exploit,&#8221; security researcher Aliz Hammond said.<\/p>\n<p>&#8220;Those running in an affected configuration under one of the affected locales \u2013 Chinese (simplified, or traditional) or Japanese \u2013 are urged to do this as fast as humanly possible, as the bug has a high chance of being exploited en-mass due to the low exploit complexity.&#8221;<\/p>\n<p>Reference:<a href=\"https:\/\/thehackernews.com\/2024\/06\/new-php-vulnerability-exposes-windows.html\"> https:\/\/thehackernews.com\/2024\/06\/new-php-vulnerability-exposes-windows.html <\/a><\/p>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","tags":[],"news-category":[],"class_list":["post-1679","news","type-news","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=\/wp\/v2\/news\/1679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=\/wp\/v2\/news"}],"about":[{"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=\/wp\/v2\/types\/news"}],"author":[{"embeddable":true,"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1679"}],"version-history":[{"count":0,"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=\/wp\/v2\/news\/1679\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1679"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1679"},{"taxonomy":"news-category","embeddable":true,"href":"https:\/\/ndc.bcc.gov.bd\/index.php?rest_route=%2Fwp%2Fv2%2Fnews-category&post=1679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}