CVE-2017-9841
CriticalExploitedPublic exploitCode Injection in PHPUnit
Published Mar 26, 2022 · Updated Aug 4, 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. Public exploit code is available.
- EPSS estimates a 100% probability of exploitation in the next 30 days.
- Fixed versions are available, including mediawiki 1.28.3-1, Communications Diameter Signaling Router 8.5.0, Phpunit 5.1.3-1+ubuntu3+esm1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
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
Exploited in the wild
Yes
4 catalog listings
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2017-9841 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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
16 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.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
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
Publicly disclosed
Mar 26, 2022
Last updated
Aug 4, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- advisoryhttp://phpunit.vulnbusters.com/
- advisoryGHSA advisory
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2017-9841.yaml
- advisoryhttps://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
- advisoryhttps://github.com/sebastianbergmann/phpunit/commit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412
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.
Public exploit code is available.
Fixed versions are available, including mediawiki 1.28.3-1, Communications Diameter Signaling Router 8.5.0, Phpunit 5.1.3-1+ubuntu3+esm1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2017-9841 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo