Skip to content

Patch first › PHPUnit

Exploited CVE from 2017, added in 2022

CVE-2017-9841

PHPUnit · Development and CI/CD

PHPUnit Command Injection Vulnerability

9.8 Critical CVSS scoreCVSS scoreA severity score from 0 to 10, computed with an international method (CVSS). 9 or more: critical; 7 to 8.9: high; 4 to 6.9: medium. It measures the technical severity of the flaw, not the risk in your environment.

Score from the NVD. Collected Oct 13, 2026.

Exploited sinceKEV catalogThe official list, kept by the US cybersecurity agency (CISA), of vulnerabilities that attackers are observed exploiting. A vulnerability only enters it with evidence.
February 15, 2022
RansomwareRansomwareAccording to CISA, ransomware groups (which encrypt data for ransom) use this vulnerability.
None known
CISA deadlineCISA deadlineThe remediation deadline set for US federal agencies. It does not apply elsewhere, but it is a good sense of urgency.
181 days
CERT-FR alertCERT-FR alertCERT-FR, the incident response center of France’s ANSSI, issues an alert when a vulnerability is exploited at scale or targets France. “Active”: the alert is not closed.
None

At a glance

Affected product: PHPUnit (category Development and CI/CD, indicative classification). Name in CISA’s catalog: PHPUnit PHPUnit.

What should I do?

Apply the security update from PHPUnit.

Deadline set by CISA for US federal agencies: 181 days (due August 15, 2022). It only binds those agencies, but it is a useful measure of urgency.

Original text of the required action (CISA)

Apply updates per vendor instructions.

Timeline

  1. Vulnerability published Publication date (NVD)
  2. Exploitation confirmed Added to CISA’s KEV catalog
  3. CISA deadline Remediation deadline set for US federal agencies

The facts, with their sources

Each value with its source and collection date. Open for details.
Exploitation confirmed
Yes, on February 15, 2022 Date added to the catalog of exploited vulnerabilities. Exploitation itself may have started earlier. Source: KEV catalog, collected October 13, 2026 at 06:31 UTC
Ransomware
No known use to date That does not guarantee it is not being used: the information is not public. Source: KEV catalog, collected October 13, 2026 at 06:31 UTC
Hunt for compromise
Not requested by CISA Source: KEV catalog, collected October 13, 2026 at 06:31 UTC
CISA required action
Apply the security update from PHPUnit. Rewritten by this site from CISA’s original text. Source: KEV catalog, collected October 13, 2026 at 06:31 UTC
CISA deadline
August 15, 2022, 181 days Set for US federal agencies: a measure of urgency, not an obligation elsewhere. Source: KEV catalog, collected October 13, 2026 at 06:31 UTC
Vulnerability published
June 27, 2017 Source: National Vulnerability Database (NVD), collected October 13, 2026 at 06:36 UTC
Product according to CISA
PHPUnit PHPUnit Filed by this site under “Development and CI/CD” (indicative classification). Source: KEV catalog, collected October 13, 2026 at 06:31 UTC
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Technical detail of the score: attack vector, complexity, impact. Source: National Vulnerability Database (NVD), collected October 13, 2026 at 06:36 UTC

Description

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.

Official description from the NVD, collected Oct 13, 2026. CVE® description © The MITRE Corporation.

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.

Summary from CISA (KEV catalog).

CERT-FR advisories

No advisory among the latest CERT-FR publications this site follows. That does not mean there are none.

Information reused under the Open Licence 2.0 (Etalab); the date of last update is shown for each advisory. This site is neither affiliated with nor endorsed by ANSSI.

Sources for this page

  • CISA KEV catalog: exploitation, date added, required action, deadline, ransomware.
  • NVD (NIST): CVSS severity, publication date, description, vendor references.
  • CERT-FR: advisories and alerts (in French).
  • Brand and category: indicative classification by this site (method).