CVE-2017-9841Known exploitationPublic exploitNetwork attack vectorHinoki check available

Unauthenticated code execution via request-body evaluation

Published Jun 27, 2017 · Updated Oct 21, 2025

Code injection in PHPUnit's eval-stdin.php allows remote attackers to execute arbitrary PHP code via crafted HTTP POST data. In PHPUnit 4.8.19 through 4.8.27 and 5.0.10 through 5.6.2, the script reads php://input and passes the request body directly to eval, executing content beginning with a PHP opening tag. Exploitation requires HTTP access to the script, usually through an exposed vendor directory, and executes code with the PHP process's permissions.

CVSS severity9.8
Critical
EPSS probability100.00%
Next 30 days · Nov 1, 2026
Known exploitationReported
Based on sourced intelligence
Hinoki checkAvailable
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Contact us

Summary

What happened

Code injection in PHPUnit's eval-stdin.php allows remote attackers to execute arbitrary PHP code via crafted HTTP POST data. In PHPUnit 4.8.19 through 4.8.27 and 5.0.10 through 5.6.2, the script reads php://input and passes the request body directly to eval, executing content beginning with a PHP opening tag. Exploitation requires HTTP access to the script, usually through an exposed vendor directory, and executes code with the PHP process's permissions.

The record

CVE
CVE-2017-9841
Published
Jun 27, 2017
Updated
Oct 21, 2025
Vendor
Sebastian Bergmann
Product
PHPUnit
Classifications
CWE-94, T1190
Attack vector
network
Privileges
unauthenticated

Timeline

How it unfolded

  1. Jun 27, 2017CVE publishedPublication date reported by the CVE source.
  2. Oct 21, 2025Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=n/a

What conditions does exploitation require?

Attack vectornetwork
Required privilegesunauthenticated

What is affected?

Sebastian Bergmann · PHPUnitversion=n/a

Published CVSS scores

9.8NIST NVDCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.8GitHub Advisory DatabaseCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
9.8Rapid7CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.8UbuntuCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.8CISA-ADPCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Activity data is delayed. The latest report is Sep 28, 2026.

Daily unique IPsShadowserver observations through Sep 28, 2026. Gaps indicate unavailable data.
Sep 22, 2026Sep 28, 2026
View daily counts
Reporting dayUnique IPs
Sep 22, 2026208
Sep 23, 2026178
Sep 24, 2026180
Sep 25, 2026169
Sep 26, 2026178
Sep 27, 2026198
Sep 28, 2026201
Latest reporting daySep 28, 2026
Latest daily unique IPs201
Prior 30-day average180.3
SourceShadowserver honeypots (KEV)
Vectornetwork
Privilegesunauthenticated
Known exploitationReported
Public exploitPublished

Weakness, pattern, technique

CWE-94Improper Control of Generation of Code ('Code Injection')
T1190Exploit Public-Facing Application

Public exploit references

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Reported exploitation

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Get started to see how Hinoki identifies affected software and validates exploitability in your environment.

Contact us