CVE-2024-4577CVSS v3.1: 9.8CriticalGlobal

PHP-CGI on Windows Best-Fit Encoding Argument Injection

Windows code-page best-fit character mapping allows unauthenticated remote attackers to inject CLI arguments into PHP running in CGI mode.

PHP-CGI on Windows Best-Fit Encoding Argument Injection
Image:RELIABLIXSHIELD — site-designed thumbnail
CVE Identifier
CVE-2024-4577
CVSS v3.1 Base Score
9.8 (Critical)
Published Date
Jun 9, 2024
Scope / Region
Global
Affected Products
PHP 8.1 (< 8.1.29), 8.2 (< 8.2.20), 8.3 (< 8.3.8) in CGI mode on Windows

Technical Summary

Scored 9.8 Critical under CVSS v3.1, CVE-2024-4577 affects PHP 8.1 before 8.1.29, 8.2 before 8.2.20, and 8.3 before 8.3.8 running on Windows with Apache and PHP-CGI under affected locales. Windows converts soft-hyphen characters into standard hyphens, bypassing earlier CVE-2012-1823 mitigations and enabling remote code execution.

The PHP Group released patched versions 8.1.29, 8.2.20, and 8.3.8 and advised administrators to migrate away from legacy PHP-CGI deployments where possible.

Defender Briefing: Mechanism, Impact & Response

What Happened

  • When PHP runs in CGI mode (or exposes `php.exe`/`php-cgi.exe` via `ScriptAlias`, as in default XAMPP for Windows) on affected Windows code pages, Windows Best-Fit character conversion turns soft-hyphen (`0xAD` / `%ad`) bytes into `-` when passing command-line arguments to Win32 APIs (DEVCORE).
  • This behavior bypassed PHP's earlier CVE-2012-1823 guard, allowing unauthenticated HTTP requests to inject PHP CLI flags such as `-d` and execute arbitrary PHP code (NVD).

Impact

  • Scored 9.8 Critical under CVSS v3.1 (`AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`); verified directly exploitable on Windows systems running Traditional Chinese (CP950), Simplified Chinese (CP936), and Japanese (CP932) locales, with default XAMPP for Windows installations exposed (DEVCORE).

What to Do

  • Upgrade Windows PHP deployments to 8.1.29, 8.2.20, 8.3.8, or newer; EOL branches (8.0, 7.x, 5.x) receive no patches (DEVCORE).
  • Migrate away from legacy PHP-CGI toward Mod-PHP, FastCGI, or PHP-FPM, or comment out `ScriptAlias /php-cgi/` in XAMPP's `httpd-xampp.conf` if PHP-CGI is unneeded (DEVCORE).

Disclosure & Patch Timeline

  1. Disclosed and patched by the PHP development team in PHP 8.1.29, 8.2.20, and 8.3.8.
  2. CVE record published in NVD and CVE Program catalogs.

Public References

ShareShare on X →Share on LinkedIn →

Continue Reading

HighCVE AdvisoryGlobal
CVE-2026-120705: OSGeo GeoServer XML Injection Vulnerability
Image:RELIABLIXSHIELD — site-designed thumbnail

CVE-2026-120705: OSGeo GeoServer XML Injection Vulnerability

OsGeo GeoServer contains an XML injection vulnerability that allows an unauthenticated remote attacker to cause the server to read local text files accessible to the GeoServer process or fetch attacker-specified HTTP or HTTPS URLs via a crafted ID parameter in the WFS 2.0 GetFeatureById stored query. This vulnerability can be chained with CVE-2026-129244, CVE-2026-129243, CVE-2026-129245, and CVE-2026-129242 to achieve unauthenticated remote code execution on an affected GeoServer instance.

HighCVE AdvisoryGlobal
CVE-2026-129243: OSGeo GeoServer Incorrect Authorization Vulnerability
Image:RELIABLIXSHIELD — site-designed thumbnail

CVE-2026-129243: OSGeo GeoServer Incorrect Authorization Vulnerability

GeoServer contains an incorrect authorization vulnerability that allows an unauthenticated remote attacker to bypass service-level role checks and invoke operations protected solely by those checks via a request with a prefixed service parameter. This vulnerability can be chained with CVE-2026-129244, CVE-2026-120705, CVE-2026-129245, and CVE-2026-129242 to achieve unauthenticated remote code execution on an affected GeoServer instance.