CVE-2017-9841Phpunit Code Injection
Code Injection in PHPUnit
Published Jun 27, 2017 · Updated Oct 24, 2026 · Also known as DEBIAN-CVE-2017-9841, GHSA-r7c9-c69m-rph8, UBUNTU-CVE-2017-9841
Key Facts
Patch immediately- CVE-2017-9841 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Communications Diameter Signaling Router (Oracle), Phpunit (Phpunit Project), mediawiki (arch) and 1 more product.
- It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Nov 22, 2020. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 100% probability of exploitation in the next 30 days.
- Fixed versions are available, including mediawiki 1.27.4-1.mga6, mediawiki 1.28.3-1, Communications Diameter Signaling Router 8.5.0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
100%
Higher than 99.9% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
76/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Feb 15, 2022
1694 days after publication
Federal due date
Aug 15, 2022
Overdue
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
11
Reports of active use
Required action (CISA): Apply updates per vendor instructions.
Advisories And Exploit References
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2017-9841.yaml
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2017-9841
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2017-9841
- advisoryhttps://ubuntu.com/security/CVE-2017-9841
- advisoryhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2017-9841
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CISA KEV | Feb 15, 2022 | Aug 15, 2022 | Not reported |
| Industry KEV feed | Nov 22, 2020 | Aug 15, 2022 | Not reported |
| CIRCL KEV | Feb 15, 2022 | Aug 15, 2022 | Not reported |
| ENISA EUVD | Feb 15, 2022 | n/a | Not reported |
Required action: Apply updates per vendor instructions.
Affected Products
17 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| Communications Diameter Signaling RouterOracle | See advisory | 8.5.0 |
| PhpunitPhpunit Project | See advisory | 4.8.27 |
| mediawikiarch | See advisory | 1.28.3-1 |
| phpunit/phpunitcomposer | >= 5.0.10 | 5.6.3 |
Patched Releases
mediawiki
1.27.4-1.mga6, 1.28.3-1
Communications Diameter Signaling Router
8.5.0
Phpunit
5.1.3-1+ubuntu3+esm1, 5.4.6-2, 4.8.27
phpunit/phpunit
4.8.28, 5.6.3
Timeline
Publicly disclosed
Jun 27, 2017
Added to Industry KEV feed
Nov 22, 2020
Added to CISA KEV
Feb 15, 2022
Added to CIRCL KEV
Feb 15, 2022
Added to ENISA EUVD
Feb 15, 2022
Last updated
Oct 24, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code
References
- advisorygithub.com · CVE-2017-9841
- advisorynvd.nist.gov · CVE-2017-9841
- advisorysecurity-tracker.debian.org · CVE-2017-9841
- advisoryubuntu.com · CVE-2017-9841
- advisorycisa.gov · known-exploited-vulnerabilities-catalog
FAQ
Common Questions.
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/ev…
Affected: Communications Diameter Signaling Router (Oracle); Phpunit (Phpunit Project); mediawiki (arch), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Nov 22, 2020.
Yes. It was added on Feb 15, 2022 with a federal remediation due date of Aug 15, 2022.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including mediawiki 1.27.4-1.mga6, mediawiki 1.28.3-1, Communications Diameter Signaling Router 8.5.0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2017-9841 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo