Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2017-9841-EXPLOIT — A PoC exploit for CVE-2017-9841 - PHPUnit Remote Code Execution(RCE) | Kitploit
Tools/GitHubGitHub/k3ystr0k3r/cve-2017-9841-exploit
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubk3ystr0k3r/cve-2017-9841-exploit

CVE-2017-9841-EXPLOIT

A PoC exploit for CVE-2017-9841 - PHPUnit Remote Code Execution(RCE)

View Repository
61 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2017-9841 - PHPUnit Remote Code Execution(RCE)

This vulnerability affects PHPUnit versions before 4.8.28 and all 5.x versions before 5.6.3. It allows attackers to execute arbitrary PHP code on servers where PHPUnit is exposed. The issue exists in the eval-stdin.php file located in PHPUnit's Util/PHP directory. When this file is accessible (typically when the /vendor folder is exposed), attackers can send malicious HTTP POST requests containing PHP code starting with <?php to execute arbitrary commands on the server.

Impact

  • Remote code execution on vulnerable servers
  • Full server compromise if PHPUnit is exposed
  • Particularly dangerous when /vendor directories are publicly accessible

Affected Versions

  • PHPUnit 4.x before 4.8.28
  • PHPUnit 5.x before 5.6.3

Solution

  • Upgrade PHPUnit to version 4.8.28 or 5.6.3 (or later)
  • Ensure /vendor directories are not publicly accessible
  • Remove or restrict access to eval-stdin.php if upgrade isn't immediately possible

References

  • CVE-2017-9841
Download Tool