CVE-2017-9841

9.8 CRITICAL CISA KEV - Actively Exploited
Published: June 27, 2017 Modified: October 22, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://www.securityfocus.com/bid/101798
Source: cve@mitre.org
Broken Link
http://www.securitytracker.com/id/1039812
Source: cve@mitre.org
Broken Link
https://github.com/sebastianbergmann/phpunit/pull/1956
Source: cve@mitre.org
Patch Third Party Advisory
https://security.gentoo.org/glsa/201711-15
Source: cve@mitre.org
Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html
Source: cve@mitre.org
Patch Third Party Advisory
http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://www.securityfocus.com/bid/101798
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
http://www.securitytracker.com/id/1039812
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Third Party Advisory
https://github.com/sebastianbergmann/phpunit/pull/1956
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Third Party Advisory
https://security.gentoo.org/glsa/201711-15
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Third Party Advisory

15 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
94.2%
100th percentile
Exploitation Status
Actively Exploited
Remediation due: 2022-08-15

Weaknesses (CWE)

Affected Vendors

phpunit_project oracle