Under active attack

PHPUnit: CVE-2017-9841

PHPUnit Command Injection Vulnerability. CISA added it to its list of flaws being exploited in the wild on 15 Feb 2022.

CVE
CVE-2017-9841
Vendor
PHPUnit
Product
PHPUnit
Added to CISA's exploited list
15 Feb 2022
US federal patch deadline
15 Aug 2022
Used in ransomware campaigns
Not known
Exploit likelihood, next 30 days
>99.9% (higher than 99% of scored flaws)

What CISA says

PHPUnit 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.CISA, Known Exploited Vulnerabilities catalog

In plain English: Code injection

The software can be made to run code supplied by the attacker, which usually means full control of the application.

What to do

Apply updates per vendor instructions.

If you run PHPUnit, treat this as urgent: attackers are already using it. If you're not sure whether you run it anywhere, start there.

References

Quick answers

Is CVE-2017-9841 being exploited?

Yes. CISA added CVE-2017-9841 (PHPUnit) to its Known Exploited Vulnerabilities catalog on 15 Feb 2022, which means there is reliable evidence attackers are using it.

Is CVE-2017-9841 used in ransomware?

CISA does not currently mark CVE-2017-9841 as used in ransomware campaigns. That can change, and it is still being exploited.

When does CVE-2017-9841 have to be fixed?

US federal agencies had to fix it by 15 Aug 2022 under CISA's Binding Operational Directive 22-01. Everyone else should treat that date as a guide: the flaw is already being used.

How likely is CVE-2017-9841 to be exploited?

FIRST's EPSS model puts the chance of exploitation in the next 30 days at >99.9%, higher than 99% of all scored vulnerabilities (scored 2026-12-04).

How do I fix CVE-2017-9841?

Apply updates per vendor instructions. If you're not sure whether you run PHPUnit anywhere, find out first: an up-to-date inventory is the first step.

Know what's exposed before attackers do

Flaws like this are found by testing, not by waiting. Read the difference between a vulnerability scan and a pen test, what a pen test costs, or see AvalonX plans.