CVE-2024-4577

Published Jun 9, 2024

Last updated a year ago

Exploit knownCVSS critical 9.8
PHP
web application
IoT
HTTP

Overview

AI description

Automated description summarized from trusted sources.

CVE-2024-4577 is a vulnerability that enables remote code execution in PHP installations on Windows servers. It specifically affects systems running PHP in CGI mode or those exposing the PHP binary. Exploitation involves leveraging the Windows "Best-Fit" encoding feature, typically by inserting a "soft hyphen" character within a URL. This allows attackers to bypass PHP sanitization measures and execute arbitrary code via the `php.exe` executable. While initially believed to have a broader impact, further research revealed that successful exploitation primarily hinges on the system's locale being configured for Chinese (simplified or traditional) or Japanese. Other similar locales might also be susceptible. The vulnerability affects PHP versions 8.1 before 8.1.29, 8.2 before 8.2.20, and 8.3 before 8.3.8. Proof-of-concept exploits were observed shortly after the vulnerability's disclosure, highlighting its potential for misuse.

Description
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.
Source
security@php.net
NVD status
Analyzed
Products
php, fedora

Risk scores

CVSS 3.1

Type
Primary
Base score
9.8
Impact score
5.9
Exploitability score
3.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity
CRITICAL

Known exploits

Data from CISA

Vulnerability name
PHP-CGI OS Command Injection Vulnerability
Exploit added on
Jun 12, 2024
Exploit action due
Jul 3, 2024
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Weaknesses

security@php.net
CWE-78
nvd@nist.gov
CWE-78

Social media

Hype score is a measure of social media activity compared against trending CVEs from the past 12 months. Max score 100.

Hype score

