CVE-2024-1874
Command injection via array-ish $command parameter of proc_open
Severity: Critical CVSS 9.4. Status in our packages: Fixed.
About 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.
Description quoted from the CVE record at cve.org.
| Published | 2024-04-29 |
|---|---|
| Weakness | CWE-116 Improper Encoding or Escaping of Output |
| CVSS | Critical 9.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L (scored by the CVE numbering authority) |
| Affected upstream | PHP 8.1.* before 8.1.28; PHP 8.2.* before 8.2.18; PHP 8.3.* before 8.3.5 |
Status in GetPageSpeed packages
| Product | Status | Fixed in | Details |
|---|---|---|---|
| PHP 7.2 on Ubuntu 18.04 | Fixed | 7.2.34-66+gps1 | Everpatch PHP 7.2 |
| PHP 7.3 on Debian 10 | Fixed | 7.3.33-35+gps1 | Everpatch PHP 7.3 |
| PHP 7.4 on Debian 10 | Fixed | 1:7.4.33-31+gps1 | Everpatch PHP 7.4 |
Check a server for CVE-2024-1874
Everpatch PHP on Debian and Ubuntu: PHP 7.2 on Ubuntu 18.04 7.2.34-66+gps1, PHP 7.3 on Debian 10 7.3.33-35+gps1, PHP 7.4 on Debian 10 1:7.4.33-31+gps1 or later. The Debian changelog names every CVE a build fixes.
dpkg-query -W 'php*-common'
zgrep -F CVE-2024-1874 /usr/share/doc/php*-common/changelog.Debian.gzAfter a PHP update, restart PHP-FPM (and Apache httpd if it runs mod_php): the old processes keep the vulnerable code until then.
Fixed in the same build
- CVE-2024-4577: Argument Injection in PHP-CGI
- CVE-2024-3096: PHP function password_verify can erroneously return true when argument contains NUL
- CVE-2024-2756: __Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix
- CVE-2023-3824: Buffer overflow and overread in phar_dir_read()
- CVE-2023-3823: Security issue with external entity loading in XML without enabling it
- CVE-2023-0662: DoS vulnerability when parsing multipart request body
Scanner feeds (OVAL, CSAF, OpenVEX), fix-time targets and answers to common questions: the CVE tracker.