PHPUnit - Remote Code Execution
CVE-2017-9841
Verified
Description
PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring via Util/PHP/eval-stdin.php , as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.
Severity
Critical
CVSS Score
9.8
Exploit Probability
100%
Affected Product
phpunit
Published Date
August 7, 2020
Template Author
random_robbie, pikpikcu
CVE-2017-9841.yaml
9.8Score
CVSS Metrics
CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE ID:
cve-2017-9841
CWE ID:
cwe-94
Remediation Steps
Upgrade to PHPUnit version 5.7.21 or 6.1.6 or later.