9.8

CVE-2017-9841: PHPUnit Command Injection Vulnerability

CVSS: 9.8v3.1CriticalKEVAnalyzed
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) Code Injection 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.

Overall risk
85/100
0100
Critical · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
100.00%
0%100%
Critical · 0.00 pp in 30 days
KEVListedCISA
RansomwareNone recordedNo known 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 KEVPHPUnit Command Injection Vulnerability
  3. 15-08-2022
    CISA remediation dueApply 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

0.00 pp

From 100.00% on 18-09-2026

18-09-202618-10-2026
EPSS score
100.00%

Known exploited

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

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 - Remote Code Execution (RCE) (Unauthenticated)

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

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