Skip to main content
← All vulnerabilities
CVE-2024-1874

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.1.28, 8.2.18, 8.3.5
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • PHP Group PHP

    fixed in 8.1.28; fixed in 8.2.18; fixed in 8.3.5

References 7

GitHub · php/php-src

openwall.com

security.netapp.com

lists.fedoraproject.org

GitHub · MrBongoC/CVE-2024-1874