← back
CVE-2017-9841criticalunder attackCWE-94

CVE-2017-9841

100Vexday Risk Score

Patch now. It under exploitation confirmed by CISA and has a working public exploit.

ssvc Actcvss 9.8epss 100%
from disclosure to weapon923 days
Published on NVDJun 27
1st PoC+923d
CISA KEV+1694d
exploitation probability
100%top 1% of all CVEs
observed exploitation
yesCISA + VulnCheck
33 public exploit(s)
Action required by CISAfederal deadline: 2022-08-15

Apply updates per vendor instructions.

Versions

Affected
composer/phpunit/phpunit >= 4.8.19, < 4.8.28; composer/phpunit/phpunit >= 5.0.10, < 5.6.3
Fixed in
composer/phpunit/phpunit 4.8.28; composer/phpunit/phpunit 5.6.3
Researched and written with AI from the vendor advisory and public analysis, with the sources above. Always confirm the fixed version in the official advisory before acting.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
n/a · n/a
public PoCs found33
exploitdbwww.exploit-db.com/exploits/50702unverifiedgithubgithub.com/RandomRobbieBF/phpunit-brute30githubgithub.com/incogbyte/laravel-phpunit-rce-masscaner23githubgithub.com/Chocapikk/CVE-2017-98417githubgithub.com/ludy-dev/PHPUnit_eval-stdin_RCE6githubgithub.com/K3ysTr0K3R/CVE-2017-9841-EXPLOIT6githubgithub.com/MadExploits/PHPunit-Exploit5githubgithub.com/drcrypterdotru/PHPUnit-GoScan4githubgithub.com/MrG3P5/CVE-2017-98414githubgithub.com/akr3ch/CVE-2017-98413githubgithub.com/p1ckzi/CVE-2017-98413githubgithub.com/dream434/CVE-2017-98411githubgithub.com/joelindra/CVE-2017-98411githubgithub.com/mbrasile/CVE-2017-98410githubgithub.com/cyberharsh/Php-unit-CVE-2017-98410githubgithub.com/jax7sec/CVE-2017-98410githubgithub.com/mileticluka1/eval-stdin0githubgithub.com/MR-LeonardoGomes/CVE-2017-98410githubgithub.com/krisdewa/CVE-2017-9841-PHPUnit-Remote-Code-Execution-PoC0vulncheckvulncheck.com/xdb/6435c08ede60unverifiedvulncheckvulncheck.com/xdb/2e43500dd68aunverifiedvulncheckvulncheck.com/xdb/0ca48238fb60unverifiedvulncheckvulncheck.com/xdb/2f94822ef64aunverifiedvulncheckvulncheck.com/xdb/7d5cdaa33e78unverifiedvulncheckvulncheck.com/xdb/487df0327bceunverifiedvulncheckvulncheck.com/xdb/8e4c8dfc7380unverifiedvulncheckvulncheck.com/xdb/f2c6ac384408unverifiedvulncheckvulncheck.com/xdb/f2a50a4ad68funverifiedvulncheckvulncheck.com/xdb/7a39231796b7unverifiedvulncheckvulncheck.com/xdb/dc847405f88eunverifiedvulncheckvulncheck.com/xdb/42d8d075303funverifiedvulncheckvulncheck.com/xdb/519ed136afcfunverifiedvulncheckvulncheck.com/xdb/e74331211046unverified
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.