CVE-2024-5585
Apache PHP Path Traversal Remote Code Execution Vine("\\")
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.
INFO
Published Date :
June 9, 2024, 7:15 p.m.
Last Modified :
July 28, 2024, 2:15 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
Public PoC/Exploit Available at Github
CVE-2024-5585 has a 2 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-5585
.
URL | Resource |
---|---|
http://www.openwall.com/lists/oss-security/2024/06/07/1 | Mailing List Third Party Advisory |
https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385 | Exploit Third Party Advisory |
https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ | Third Party Advisory |
https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ | |
https://security.netapp.com/advisory/ntap-20240726-0002/ |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
PHP
Config files for my GitHub profile.
config github-config
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-5585
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-5585
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Jul. 28, 2024
Action Type Old Value New Value Added Reference PHP Group https://security.netapp.com/advisory/ntap-20240726-0002/ [No types assigned] -
CVE Modified by [email protected]
Jun. 13, 2024
Action Type Old Value New Value Added Reference PHP Group https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ [No types assigned] -
Initial Analysis by [email protected]
Jun. 12, 2024
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 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/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ Third Party Advisory 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:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Jun. 12, 2024
Action Type Old Value New Value Added Reference PHP Group https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ [No types assigned] -
CVE Modified by [email protected]
Jun. 10, 2024
Action Type Old Value New Value Added Reference PHP Group http://www.openwall.com/lists/oss-security/2024/06/07/1 [No types assigned] -
CVE Received by [email protected]
Jun. 09, 2024
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 Reference PHP Group https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385 [No types assigned] Added CWE PHP Group CWE-78 Added CWE PHP Group CWE-116 Added CVSS V3.1 PHP Group AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-5585
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-5585
weaknesses.