Exploit database

Vulnerability

CVE-2017-9841

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

8 sources
randomrobbiebf/phpunit-brute
GH-0986838803f523e1f923d831707e70cbGitHubUnofficial GitHub source

Tool to try multiple paths for PHPunit RCE CVE-2017-9841

2020-05-181 file · 28 stars
chocapikk/cve-2017-9841
GH-ee3d5f30662858f6a9360861a90049f4GitHubUnofficial GitHub source

PHPUnit RCE

2023-08-271 file · 8 stars
k3ystr0k3r/cve-2017-9841-exploit
GH-99cde0b10a3b8423f3d10a7250ec4f51GitHubUnofficial GitHub source

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

2025-06-101 file · 6 stars
ludy-dev/phpunit_eval-stdin_rce
GH-ba6ee919f55f89b0d48dbfcb38c88193GitHubUnofficial GitHub source

(CVE-2017-9841) PHPUnit_eval-stdin_php Remote Code Execution

2020-09-141 file · 6 stars
madexploits/phpunit-exploit
GH-8844d9dddbab0a2b4dc7620fecca0498GitHubUnofficial GitHub source

PHPunit Checker CVE-2017-9841 By MrMad

2022-12-071 file · 6 stars
drcrypterdotru/phpunit-goscan
GH-04e1545d7d98b3aa7e03e388cb6b8783GitHubUnofficial GitHub source

PHPUnit CVE-2017-9841 Scanner in Go clean and fire.

2025-08-302 files · 5 stars