Advisories
CVE-2024-4577Vulnerability (CVE)PHP Runtime

PHP CGI Argument Injection Remote Code Execution (Active Exploitation on Windows CJK Locales)

A critical argument injection flaw in PHP on Windows systems running Japanese (CP932) or Chinese (CP936/CP950) locales allows unauthenticated attackers to pass arbitrary flags to php-cgi.exe via Windows Best-Fit character conversion (0xAD soft hyphen), resulting in immediate remote code execution.

PHP
8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7 (及所有已 EOL 的 8.0/7.x/5.x)
8.3.88.2.208.1.29

Trigger Conditions & Triage Notes

Affects PHP on Windows running in CGI mode (or exposing php-cgi.exe, such as default XAMPP installs on Japanese/Chinese Windows). Linux deployments using Nginx/Apache with PHP-FPM are NOT affected.

Mitigation & Workarounds

Upgrade immediately to PHP 8.3.8, 8.2.20, or 8.1.29. As an interim mitigation on Apache/Windows, block query strings containing %ad via mod_rewrite and disable unused CGI ScriptAlias directives.
Linux Distribution Backport Notice: If you install packages (such as OpenSSL, Nginx, or PHP) via Ubuntu/Debian apt or RHEL/AlmaLinux dnf, security patches are typically backported into older upstream version numbers. Verify your OS vendor security tracker before compiling from source.

Japanese Client Impact Report Snippet (顧客報告用テンプレート)

Ready-to-send polite Japanese business report draft for teams supporting Japanese stakeholders via Email, Chatwork, or Backlog:

597 chars