Vulnerabilities

Vulnerability · CVE-2017-9841

PHPUnit Command Injection Vulnerability

Published Jun 27, 2017 · catalog updated Jun 16, 2026 · PHPUnit PHPUnit

Patch now

CVE-2017-9841 is in the CISA known-exploited catalog, due Aug 15, 2022. Confirm PHPUnit PHPUnit against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Severity
Critical9.8
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
100.00%
Remediation
Remediation guidance
Affected products
cpe oracle/communications diameter signaling router · cpe phpunit project/phpunit · vendor PHPUnit PHPUnit

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. VulnCheck canary evidence. Initial-access exploit intelligence.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe oracle/communications diameter signaling routerversion unspecified
  • cpe phpunit project/phpunitversion unspecified
  • vendor PHPUnit PHPUnitversion unspecified

How to fix CVE-2017-9841

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2017-9841 is in the CISA known-exploited catalog, due Aug 15, 2022. Confirm PHPUnit PHPUnit against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Affected version ranges are not on this record. Apply updates per vendor instructions.

What should an analyst verify?

CWE-94: Code Injection. EPSS 100.00%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Jun 27, 2017 · Catalog

    Detected

    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.

  2. Feb 15, 2022 · CISA KEV

    Known exploited

    Apply updates per vendor instructions.

  3. Aug 15, 2022 · CISA KEV

    Remediation due

    Apply updates per vendor instructions.

  4. Jun 16, 2026 · Catalog

    Updated

    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

  • CISA KEVConfirmed exploitationCVE-2017-9841

    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.gov
  • CVE.orgVulnerability recordCVE-2017-9841

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2017-9841

    30-day exploitation probability 100.0%

    first.org
  • Exploit DatabasePublic exploit reference50702

    Public archive entry. The exploit body is not stored here.

    exploit-db.com
  • NIST NVDVulnerability recordCVE-2017-9841

    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

    nvd.nist.gov
  • VulnCheck KEVConfirmed exploitationCVE-2017-9841

    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.

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.