Skip to content
Noroxi
CVE-2017-9841· NVD / CVE Program· CNA mitre

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 da

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.

CriticalCVSS 9.8 · v3.1KEVWeaponized Fix available
Published
Jun 27, 2017
Updated
Jun 16, 2026
EPSS
100.0% · 100th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

99

Now

Patch today or shut off access.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
30 / 30 · Listed
EPSS
30 / 30 · 100.0%

CISA SSVC decision

Exploitation
active
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Actively exploited in the wild

CISA added this to its Known Exploited Vulnerabilities catalog on Feb 15, 2022. That signals real attacks, not theory.

Remediation deadline for government agencies: Aug 15, 2022.

Affected systems

VendorProduct
phpunit projectphpunit
oraclecommunications diameter signaling router

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • oracle communications diameter signaling router8.0.0 and later · up to 8.5.0 inclusive
  • phpunit project phpunitup to 4.8.27 inclusive
  • phpunit project phpunit5.0.0 and later · before 5.6.3

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12phpunitbefore 5.4.6-25.4.6-2
Packagistphpunit/phpunitfrom 4.8.19 · before 4.8.284.8.28
Packagistphpunit/phpunitfrom 5.0.10 · before 5.6.35.6.3

Other highest-scoring records for the same primary product.

  • CVE-2026-41570PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
    31Monitor
  • CVE-2026-24765PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling
    31Monitor
  • CVE-2013-4744Cross-site scripting (XSS) vulnerability in the PHPUnit extension before 3.5.15 for TYPO3 allows remote attackers to inject arbitrary web sc
    17Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:phpunit5.4.6-2 · Debian:12Package registry (OSV)
Packagist:phpunit/phpunit4.8.28Package registry (OSV)
Packagist:phpunit/phpunit5.6.3Package registry (OSV)

Exploit status

Weaponized

A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.

Evidence

  • Exploit-DB entry ×1
  • Nuclei detection template ×1
  • Proof-of-concept repository on GitHub ×17

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrywebapps2022-02-02
Nuclei detection templateNuclei template CVE-2017-9841 —
Proof-of-concept repository on GitHubstars:02020-01-06
Proof-of-concept repository on GitHubstars:302020-05-18
Proof-of-concept repository on GitHubstars:02020-06-24
Proof-of-concept repository on GitHubstars:62020-09-14
Proof-of-concept repository on GitHubstars:232021-07-04
Proof-of-concept repository on GitHubstars:32022-03-20
Proof-of-concept repository on GitHubstars:32022-04-09
Proof-of-concept repository on GitHubstars:02022-04-20
Proof-of-concept repository on GitHubstars:02022-10-20
Proof-of-concept repository on GitHubstars:12022-11-21

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+922 d
  3. CISA KEV+1693 d
  4. TodaySep 30, 2026+3382 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

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

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records