CVE-2017-9841
Code Injection in PHPUnit
9.8
CRITICAL
CVSS 3.1
⚠ KEVEPSS 94.2%
Description
Util/PHP/eval-stdin.php in 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, 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.
How to fix CVE-2017-9841
To remediate CVE-2017-9841, upgrade the affected package to a fixed version below.
- —upgrade to 5.4.6-2 or later
- —upgrade to 4.8.28 or later
Is CVE-2017-9841 being exploited?
Yes — CVE-2017-9841 is on the CISA Known Exploited Vulnerabilities (KEV) catalog. Patch immediately.
Affected packages (2)
- from 0, < 5.4.6-2
- >= 4.8.19, < 4.8.28
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H |