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.
CVSS Details
- CVSS 3.1 Base Score: 7.7
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade php81Upgrade php82Upgrade php83 | Aug 22, 2024 | Jun 9, 2024 |
| Gentoo Linux | — | Upgrade dev-lang/php. | Aug 13, 2024 | Jun 9, 2024 |
| Php | — | Upgrade to PHP version 8.3.8Upgrade to PHP version 8.1.29Upgrade to PHP version 8.2.20 | Jun 14, 2024 | Jun 9, 2024 |
| Suse | — | Upgrade php8-sysvsemUpgrade php8-pharUpgrade php8-bcmathUpgrade php8-enchantUpgrade php8-pdoUpgrade php8-fpmUpgrade php8-xmlwriterUpgrade php8-sodiumUpgrade php8-readlineUpgrade php8-sysvshmUpgrade php8Upgrade php8-shmopUpgrade php8-ffiUpgrade php8-sqliteUpgrade php8-ftpUpgrade php8-mbstringUpgrade php8-iconvUpgrade php8-gettextUpgrade php8-pcntlUpgrade apache2-mod_php8Upgrade php8-pgsqlUpgrade php8-fileinfoUpgrade php8-curlUpgrade php8-soapUpgrade php8-domUpgrade php8-fpm-apacheUpgrade php8-xslUpgrade php8-bz2Upgrade php8-fastcgiUpgrade php8-opensslUpgrade php8-snmpUpgrade php8-ldapUpgrade php8-dbaUpgrade php8-develUpgrade php8-zipUpgrade php8-zlibUpgrade php8-embedUpgrade php8-gmpUpgrade php8-exifUpgrade php8-tokenizerUpgrade php8-mysqlUpgrade php8-odbcUpgrade php8-gdUpgrade php8-ctypeUpgrade php8-tidyUpgrade php8-intlUpgrade php8-calendarUpgrade php8-opcacheUpgrade php8-cliUpgrade php8-xmlreaderUpgrade php8-sysvmsgUpgrade php8-socketsUpgrade php8-posix | Dec 5, 2025 | Dec 5, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub