All vulnerabilities

Servers and applications

CVE-2024-1874

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.

Severity
Critical 9.4
Published
29 Apr 2024
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
8.1.28, 8.2.18, 8.3.5
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 8.1.0 before 8.1.28
  • From 8.2.0 before 8.2.18
  • From 8.3.0 before 8.3.5

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2024-1874
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2024-1874