2

  1. A reminder every developer needs: Security is part of the code. CVE-2024-4577 exposed a serious PHP security risk and reinforced a crucial lesson: 🔐 Keep software patched. 🛡️ Validate user input. 🔍 Monitor suspicious activity. 🔄 Update dependencies regularly. #Cyber

    @Shubhamjha8264

    24 Oct 2026

    7 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  2. With help from my @GrokBot, I built a free, open-source ethical recon bench: Nmap, Nuclei, OpenVAS, ZAP, Amass & more. One-command deploy. Flags PHP vulns like CVE-2024-4577. Active scans need authorization. Happy hunting 🛡️ https://t.co/fr4O4T0yhw @grok @xai @elonmusk

    @Cory_Zaner

    24 Oct 2026

    52 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    2 Replies

    0 Quotes

  3. Attackers began mass-exploiting CVE-2024-4577 against public-facing PHP endpoints within hours of disclosure — Cloudflare and Amazon both reported large volumes of exploit attempts in the wild. Once inside, compromised web server processes became pivot points across internal

    @aviatrixtrc

    23 Oct 2026

    53 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  4. PHP-CGI (CVE-2024-4577): input validation isn't always enough. A character-encoding quirk. A protection bypass. Potential remote code execution. Same input, different interpretations. That's where vulnerabilities hide. 🔗 https://t.co/IgkjnFg3kI #CyberSecurity #PHP

    @ankit_prabhavak

    23 Oct 2026

    44 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  5. KTO Siber Güvenlik Merkezi'nden acil uyarı! PHP yazılımındaki kritik güvenlik açığı (CVE-2024-4577) nedeniyle şirket verileri risk altında. KTOSGM Yöneticisi Ahmet Küçükcambazlar: "Saldırıya uğramayı beklemeden güncellemeleri yapın." https://t.co/zie2qsIYOC

    @RasyonelH

    23 Oct 2026

    56 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  6. CVE-2024-4577やLog4Shellは普通に対応してたんかな?

    @HikapiXi

    22 Oct 2026

    23 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  7. 今日の朝、実際に攻撃を受けてました。base64 化したシェルコマンドで SSH 鍵を仕込もうとする既知の脆弱性攻撃(CVE-2024-4577 系)、もうすぐ日付が変わるけど、ほぼ24時間戦い中‼️ まだあったんだな〜PHP PH

    @sudenikaigai

    22 Oct 2026

    258 Impressions

    0 Retweets

    2 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  8. PHPのヤバい脆弱性2つ、知ってる…? ①CVE-2024-4577 →Windowsの文字変換バグでRCE ②CVE-2019-11043 →Nginx設定ミスでRCE 「うちは関係ない」が一番危ない😇 サーバーを更新した?👀 #PHP #脆弱性 #インフラ #セキュリ

    @OfficeS20210916

    22 Oct 2026

    168 Impressions

    1 Retweet

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  9. Built a browser extension that detects PHP code-execution (php-cgi argument injection / web shells). It doesn't guess — it sends a random marker and only reports a finding when the marker comes back. Beta: browser extension that detects (CVE-2024-4577) https://t.co/4EGrxAZlaP

    @Mohamedbou0

    21 Oct 2026

    84 Impressions

    1 Retweet

    1 Like

    1 Bookmark

    1 Reply

    0 Quotes

  10. PHPの深刻な脆弱性(CVE-2024-4577)について。Windows環境でPHPを動かしている場合、リモートから任意のコードを実行される(RCE)リスクがあります。すでに実証コード(PoC)も出回っており、悪用が確認されて

    @jikfigijvlfsk

    21 Oct 2026

    452 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  11. Previous major php vulns went from advisory to in-the-wild ransomware deploying exploits in a day. (CVE-2024-4577) Time is ticking. There will be an insane amount of compromise this week. Even if you find and patch all your php (which can be hard!) - did your SaaS vendors?

    @_David_Naylor

    21 Oct 2026

    175 Impressions

    0 Retweets

    1 Like

    1 Bookmark

    0 Replies

    0 Quotes

  12. PHPくん昔にもやばい脆弱性いろいろなかったっけ?って調べてもらったけどここまでてはないらしい 次点はCVE-2024-4577とCVE-2019-11043

    @nazo

    21 Oct 2026

    199 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  13. VPSとかAWS上のHPがWordPressなどで作られていて、「更新していない放置テーマやプラグイン」が残っている場合、今回のPHPの脆弱性(CVE-2024-4577など、文字コードの解釈の隙を突く攻撃)と組み合わさることで、

    @KohaPode

    21 Oct 2026

    296 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  14. CVE-2026-109618 / 109619のCVSSは9.2であり、過去のCVE-2024-4577が9.8であったことから今回は大したことは無いのではないかと勘違いする方もいらっしゃるでしょうが、前回はCVSS v3、今回はCVSS v4のため、評価基準が異な

    @heiwagaitiban

    21 Oct 2026

    707 Impressions

    0 Retweets

    4 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  15. 【システムメンテナンスに伴うサービス一時停止のお知らせ】 PHPの脆弱性(CVE-2024-4577)に対応するため、緊急メンテナンスを実施しております。 これに伴い、「塾シル」のサービスを一時停止しておりま

    @unite_jukushiru

    21 Oct 2026

    519 Impressions

    0 Retweets

    0 Likes

    1 Bookmark

    0 Replies

    0 Quotes

  16. 🔴 PHP, Remote Code Execution, #CVE-2024-4577 (critical) -DC-Oct2026-3512 https://t.co/cKWWXe6klP

    @dailycve

    21 Oct 2026

    74 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  17. Und wieder ein neuer vermeintlicher Stressindikator ... CVE-2024-4577 ... #websites #coding #webserver #php #security

    @spiconemg

    21 Oct 2026

    2 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  18. 1 Oct 2026: Our honeypot captured exploit bodies from 34.19.150.122 matching React2Shell (CVE-2025-55182), Langflow (CVE-2025-3248) and PHP-CGI (CVE-2024-4577), targeting environment variables. Execution and secret theft unconfirmed. #ThreatIntel

    @Decoynotes

    18 Oct 2026

    1 Impression

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  19. TRC analysis shows attackers exploiting high-EPSS vulnerabilities like CVE-2022-1471 and CVE-2024-4577 to compromise EKS clusters, then pivoting through IMDSv1 misconfigurations and frp reverse proxies. Runtime segmentation limits this lateral movement across container

    @aviatrixtrc

    12 Oct 2026

    63 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  20. CVEs Explainer #12 CVE-2024-4577 (PHP-CGI Argument Injection) A critical argument injection flaw in PHP's CGI mode on Windows, where the "Best-Fit" character encoding behavior allowed attackers to pass malicious options to the PHP binary. Unauthenticated attackers could https:

    @xbhaveshverma

    9 Oct 2026

    75 Impressions

    1 Retweet

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  21. 🛡️ #ExploitGrid Daily #Threat Digest Critical Exploits disclosed today: CVE-2018-20062 CVE-2023-25157 CVE-2024-4577 CVE-2026-20253 CVE-2026-41096 ..🧵👇

    @exploitgrid

    11 Sept 2026

    55 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  22. 「まだ動いているから大丈夫」 ——その判断が、いちばん高くつきます。 PHP 8.1は2025年末でサポート終了。そしてPHP 8.2も2026年12月31日で終了。残り5ヶ月です。 EOL版を動かし続けることは、単に「古い」の

    @ANNAIInc

    6 Aug 2026

    165 Impressions

    0 Retweets

    2 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  23. A #CWE is not a CVE, and swapping the two is the fastest way to lose a security conversation. 🔐 CVE-2024-4577 is one vulnerability: one product, specific versions, a patch. CWE-78 is the WEAKNESS class it belongs to, OS command injection, and it has no version and no patch. h

    @alexdaubois

    2 Aug 2026

    963 Impressions

    0 Retweets

    9 Likes

    1 Bookmark

    0 Replies

    0 Quotes

  24. CVE-2024-4577: millions of Windows PHP-CGI servers were one HTTP request away from RCE. Exceptional CVSS of 9.8. 😬 Windows in code pages like zh/ja does "Best-Fit" mapping on cmdline args. A soft hyphen (0xAD) becomes a real "-" before PHP-CGI ever sees its argv. A URL with

    @alexdaubois

    21 Jun 2026

    1307 Impressions

    2 Retweets

    21 Likes

    8 Bookmarks

    0 Replies

    0 Quotes

  25. تحذير أمني حاسم لمطوري PHP على خوادم ويندوز! تم الكشف عن ثغرة خطيرة (CVE-2024-4577) تسمح بتنفيذ الأوامر عن بعد عند تشغيل PHP في وضع CGI، مما يعرض الخادم لخطر الاختراق

    @CameleonGoods

    15 Jun 2026

    50 Impressions

    1 Retweet

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  26. أصدرت المديرية العامة لأمن نظم المعلومات (DGSSI)، عبر فريقها (ma-CERT)، تحذيراً أمنياً بمستوى "حرج" بخصوص ثغرة خطيرة في لغة PHP تحمل الرمز CVE-2024-4577. تسمح هذه الثغرة

    @CameleonGoods

    13 Jun 2026

    11 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  27. تحذير أمني خطير لمستخدمي PHP على أنظمة ويندوز. تم اكتشاف ثغرة (CVE-2024-4577) تسمح للمهاجمين بتنفيذ تعليمات برمجية عن بعد والسيطرة على الخادم، خاصة في بيئات مثل XAM

    @CameleonGoods

    13 Jun 2026

    91 Impressions

    0 Retweets

    4 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  28. أصدرت المديرية العامة لأمن نظم المعلومات في المغرب تحذيراً حرجاً بخصوص ثغرة أمنية خطيرة (CVE-2024-4577) تؤثر على إصدارات PHP المثبتة على نظام ويندوز، مما قد يسمح

    @CameleonGoods

    13 Jun 2026

    68 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  29. Цепочка атаки на ИТ-инфраструктуру компании через AD CS: от CVE-2024-4577 до компрометации домена https://t.co/gHo7BbgOF7 https://t.co/5DbulO6TQ3

    @VulnersHub

    8 Jun 2026

    0 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  30. ¡Acabo de rootear Giveback en @hackthebox_eu! 🚩 🔸 CVE-2024-5932 (GiveWP) → RCE 🔸 CVE-2024-4577 (PHP-CGI) → pivote en K8s 🔸 CVE-2024-21626 (runc) → escape de contenedor → root https://t.co/mF7niWbmNt #HackTheBox #HTB #CVE #Kubernetes #Pentesting #

    @cyberknight_91

    12 May 2026

    7 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  31. PHP-CGI RCE attempt observed (CVE-2024-4577) 2026-05-11 02:15:08 UTC Source IP: 130.78.217.194 🇬🇧 POST /cgi-bin/param.cgi?post_raw IOCs: 130.78.217.194 🇬🇧 hxxp://130.78.217.194:8888/bot.sh 06f55a73b369040bee42de084027d3dc https://t.co/UjDd4lcPGH

    @sicehice

    11 May 2026

    2926 Impressions

    0 Retweets

    0 Likes

    1 Bookmark

    0 Replies

    0 Quotes

  32. the foundation is already compromised. cve-2024-4577, critical php rce via argument injection on windows, is now under active exploitation. ignored patches mean widespread web server compromise. your data is already out there.

    @thededbatman

    1 May 2026

    2 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  33. TRC analysis shows RedTail cryptomining campaign exploiting CVE-2024-4577 PHP vulnerability with 'libredtail-http' User-Agent. Attackers achieve remote code execution, deploy miners, and establish C2 connections for resource hijacking. #ZeroDay #ThreatIntel 🔗 Full TRC analysi

    @aviatrixtrc

    30 Apr 2026

    58 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  34. New Libredtail campaign exploits CVE-2024-4577 to deploy redtail cryptomining malware via HTTP POST attacks targeting PHP misconfigurations. Honeypot data shows coordinated activity from German 🇩🇪, British 🇬🇧, and Indian 🇮🇳 IPs. #DFIR_Radar https://t.co/t0uLDWZ

    @DFIR_Radar

    30 Apr 2026

    107 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    1 Reply

    0 Quotes

  35. CVE-2024-4577. CVSS 9.8 (CRITICAL) | PHP 8.1-8.3 (Windows CGI) | Best-Fit Character Conversion Bypass → Unauthenticated RCE

    @lyrie_ai

    29 Apr 2026

    29 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  36. 00:00 UTC: CVE-2024-4577 disclosed. CVE-2024-4577: PHP-CGI RCE via Windows Best-Fit Character Conversion

    @lyrie_ai

    29 Apr 2026

    23 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  37. CVE-2024-4577 In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages ... https://t.co/DDWph7iIcd https://t.co/feZjoNZcbR

    @CVEradars

    2 Apr 2026

    0 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  38. #letsdefend I have gained new badge on @LetsDefendIO Just completed a hands-on investigation of CVE-2024-4577 (PHP-CGI RCE) on LetsDefend. Artifact analysis, version fingerprinting, and exploitation chain — logged and done. #SOC #BlueTeam #Cybersecurity https://t.co/loAukVfuN

    @SALIMASSILI2006

    30 Mar 2026

    40 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  39. Just finished analyzing a 6-day PCAP and caught the RedTail botnet in action! Defeated a fileless execution attempt exploiting CVE-2024-4577 and mapped out the attacker's infrastructure using OSINT. full report here: https://t.co/asIfqqjrQk #CyberSecurity #report #InfoSec htt

    @Danwaxiree

    20 Mar 2026

    7 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  40. Heads up, hunters! CVE-2024-4577: Critical RCE in PHP-FPM on Windows (CVSS 9.8). This 'best-fit' bypass means arbitrary code execution via argument injection. Check your PHP-CGI deployments ASAP. Patch or get popped! https://t.co/8aTCLSu3fU

    @computerauditor

    9 Mar 2026

    45 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  41. HackTheBox - GiveBack 🧩 Plugin vulnerable de WordPress - CVE-2024-5932 🔁 CGI-PHP vulnerable - CVE-2024-4577 🔑 Kubernetes secrets + acceso SSH 🚀 Abuso de runc para escalar privilegios https://t.co/F8QTI2T9UZ

    @sckull_

    21 Feb 2026

    85 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  42. 🚨 Heads up Sysadmins: We just intercepted and neutralized an active "RedTail" crypto-jacking attack on client servers. Exploiting CVE-2024-4577 (PHP-CGI) to deploy miners hidden as fake [kcached] kernel processes. #InfoSec #Linux #AWS #MalwareAlert https://t.co/F6l3qRcXrF

    @SURAJSINGH19746

    14 Feb 2026

    14 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  43. New case for 🇯🇵 shows, as one hole in PHP turns into a quiet occupation of the entire network: they beat the CVE-2024-4577, pour PowerShell through PHP, raise Cobalt Strike with TaoWu-plugins, disperse Potatoes to SYSTEM, are registered in registry and bags, clean logs, sca

    @Hack_Your_Mom

    12 Nov 2025

    19 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  44. サイバー犯罪者がPHPやそのフレームワークの脆弱性を悪用し、暗号通貨マイニングを加速させている。特に、ThinkPHPやPHPUnit、最近公開されたCVE-2024-4577がターゲットとなり、2025年8月から10月にかけて攻撃が急

    @yousukezan

    5 Nov 2025

    948 Impressions

    0 Retweets

    4 Likes

    1 Bookmark

    0 Replies

    0 Quotes

  45. Actively exploited CVE : CVE-2024-4577

    @transilienceai

    26 Oct 2025

    45 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  46. Actively exploited CVE : CVE-2024-4577

    @transilienceai

    25 Oct 2025

    38 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  47. 📢 𝐇𝐨𝐭 𝐨𝐟𝐟 𝐭𝐡𝐞 𝐩𝐫𝐞𝐬𝐬: 𝐂𝐕𝐄 𝐢𝐧𝐬𝐢𝐠𝐡𝐭𝐬! Learn how CVE-2024-4577 lets attackers hijack PHP servers via CGI injection and how to defend using threat intelligence and proactive mitigation. 👉 Dive into the f

    @PurpleOps_io

    12 Oct 2025

    80 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  48. Using real-world attack data from Akamai's research team, this session will showcase live exploitation demos, explore the impact of vulnerabilities like CVE-2024-4577 (PHP-CGI Argument Injection), & introduce cutting-edge Unicode fuzzing techniques. Tix: https://t.co/m4J2bIg

    @BSides_NoVA

    24 Sept 2025

    169 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  49. 📢 𝐍𝐞𝐰 𝐂𝐕𝐄 𝐚𝐧𝐚𝐥𝐲𝐬𝐢𝐬 𝐣𝐮𝐬𝐭 𝐝𝐫𝐨𝐩𝐩𝐞𝐝! CVE-2024-4577 lets attackers remotely run code on your server-find out if you're vulnerable and how to stop exploitation before it's too late. 👉 Dive into the full a

    @PurpleOps_io

    21 Sept 2025

    72 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  50. Actively exploited CVE : CVE-2024-4577

    @transilienceai

    15 Sept 2025

    30 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

Configurations

References

Sources include official advisories and independent security research.