Skip to content
On CISA KEVCritical

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.

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

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

  1. Publicly disclosed

    Jun 27, 2017

  2. Added to Industry KEV feed

    Nov 22, 2020

  3. Added to CISA KEV

    Feb 15, 2022

  4. Added to CIRCL KEV

    Feb 15, 2022

  5. Added to ENISA EUVD

    Feb 15, 2022

  6. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code

FAQ

Common Questions.

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

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.