VDB

CVE-2017-9841

CVE-2017-9841 PUBLISHED CVSS 9.800000190734863 CRITICAL

Code Injection in PHPUnit

Reported by mitre · Published June 27, 2017

phpunit/phpunit is fixed in 5.6.3 and 4.8.28 (Packagist)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
phpunit/phpunitPackagist5.6.3, 4.8.28
mediawikiArch Linux1.28.3-1
phpunitphpunit_project5.6.3, 4.8.27
communications_diameter_signaling_routeroracle8.5.0

Risk scores

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

Affected products

VendorProductVersions
n/an/an/a
archmediawiki0
phpunitphpunit4.8.19, 5.0.10
n/an/a*

Timeline

  • Jun 27, 2017 CVE Published
  • May 18, 2020 VulnCheck XDB Entry (17 in total, the first dated here)
  • Nov 22, 2020 VulnCheck KEV Exploitation (1119 in total, the first dated here)
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Oct 27, 2021 PoC Published (544 in total, the first dated here)
  • Feb 15, 2022 CISA KEV Added
  • Mar 6, 2026 Distribution Patch
  • Mar 6, 2026 Security Advisory (3 in total, the first dated here)
  • Sep 27, 2026 Coalition ESS Score
  • Nov 8, 2026 CrowdSec Sighting (39 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2017-9841
vulnetix vdb fixes CVE-2017-9841

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-9841/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›