You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
Description
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to nvd@nist.gov.
PHP Group https://security.netapp.com/advisory/ntap-20240726-0002/ [No types assigned]
CVE Modified by PHP Group6/13/2024 12:15:17 AM
Action
Type
Old Value
New Value
Added
Reference
PHP Group https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ [No types assigned]
Initial Analysis by NIST6/12/2024 1:15:04 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Added
CWE
NIST CWE-116
Added
CPE Configuration
OR
*cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.1.0 up to (excluding) 8.1.29
*cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.2.0 up to (excluding) 8.2.20
*cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.3.0 up to (excluding) 8.3.8
Added
CPE Configuration
OR
*cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*
Changed
Reference Type
http://www.openwall.com/lists/oss-security/2024/06/07/1 No Types Assigned
http://www.openwall.com/lists/oss-security/2024/06/07/1 Mailing List, Third Party Advisory
Changed
Reference Type
https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385 No Types Assigned
https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385 Exploit, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ No Types Assigned
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ Third Party Advisory
CVE Modified by PHP Group6/11/2024 10:15:10 PM
Action
Type
Old Value
New Value
Added
Reference
PHP Group https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ [No types assigned]
CVE Modified by PHP Group6/10/2024 1:16:35 PM
Action
Type
Old Value
New Value
Added
Reference
PHP Group http://www.openwall.com/lists/oss-security/2024/06/07/1 [No types assigned]
New CVE Received from PHP Group6/09/2024 3:15:52 PM
Action
Type
Old Value
New Value
Added
Description
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.
Added
CVSS V3.1
PHP Group AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
Added
CWE
PHP Group CWE-116
Added
CWE
PHP Group CWE-78
Added
Reference
PHP Group https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385 [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2024-5585 NVD
Published Date: 06/09/2024 NVD
Last Modified: 11/21/2024
Source: PHP Group