ADVISORIES

Vulnerability

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.

6 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • ALPINE-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…

    CVE-2024-1874 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2024-1874
    CVE-2024-1874 Alpine Updated 18 November 2026
  • AZL-40052

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

    CVE-2024-1874 Azure Linux Updated 23 November 2026
  • CNA-CVE-2024-1874

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

    CVE-2024-1874 PHP Updated 4 November 2025
  • RHVEX-CVE-2024-1874

    php: Fail to Escape Arguments Properly in Microsoft Windows

    None CVE-2024-1874 Red Hat Updated 7 November 2026
  • openSUSE-SU-2024:13867-1

    php8-8.3.6-1.1 on GA media

    CVE-2022-31629CVE-2024-1874CVE-2024-2757CVE-2024-3096 openSUSE Updated 4 February 2026

References