CVE-2024-5585

In PHP versions8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix forCVE-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.
OS Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.7 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
phpCNA
7.7 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
CISA-ADPADP
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 72%
VendorProductVersion
phpphp
8.1.29 <
𝑥
< 8.1.29
phpphp
8.2.20 <
𝑥
< 8.2.20
phpphp
8.3.8 <
𝑥
< 8.3.8
phpphp
8.1.0 ≤
𝑥
< 8.1.29
phpphp
8.2.0 ≤
𝑥
< 8.2.20
phpphp
8.3.0 ≤
𝑥
< 8.3.8
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php7.4
bullseye
7.4.33-1+deb11u5
fixed
bullseye (security)
7.4.33-1+deb11u8
fixed
php8.2
bookworm
8.2.28-1~deb12u1
fixed
bookworm (security)
8.2.28-1~deb12u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php5
noble
dne
mantic
dne
jammy
dne
focal
dne
trusty
not-affected
php7.0
noble
dne
mantic
dne
jammy
dne
focal
dne
xenial
not-affected
php7.2
noble
dne
mantic
dne
jammy
dne
focal
dne
bionic
not-affected
php7.4
noble
dne
mantic
dne
jammy
dne
focal
not-affected
php8.1
noble
dne
mantic
dne
jammy
not-affected
focal
dne
php8.2
noble
dne
mantic
not-affected
jammy
dne
focal
dne
php8.3
noble
not-affected
mantic
dne
jammy
dne
focal
dne