HOMEVULNERABILITIESCVE-2017-9841
HIGHCISA KEVIN THE WILD

CVE-2017-9841

Published: February 15, 2022

EPSS:94.21%probability of exploitation in 30 daysPercentile:99.9th

Official Description

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.

NVD Source

CISA KEV Advisory

PHPUnit Command Injection Vulnerability

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.

Added to KEV: 2022-02-15Federal patch deadline: 2022-08-15
Required Action (CISA)

Apply updates per vendor instructions.

Risk Analysis

PHPUnit is vulnerable to remote code execution, allowing attackers to run arbitrary PHP code via specific HTTP POST data when the /vendor folder is exposed. Its high EPSS score of 0.94210 and inclusion in the KEV confirm its urgency and high likelihood of exploitation.

This vulnerability is actively exploited in the wild. The flaw is remotely exploitable via HTTP POST data if the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI is externally accessible.

Recommended Action

Restrict external access to the /vendor folder, especially the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI. Apply any available patches or updates for PHPUnit to address this remote code execution vulnerability.

Generated by the CTIWATCH analysis pipeline from this CVE's metadata (CVSS, EPSS, KEV status, exploit intelligence). Verify against vendor advisories before acting.

Technical Analysis

CVE-2017-9841 requires local access, meaning attackers must already have a foothold on the target system.

Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.

CISA has added CVE-2017-9841 to the Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild. U.S. federal agencies are required to patch this within the mandated timeframe, and all organizations should treat remediation as urgent.

Affected Vendors & Products

Mentioned vendors (from description):
PHP
CPE data not yet available in NVD for this CVE.

Exploit & PoC Resources

ACTIVE EXPLOITATIONConfirmed exploitation in the wild
External links open in a new tab. Always verify in a controlled environment before use.

All References (1)

Quick Facts

CVE IDCVE-2017-9841
SeverityHIGH
CISA KEVYES — Active Exploitation
ExploitIN THE WILD
EPSS (30d)94.21%
PublishedFeb 15, 2022

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2017-9841 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
  • !CISA KEV: Federal agencies must patch per BOD 22-01 timeline
  • !Active exploitation confirmed — treat as P1
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.