Skip to content
Fencer Vulns
critical 9.8

CVE-2017-9841 kev in the critical feed json

Code Injection in PHPUnit

published 2017-06-27 9 y ago modified 2026-06-17 4 mo ago also GHSA-r7c9-c69m-rph8 , EUVD-2022-1528

cvss
9.8
version 3.1, CNA
cisa kev
Exploited
added 2022-02-15
epss
100.0%
EPSS 100.0% chance of exploitation in 30 days, percentile 99.9%
public exploits
1
Exploit-DB, plus a Nuclei check

Summary

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.

Patch / fix

cisa required action Apply updates per vendor instructions.

  • packagist phpunit/phpunit 4.8.28, 5.6.3
  • phpunit_project phpunit 5.6.3
  • phpunit Debian 14, Debian 13, Debian 12 5.4.6-2

debian advisories DEBIAN-CVE-2017-9841

  • phpunit Ubuntu Pro 16.04 LTS 5.1.3-1+ubuntu3+esm1

ubuntu advisories UBUNTU-CVE-2017-9841

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • mediawiki Arch Linux 1.28.3-1

arch linux advisories AVG-491

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-9841 updated cvss 8.8

php-phpunit-PHPUnit: allows attackers to execute arbitrary PHP code via HTTP POST data

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. Published
  2. First public exploit (EDB-50702)
  3. Added to CISA KEV
  4. CISA patch deadline
  5. CISA SSVC: exploitation active

Known exploited

Added
4 y ago
Patch by
2022-08-15 (4 y ago)
Ransomware
Not known
Required action
Apply updates per vendor instructions.
Vendor, product
PHPUnit, PHPUnit
CISA name
PHPUnit Command Injection Vulnerability

CISA SSVC

Exploitation
Active, exploited in the wild
Automatable
yes
Technical impact
total
Assessed
21 mo ago

Exploit prediction

100.00% chance of exploitation in the next 30 days, higher than 99.9% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-50702 PHP Unit 4.8.28 - Remote Code Execution (RCE) (Unauthenticated) webapps, 2022-02-02
  • Nuclei template PHPUnit - Remote Code Execution nuclei detection template

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H

Affected packages

ecosystem package affected fixed in
packagist phpunit/phpunit
>=4.8.19, <4.8.28
>=5.0.10, <5.6.3
4.8.28
5.6.3

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.