CVE-2024-5585
PHP vulnerability analysis and mitigation

Overview

A high-severity vulnerability (CVE-2024-5585) affects PHP versions 8.1. before 8.1.29, 8.2. before 8.2.20, and 8.3.* before 8.3.8. The vulnerability is related to an incomplete fix for CVE-2024-1874, where the patch does not work if the command name includes trailing spaces. When using proc_open() command with array syntax, insufficient escaping allows malicious users to execute arbitrary commands in Windows shell if they control the command arguments (PHP Advisory, NVD).

Technical details

The vulnerability has received a CVSS v3.1 base score of 8.8 (HIGH) from NIST with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, while PHP Group assigned it a score of 7.7 (HIGH) with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L. The vulnerability is classified under CWE-116 (Improper Encoding or Escaping of Output) and CWE-78 (Improper Neutralization of Special Elements used in an OS Command) (NVD).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability allows attackers to execute arbitrary commands on affected systems, potentially leading to a full compromise of affected servers (Security Online, NetApp Advisory).

Mitigation and workarounds

The vulnerability has been patched in PHP versions 8.1.29, 8.2.20, and 8.3.8. Organizations using affected PHP versions are strongly advised to upgrade to these patched versions immediately (PHP Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59943HIGH8.1
  • PHPPHP
  • thorsten/phpmyfaq
NoYesOct 03, 2025
GHSA-w22c-pw5m-482xLOW3.3
  • PHPPHP
  • auth0/wordpress
NoYesOct 01, 2025
GHSA-hjfh-5jmm-xr24LOW3.3
  • PHPPHP
  • auth0/login
NoYesOct 01, 2025
GHSA-7jp2-5h22-m432LOW3.3
  • PHPPHP
  • auth0/symfony
NoYesOct 01, 2025
CVE-2025-58769LOW3.3
  • PHPPHP
  • auth0/auth0-php
NoYesOct 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management