CVE Tools

CVE-2017-9841

CVE-2017-9841 is a code injection in Phpunit Project Phpunit (CVSS 9.8, Critical).

Exploited in the wild. In CISA KEV since 2022‑02‑15. Fixed in 4.8.28.

Check it yourself

Nuclei · 6 templatesOpenVAS · 3 checks

e.g. PHPUnit - Remote Code Execution · OID 1.3.6.1.4.1.25623.1.0.108439

Run the check

Published Updated Sources: CVE.org, NVD, GitHub, BDU

What to do

Find your product and version, then upgrade to the build on the right.

  • Packagist phpunit/phpunitAffected: ≥ 4.8.19, < 4.8.28Upgrade to: 4.8.28Stated by: GitHub advisory
  • Phpunit Project PhpunitAffected: ≤ 4.8.27Upgrade to: after 4.8.27Stated by: NVD
  • Oracle Communications Diameter Signaling RouterAffected: ≥ 8.0.0, ≤ 8.5.0Upgrade to: after 8.5.0Stated by: NVD
  • Open-source community PHPUnitAffected: before 4.8.27 inclusiveUpgrade to: not statedStated by: BDU

Versions as the sources state them. Full version matrix after sign-in

Coverage timeline

1 publisher
  1. Added to CISA KEV catalog

    ·CISA KEV

Sourced from public security reporting — each date is when it was published, not when it happened.

What it is

From the CVE record

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.

In plain language

No plain-language summary for this CVE yet.

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS99th
Public exploit
CISA KEV
CISA KEV

Listed as exploited in the wild since 2022-02-15.

US federal agencies must remediate by 2022-08-15.

Apply updates per vendor instructions.
Public exploits

1 source with a proof of concept or module.

Exploit links, PoCs and Metasploit modules after sign-in
EPSS

100% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

A public exploit existed 46 days before the patch.

  1. OpenVAS check added
  2. Patch availablerecord updated
  3. Public exploit / PoCsource: github-pocnuclei check added
  4. Added to CISA KEV
  5. Publishedweakness classified, att&ck mapped

Affected products

Technical detail

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Scored 9.8 by NVD.

How it is reached

  • Attack Vector NetworkExploitable remotely over the network without any special conditions
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction NoneNo user interaction needed — fully automated exploitation

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2017-9841

Is CVE-2017-9841 being exploited?
Yes. CVE-2017-9841 is in CISA's Known Exploited Vulnerabilities catalog since 2022-02-15, which means attackers are using it in the wild.
Which versions are affected by CVE-2017-9841?
Phpunit: ≤ 4.8.27. Phpunit/phpunit: ≥ 4.8.19, < 4.8.28. Communications Diameter Signaling Router: ≥ 8.0.0, ≤ 8.5.0. 1 more product is listed in the record.
How do I fix or mitigate CVE-2017-9841?
Upgrade to 4.8.28 or later. The advisory is on oracle.com.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next exploited one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Phpunit, not every advisory. This one: actively exploited.