Back

CRITICAL KEV Used in ransomware campaigns

Argument Injection in PHP-CGI

Published Jun 9, 2024 ·Due Jul 3, 2024

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.

Affected products

Remediation

Red Hat statement

No Red Hat products are affected by this CVE.

Red Hat mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

References (29)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner php
Published Jun 9, 2024
Updated Oct 21, 2025
Reserved May 6, 2024

CISA Vulnrichment

Updated Jun 15, 2024

NVD

Status Analyzed
Modified Jun 17, 2026

Red Hat

Severity Critical
Public date Jun 7, 2024
Bugzilla 2291281

ENISA EUVD

Assigner php
Published Jun 9, 2024
Updated Oct 21, 2025
Exploited since Jun 12, 2024

GitHub

No data