CVE Feed

    Dashboard / CVE / CVE-2024-4577

    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, 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.

    Published:Jun 7, 2024
    Last Modified:Nov 3, 2025
    EPS:Jun 9, 2024
    EPSS Score:0.94374
    CVSS Score:9.8

    CISA Notification

    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.

    Required Action:

    Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

    Notes:

    No extra notes provided.

    Due Date
    Jul 3, 2024
    800 days ago
    Alert Date
    Jun 12, 2024
    821 days ago

    Affected Products

    Vendor
    Fedoraproject
    Product
    Fedora
    Vendor
    Microsoft
    Product
    Windows
    Vendor
    Php
    Product
    Php
    Vendor
    Php Group
    Product
    Php

    Exploits

    https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/https://github.com/11whoami99/CVE-2024-4577https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jvhttps://github.com/rapid7/metasploit-framework/pull/19247https://github.com/watchtowrlabs/CVE-2024-4577https://github.com/xcanwin/CVE-2024-4577-PHP-RCEhttps://isc.sans.edu/diary/30994https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/https://blog.talosintelligence.com/new-persistent-attacks-japan/https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/https://github.com/11whoami99/CVE-2024-4577https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jvhttps://github.com/rapid7/metasploit-framework/pull/19247https://github.com/watchtowrlabs/CVE-2024-4577https://github.com/xcanwin/CVE-2024-4577-PHP-RCEhttps://isc.sans.edu/diary/30994https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/https://www.vicarius.io/vsociety/posts/php-cgi-argument-injection-to-rce-cve-2024-4577https://www.vicarius.io/vsociety/posts/php-cgi-os-command-injection-vulnerability-cve-2024-4577https://www.exploit-db.com/exploits/52331https://github.com/0x20c/CVE-2024-4577-nucleihttps://github.com/0XFFFF-XD/CVE-2024-4577-PHP-CGI-RCEhttps://github.com/11whoami99/CVE-2024-4577https://github.com/a1ex-var1amov/ctf-cve-2024-4577https://github.com/aaddmin1122345/cve-2024-4577https://github.com/aavamin/cve-2024-4577https://github.com/AhmedMansour93/Event-ID-268-Rule-Name-SOC292-Possible-PHP-Injection-Detected-CVE-2024-4577-https://github.com/ahmetramazank/CVE-2024-4577https://github.com/AlperenY-cs/CVE-2024-4577https://github.com/a-roshbaik/CVE-2024-4577https://github.com/a-roshbaik/CVE-2024-4577-PHP-RCEhttps://github.com/bibo318/CVE-2024-4577-RCE-ATTACKhttps://github.com/BitMEXResearch/CVE-2024-4577https://github.com/bl4cksku11/CVE-2024-4577https://github.com/BLACK-ARCHIVERS/CVE-2024-4577https://github.com/BTtea/CVE-2024-4577-RCE-PoChttps://github.com/bughuntar/CVE-2024-4577https://github.com/byteReaper77/CVE-2024-4577https://github.com/charis3306/CVE-2024-4577https://github.com/Chocapikk/CVE-2024-4577https://github.com/CirqueiraDev/MassExploit-CVE-2024-4577https://github.com/d3ck4/Shodan-CVE-2024-4577https://github.com/dbyMelina/CVE-2024-4577https://github.com/Dejavu666/CVE-2024-4577https://github.com/Didarul342/CVE-2024-4577https://github.com/DuyDuongDuyDuong/CVE-2024-4577-Exploitation-AsyncRAT-Deployment-DFIR-Investigationhttps://github.com/eagerapps/CVE-2024-4577https://github.com/Entropt/CVE-2024-4577_Analysishttps://github.com/ggfzx/CVE-2024-4577https://github.com/gh-ost00/CVE-2024-4577-RCEhttps://github.com/Gill-Singh-A/CVE-2024-4577-Exploithttps://github.com/gl1tch0x1/PHP_8.1.x_Exploithttps://github.com/gmh5225/CVE-2024-4577-PHP-RCEhttps://github.com/gotr00t0day/CVE-2024-4577https://github.com/graphite-org/CVE-2024-4577https://github.com/hexedbyte/cve-2024-4577https://github.com/huseyinstif/CVE-2024-4577-Nuclei-Templatehttps://github.com/Ianthinus/CVE-2024-4577https://github.com/ibrahmsql/CVE-2024-4577https://github.com/InfoSec-DB/PHPCGIScannerhttps://github.com/jakabakos/CVE-2024-4577-PHP-CGI-argument-injection-RCEhttps://github.com/Jcccccx/CVE-2024-4577https://github.com/JeninSutradhar/CVE-2024-4577-checkerhttps://github.com/Junp0/CVE-2024-4577https://github.com/K3ysTr0K3R/CVE-2024-4577-EXPLOIThttps://github.com/Kanak-CypherX/cve-2024-4577-labhttps://github.com/khwajasaad267-coder/cve-2024-4577-labhttps://github.com/KimJuhyeong95/cve-2024-4577https://github.com/l0n3m4n/CVE-2024-4577-RCEhttps://github.com/longhoangth18/CVE-2024-4577https://github.com/mananjain61/PHP-CGI-INTERNAL-RCEhttps://github.com/manuelinfosec/CVE-2024-4577https://github.com/mistakes1337/CVE-2024-4577https://github.com/nemu1k5ma/CVE-2024-4577https://github.com/Night-have-dreams/php-cgi-Injectorhttps://github.com/NKTriS/HTSOChttps://github.com/olebris/CVE-2024-4577https://github.com/pararam-org/CVE-2024-4577https://github.com/PhinehasNarh/CVE-2024-4577-LetsDefend-walkthroughhttps://github.com/phirojshah/CVE-2024-4577https://github.com/princew88/CVE-2024-4577https://github.com/r0otk3r/CVE-2024-4577https://github.com/Ra1n-60W/CVE-2024-4577https://github.com/rayngnpc/CVE-2024-4577-raynghttps://github.com/razureink/cve-2024-4577-phpcgi_rce_reproductionhttps://github.com/Sh0ckFR/CVE-2024-4577https://github.com/Skycritch/CVE-2024-4577https://github.com/sug4r-wr41th/CVE-2024-4577https://github.com/Sysc4ll3r/CVE-2024-4577https://github.com/taida957789/CVE-2024-4577https://github.com/TAM-K592/CVE-2024-4577https://github.com/tntrock/CVE-2024-4577_PowerShellhttps://github.com/tpdlshdmlrkfmcla/php-cgi-cve-2024-4577https://github.com/VictorShem/CVE-2024-4577https://github.com/WanLiChangChengWanLiChang/CVE-2024-4577-RCE-EXPhttps://github.com/watchtowrlabs/CVE-2024-4577https://github.com/Wh02m1/CVE-2024-4577https://github.com/wilss0n/CVE-2024-4577https://github.com/xcanwin/CVE-2024-4577-PHP-RCEhttps://github.com/XiangDongCJC/CVE-2024-4577-PHP-CGI-RCEhttps://github.com/ywChen-NTUST/PHP-CGI-RCE-Scannerhttps://github.com/ZephrFish/CVE-2024-4577-PHP-RCEhttps://github.com/zjhzjhhh/CVE-2024-4577https://github.com/zomasec/CVE-2024-4577

    Related CVEs

    References

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High