CVE-2024-1874

Command injection via array-ish $command parameter of proc_open()

State
Published
Severity
9.4 Critical
Published
Apr 29, 2024
Updated
Nov 4, 2025
Reserved
Feb 25, 2024

Read the record on cve.org

Description

In PHP versions 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, when using proc_open() command with array syntax, due to insufficient escaping, if the arguments of the executed command are controlled by a malicious user, the user can supply arguments that would execute arbitrary commands in Windows shell.

Scores

CVSSScoreVectorSource
3.19.4 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Lphp

Weaknesses

  • CWE-116 Improper Encoding or Escaping of Output

Affected Products

ProductVersions
PHPPHP Group
  • 8.1.* to before 8.1.28Affected
  • 8.2.* to before 8.2.18Affected
  • 8.3.* to before 8.3.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.