9.8

CVE-2017-9841: PHPUnit Command Injection Vulnerability

KEV
Analyzed
AliasesUBUNTU-CVE-2017-9841USN-7171-1DEBIAN-CVE-2017-9841
Published 27-06-2017Last modified 21-10-2025

Vulnerability summary

CVE-2017-9841 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in PHPUnit. It is known to be exploited: CISA lists it, first on 15-02-2022. EPSS estimates a 100.00% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Act nowlisted as exploited

Listed as exploited by CISA (15-02-2022)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
100.00%
0%100%
Critical · 0.00 pp in 30 days
KEVExploited in the wildCritical · listed in 1 catalog
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1exploit-database

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 27-06-2017
    PublishedVulnerability first disclosed.
  2. 15-02-2022
    Added to CISA KEVExploitedPHPUnit Command Injection Vulnerability
  3. 15-08-2022
    CISA remediation dueDeadline passedApply updates per vendor instructions.
  4. 21-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

100.00%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

No change 0.00 pp

From 100.00% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
15-02-2022
Federal due date
15-08-2022
ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

CISA required action

Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2017-9841

Public exploits

1 found
  • exploit-databasephpUnverified

    PHP Unit 4.8.28 - Unauthenticated Remote Code Execution (RCE)

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • phpunit< 5.4.6-2
Oracle1 product
Phpunit_project1 product
  • phpunit≤ 4.8.27 | ≥ 5.0.0, < 5.6.3
Ubuntu1 product
  • phpunit< 5.1.3-1+ubuntu3+esm1

4 vendors · 4 products

References

14 links
Show all 14 references