ADVISORIES

Vulnerability

CVE-2024-5585

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix for CVE-2024-1874 does not work if the command name includes trailing spaces. Original issue: 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.

8 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • ALPINE-CVE-2024-5585

    In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix for CVE-2024-1874 does not work if the command name includes trailing spaces. Original issue: when using proc_open() command with…

    CVE-2024-5585 Alpine Updated 3 November 2026
  • AZL-42427

    CVE-2024-5585 affecting package php for versions less than 8.1.29-1

    CVE-2024-5585 Azure Linux Updated 21 April 2026
  • AZL-42439

    CVE-2024-5585 affecting package php for versions less than 8.3.8-1

    CVE-2024-5585 Azure Linux Updated 23 November 2026
  • CGA-jv4q-p359-w7v3
    CVE-2024-5585 ChainguardWolfi Updated 5 November 2026
  • CGA-mjpm-2qjw-28v3
    CVE-2024-5585 ChainguardWolfi Updated 5 November 2026
  • CGA-q9m5-f977-g33g
    CVE-2024-5585 ChainguardWolfi Updated 5 November 2026
  • CGA-qgc7-7w5c-6ww6
    CVE-2024-5585 ChainguardWolfi Updated 5 November 2026
  • CNA-CVE-2024-5585

    Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)

    CVE-2024-5585 PHP Updated 13 February 2025

References