CVE Database›Document archive›CVE-2024-1874

CVE-2024-1874

php: Fail to Escape Arguments Properly in Microsoft Windows

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · April 9, 2024

Updated · November 21, 2025

Description

A command injection flaw was found in PHP, exclusive to Windows environments. This flaw allows an attacker to perform command injection on Windows applications that indirectly depend on the CreateProcess function in specific conditions. The CreateProcess function implicitly uses cmd.exe when executing batch files, which has complicated parsing rules for arguments that have not fully escaped. It is possible to inject commands if an attacker can control part of the command arguments of the batch file.

Statement

This vulnerability exclusively applies to applications running on Windows.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')