Skip to content
Vulnerability Intelligence

CVE-2017-9841

CriticalExploitedPublic exploit

Code 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

CatalogAddedRemediation dueRansomware use
CISA KEVFeb 15, 2022Aug 15, 2022Not reported
Industry KEV feedNov 22, 2020Aug 15, 2022Not reported
CIRCL KEVFeb 15, 2022Aug 15, 2022Not reported
ENISA EUVDFeb 15, 2022n/aNot reported

Required action: Apply updates per vendor instructions.

Affected Products

16 affected entries in total
ProductAffected versionsFixed in
Communications Diameter Signaling RouterOracleSee advisory8.5.0
PhpunitPhpunit ProjectSee advisory4.8.27
mediawikiarchSee advisory1.28.3-1
phpunit/phpunitcomposer>= 5.0.105.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

  1. Added to Industry KEV feed

    Nov 22, 2020

  2. Added to CISA KEV

    Feb 15, 2022

  3. Added to CIRCL KEV

    Feb 15, 2022

  4. Added to ENISA EUVD

    Feb 15, 2022

  5. Publicly disclosed

    Mar 26, 2022

  6. Last updated

    Aug 4, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

References

15 more references in the full CVE brief

FAQ

Common Questions.

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