S4E just found a high top 10 tcp port service scan
critical·Product Based Web Vulnerabilities·Updated Feb 10, 2026

CVE-2017-9841 Scanner

Targets the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php script via HTTP POST to execute arbitrary PHP code on the server.

Est. Time~1 minutes
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
0
Times Used
by S4E users
0
Assets Scanned
domains & IPs
0
Vulnerabilities Found
confirmed findings
References
🔴
CISA Known Exploited Vulnerability
This CVE is actively exploited in the wild. CISA mandates federal agencies to patch immediately.
CVECVE-2017-9841
9.8
CVSScritical
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
n/aby n/a
n/a
Updated Aug 5, 2026View on NVD →
Detail

PHPUnit is a widely-used unit testing framework for PHP, employed by developers to automate testing of PHP code in development and CI/CD pipelines. It helps ensure code quality, detect regressions, and maintain application stability across various industries, from startups to large enterprises. As an open-source tool, PHPUnit is integral to modern PHP development workflows, often installed via Composer and included in project dependencies.

CVE-2017-9841 is a critical Remote Code Execution (RCE) vulnerability in PHPUnit versions prior to 5.7.21 and 6.1.6. It arises because the eval-stdin.php script, intended for internal testing, is accessible without authentication. The script accepts PHP code via HTTP POST data and executes it directly, allowing attackers to run arbitrary commands on the server.

The vulnerability specifically targets the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php endpoint. An attacker sends a POST request with PHP code in the body, which the script evaluates using the eval() function. This endpoint is often exposed when the /vendor directory is publicly accessible, a common misconfiguration in PHP projects.

If exploited, an attacker gains full remote control over the web server, enabling data theft, malware installation, site defacement, or lateral movement within the network. Given the CVSS score of 9.8, this vulnerability poses a severe risk to any PHP application using an affected PHPUnit version, potentially leading to complete compromise of the hosting environment.

Solution Advice
  • Upgrade PHPUnit to version 5.7.21, 6.1.6, or later to patch the eval-stdin.php vulnerability.
  • Restrict public access to the /vendor directory by configuring web server rules (e.g., .htaccess or Nginx deny directives).
  • Remove the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php file if PHPUnit is not needed in production.
  • Implement a Web Application Firewall (WAF) to block POST requests to known vulnerable endpoints.
  • Regularly audit and update all Composer dependencies to include security patches.
  • Disable PHPUnit in production environments by removing it from the autoloader or using environment-specific Composer installs.
  • Monitor server logs for suspicious POST requests to /vendor paths and investigate anomalies.
  • Use security scanners like S4E to continuously detect exposed PHPUnit endpoints and other vulnerabilities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.