National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2017-9841 Detail

Current 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.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 9.8 CRITICAL
Vector:  CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://phpunit.vulnbusters.com/ Exploit Mitigation Patch Vendor Advisory
http://www.securityfocus.com/bid/101798
http://www.securitytracker.com/id/1039812
https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 Third Party Advisory
https://github.com/sebastianbergmann/phpunit/pull/1956 Third Party Advisory
https://security.gentoo.org/glsa/201711-15

Weakness Enumeration

CWE-ID CWE Name Source
CWE-94 Improper Control of Generation of Code ('Code Injection') NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
4.8.27
 cpe:2.3:a:phpunit_project:phpunit:5.0.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.0.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.1.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.1.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.1.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.1.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.1.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.1.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.11:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.2.12:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.3.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.3.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.3.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.3.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.3.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.3.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.4.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.5.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.6.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.6.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:phpunit_project:phpunit:5.6.2:*:*:*:*:*:*:*
     Show Matching CPE(s)


Change History

4 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2017-9841
NVD Published Date:
06/27/2017
NVD Last Modified:
11/20/2017