CVE-2017-9841 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2022-03-26
The eval-stdin.php component in PHPUnit allows remote attackers to execute arbitrary PHP code via HTTP POST data starting with a '<?php ' substring. This occurs when the /vendor folder is exposed to external access, enabling command injection.
Yes. phpunit/phpunit (Packagist): upgrade to 4.8.28 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2017-9841 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2017-9841?
Check whether you run phpunit/phpunit (Packagist) or PHPUnit at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
phpunit/phpunit (Packagist): upgrade to 4.8.28 or later
composer require phpunit/phpunit:^4.8.28
Affected products
PHPUnit Project PHPUnit before 4.8.28, 5.x before 5.6.3