Actively exploited vulnerability / CVE-2017-9841
PHPUnit: an attacker can take control of your PHP website remotely
A vulnerability in PHPUnit lets an attacker run their own code on a website's server, without an account or password, when the component is reachable from the internet. This means they could steal data, change the site or use the server for further attacks. It is on the lists of vulnerabilities used in real attacks kept by CISA, the US cybersecurity agency, and by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2017-9841 · EUVD-2022-1528
- Severity
- Critical (9.8/10)
- On the CISA list (US)
- yes, since 15 February 2022
- Deadline given to US federal agencies
- 15 August 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 100.0% (FIRST's estimate for the next 30 days)
Does it concern you?
PHPUnit is a tool developers use to test applications written in PHP, and it often ends up on live website servers by mistake. It may concern you if you have a website or online shop built in PHP; Oracle Communications Diameter Signaling Router is also listed as affected.
Affected are PHPUnit versions before 4.8.28 and 5.x versions before 5.6.3, as well as Oracle Communications Diameter Signaling Router from 8.0.0 up to and including 8.5.0. The easiest way is to ask whoever manages your website or server whether PHPUnit is installed and which version it is.
Affected products and versions
- PHPUnit
- communications diameter signaling router: from 8.0.0 up to and including 8.5.0
- phpunit: up to and including 4.8.27; from 5.0.0 before 5.6.3
What to do
Have PHPUnit updated to version 5.6.3 or later and have testing components removed from the public server. For the Oracle product, follow the vendor's update instructions.
Versions that contain the fix: 5.6.3.
The official description
The text below is the description from the public database.
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.
Sources
- Debian Security Tracker
- CVE Program
- Vendor advisory: nvd.nist.gov
- GitHub Advisory Database
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.