← gociux.comall exploited CVEs

Exploited vulnerability · CISA KEV

Is CVE-2017-9841 exploited? Yes: in CISA KEV since 15 Feb 2022

Gociux · PHPUnit · data: CISA KEV, CVE record, FIRST EPSS

Yes. CVE-2017-9841, PHPUnit Command Injection Vulnerability, is being exploited in the wild. CISA added it to its Known Exploited Vulnerabilities catalog on 15 Feb 2022, 1694 days after it was published. It affects PHPUnit. If you run it, CISA's required action is: Apply updates per vendor instructions.

exploitedYesCISA KEV · 15 Feb 2022
ransomwareNot knownno confirmed use
EPSStop 1%among the most likely CVEs to be exploited
severity9.8CVSS 3.1 · critical
US federal due15 Aug 2022BOD 22-01 deadline

What it is

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.

VendorPHPUnit (1 exploited CVE in KEV)
ProductPHPUnit
VulnerabilityPHPUnit Command Injection Vulnerability
WeaknessCWE-94
Published27 Jun 2017
Added to KEV15 Feb 2022
Reported by (CNA)mitre

What to do

  1. Check whether you run it. Look for PHPUnit in your asset inventory, including appliances and cloud images. Stack check lists every exploited PHPUnit CVE at once.
  2. Apply the fix. Apply updates per vendor instructions.
  3. If you can't patch today, take the affected service off the internet or restrict who can reach it, and check its logs for signs of compromise since 27 Jun 2017.
  4. Get told next time. Email alerts when CISA adds a CVE for PHPUnit.

References

Questions

Is CVE-2017-9841 being exploited?

Yes. CISA added CVE-2017-9841 to the Known Exploited Vulnerabilities catalog on 15 Feb 2022, which means there is reliable evidence of exploitation in the wild.

Is CVE-2017-9841 used in ransomware attacks?

CISA does not list known ransomware use for it. That can change, and exploitation alone is reason to fix it first.

How do I fix CVE-2017-9841?

Apply updates per vendor instructions. Check PHPUnit's advisory for the fixed versions, and if you can't patch quickly, restrict access to the affected PHPUnit and watch it for signs of compromise.

Sources: CISA KEV (exploitation, ransomware use, required action, due date), the CVE record (publication date, CVSS, CNA), NVD and FIRST EPSS (live score). More: all KEV additions in February 2022 · act-now radar.

Running PHPUnit in a regulated environment?

We check exposure across your estate, patch or mitigate with your team, and set up detection for what attackers do after exploiting it.

Get in touch →