CVE-2017-9841
PHPUnit Command Injection Vulnerability - [Actively Exploited]
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.
INFO
Published Date :
June 27, 2017, 5:29 p.m.
Last Modified :
April 18, 2022, 5:57 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
CISA KEV (Known Exploited Vulnerabilities)
For the benefit of the cybersecurity community and network defenders—and to help every organization better manage vulnerabilities and keep pace with threat activity—CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild.
PHPUnit 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.
Apply updates per vendor instructions.
Public PoC/Exploit Available at Github
CVE-2017-9841 has a 46 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2017-9841
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2017-9841
.
URL | Resource |
---|---|
http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/ | Third Party Advisory |
http://www.securityfocus.com/bid/101798 | Broken Link |
http://www.securitytracker.com/id/1039812 | Broken Link |
https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 | Patch Third Party Advisory |
https://github.com/sebastianbergmann/phpunit/pull/1956 | Patch Third Party Advisory |
https://security.gentoo.org/glsa/201711-15 | Third Party Advisory |
https://www.oracle.com/security-alerts/cpuoct2021.html | Patch Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
TypeScript HTML JavaScript Hack PHP Dockerfile Shell
[Smart Banking] Cyber Defense DFCD 2024
TypeScript HTML JavaScript Hack PHP
None
None
all laravel cve
Python
Crowdsec Blacklist mirror - allows you to create a local HTTP service with an up-to-date list of harmful IP addresses
blocklist crowdsec docker docker-compose firewall security
None
Python
None
CSS HTML JavaScript
None
Python
PHPUnit RCE
Python
This page is dedicated to assisting the community with interpreting web logs
poc集合(持续更新ing)
在公网收集的gobypoc+部分自己加的poc
A Common Vulnerability PoC Knowledge Base一个普遍漏洞POC知识库
vulnerability
None
Shell Python Dockerfile
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2017-9841
vulnerability anywhere in the article.
- Cybersecurity News
Mozi Botnet Re-Emerges as Androxgh0st in New Wave of IoT Exploits
The notorious Mozi botnet, once believed to be largely defunct following law enforcement actions, has resurfaced in a powerful new avatar: Androxgh0st. CloudSEK’s recent report reveals that Androxgh0s ... Read more
- Hackread - Latest Cybersecurity, Tech, Crypto & Hacking News
Androxgh0st Botnet Integrates Mozi, Expands Attacks on IoT Vulnerabilities
CloudSEK reports that the Androxgh0st botnet has integrated with the Mozi botnet and exploits a wide range of vulnerabilities in web applications and IoT devices. Learn about the specific vulnerabilit ... Read more
The following table lists the changes that have been made to the
CVE-2017-9841
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Apr. 18, 2022
Action Type Old Value New Value Changed Reference Type http://www.securityfocus.com/bid/101798 Third Party Advisory, VDB Entry http://www.securityfocus.com/bid/101798 Broken Link Changed Reference Type http://www.securitytracker.com/id/1039812 Third Party Advisory, VDB Entry http://www.securitytracker.com/id/1039812 Broken Link Changed Reference Type https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 Third Party Advisory https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 Patch, Third Party Advisory Changed Reference Type https://github.com/sebastianbergmann/phpunit/pull/1956 Third Party Advisory https://github.com/sebastianbergmann/phpunit/pull/1956 Patch, Third Party Advisory Changed Reference Type https://www.oracle.com/security-alerts/cpuoct2021.html No Types Assigned https://www.oracle.com/security-alerts/cpuoct2021.html Patch, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:* versions from (including) 8.0.0 up to (including) 8.5.0 -
CVE Modified by [email protected]
Oct. 20, 2021
Action Type Old Value New Value Added Reference https://www.oracle.com/security-alerts/cpuoct2021.html [No Types Assigned] -
Modified Analysis by [email protected]
Jan. 14, 2020
Action Type Old Value New Value Removed CVSS V3 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/ No Types Assigned http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/ Third Party Advisory Changed Reference Type http://www.securityfocus.com/bid/101798 No Types Assigned http://www.securityfocus.com/bid/101798 Third Party Advisory, VDB Entry Changed Reference Type http://www.securitytracker.com/id/1039812 No Types Assigned http://www.securitytracker.com/id/1039812 Third Party Advisory, VDB Entry Changed Reference Type https://security.gentoo.org/glsa/201711-15 No Types Assigned https://security.gentoo.org/glsa/201711-15 Third Party Advisory Changed CPE Configuration OR *cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:* versions up to (including) 4.8.27 *cpe:2.3:a:phpunit_project:phpunit:5.0.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.8:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.9:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.10:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.8:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.9:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.10:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.11:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.12:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.8:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.6.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.6.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.6.2:*:*:*:*:*:*:* OR *cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:* versions up to (including) 4.8.27 *cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:* versions from (including) 5.0.0 up to (excluding) 5.6.3 -
CVE Modified by [email protected]
Jan. 10, 2020
Action Type Old Value New Value Removed Reference http://phpunit.vulnbusters.com/ [Exploit, Mitigation, Patch, Vendor Advisory] Added Reference http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/ [No Types Assigned] -
CVE Modified by [email protected]
Nov. 21, 2017
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/201711-15 [No Types Assigned] -
CVE Modified by [email protected]
Nov. 17, 2017
Action Type Old Value New Value Added Reference http://www.securitytracker.com/id/1039812 [No Types Assigned] -
CVE Modified by [email protected]
Nov. 15, 2017
Action Type Old Value New Value Added Reference http://www.securityfocus.com/bid/101798 [No Types Assigned] -
Initial Analysis by [email protected]
Jul. 06, 2017
Action Type Old Value New Value Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/sebastianbergmann/phpunit/pull/1956 No Types Assigned https://github.com/sebastianbergmann/phpunit/pull/1956 Third Party Advisory Changed Reference Type http://phpunit.vulnbusters.com/ No Types Assigned http://phpunit.vulnbusters.com/ Exploit, Mitigation, Patch, Vendor Advisory Changed Reference Type https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 No Types Assigned https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 Third Party Advisory Added CWE CWE-94 Added CPE Configuration OR *cpe:2.3:a:phpunit_project:phpunit:4.8.27:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:phpunit_project:phpunit:5.0.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.8:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.9:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.0.10:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.1.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.8:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.9:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.10:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.11:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.2.12:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.3.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.4.8:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.2:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.3:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.4:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.5:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.6:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.5.7:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.6.0:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.6.1:*:*:*:*:*:*:* *cpe:2.3:a:phpunit_project:phpunit:5.6.2:*:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2017-9841
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2017-9841
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
97.48 }} -0.01%
score
0.99971
percentile