CVE-2017-9841

CRITICALNVD 9.89.8
EchelonGraph scoreMEDIUM confidence

Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-02-15), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.

Triggered by: CISA KEV (actively exploited)
Sources: cisa_kev, epss, nvd
Trending — 3 sources updated this weekExploited in the wild
9.8
EchelonGraph verdictPatch nowTreat as an emergency — this is being exploited.
  • Actively exploited in the wild (CISA-KEV)
CISA-KEV: ExploitedEPSS: 100%CVSS: 9.8Exploit: NoneExposed: 0

A fix is available — apply it.

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 "

CVSS v3
9.8
EG Score
9.8(medium)
EPSS
100.0%
KEV
⚠ Exploited

Published

June 27, 2017

Last Modified

April 21, 2026

Advisory Details (5)

Auto-updated Apr 30, 2026
No patch confirmed yet.
generic

CVE-2017-9841 RCE vulnerability in phpunit

http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
generic

PHPUnit: Remote code execution (GLSA 201711-15) — Gentoo security

https://security.gentoo.org/glsa/201711-15
generic

Fix insulated tests with phpdbg by nicolas-grekas · Pull Request #1956 · sebastianbergmann/phpunit · GitHub

https://github.com/sebastianbergmann/phpunit/pull/1956
generic

Correct fix for #1956 · sebastianbergmann/phpunit@284a69f · GitHub

https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5

Patch Availability(1)

Vendor / EcosystemFixed in / PatchReleasedSource
ubuntuphpunit (5.1.3-1+ubuntu3+esm1) @ xenial2026-07-07ubuntu

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Affected Packages

(1 across 1 ecosystem)
Packagist(1)
PackageVulnerable rangeFixed inDependents
phpunit/phpunit5.0.10 ... 5.6.2 (48 versions)5.6.3

All Vendor Advisories

(1)

Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.

Data Freshness Timeline

(refreshed 73× in last 7d / 337× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 471 total refreshes for this CVE.

  1. 2026-07-07 15:29 UTCEG score recompute
  2. 2026-07-07 15:29 UTCVendor advisory
  3. 2026-07-07 11:38 UTCEG score recompute
  4. 2026-07-07 11:38 UTCVendor advisory
  5. 2026-07-07 07:48 UTCEG score recompute
  6. 2026-07-07 03:58 UTCEG score recompute
  7. 2026-07-07 03:58 UTCVendor advisory
  8. 2026-07-07 00:07 UTCEG score recompute
  9. 2026-07-07 00:07 UTCVendor advisory
  10. 2026-07-06 20:18 UTCEG score recompute
  11. 2026-07-06 16:26 UTCEG score recompute
  12. 2026-07-06 12:36 UTCEG score recompute
  13. 2026-07-06 12:36 UTCVendor advisory
  14. 2026-07-06 08:46 UTCEG score recompute
  15. 2026-07-06 04:54 UTCEG score recompute
  16. 2026-07-06 04:54 UTCVendor advisory
  17. 2026-07-06 01:04 UTCEG score recompute
  18. 2026-07-06 01:04 UTCVendor advisory
  19. 2026-07-05 21:13 UTCEG score recompute
  20. 2026-07-05 21:13 UTCVendor advisory
  21. 2026-07-05 17:23 UTCEG score recompute
  22. 2026-07-05 17:23 UTCVendor advisory
  23. 2026-07-05 13:33 UTCEG score recompute
  24. 2026-07-05 13:33 UTCVendor advisory
  25. 2026-07-05 09:43 UTCEG score recompute
Show 75 more
  1. 2026-07-05 05:53 UTCEG score recompute
  2. 2026-07-05 02:02 UTCEG score recompute
  3. 2026-07-04 22:12 UTCEG score recompute
  4. 2026-07-04 22:12 UTCVendor advisory
  5. 2026-07-04 18:21 UTCEG score recompute
  6. 2026-07-04 14:30 UTCEG score recompute
  7. 2026-07-04 14:30 UTCVendor advisory
  8. 2026-07-04 10:40 UTCEG score recompute
  9. 2026-07-04 06:47 UTCEG score recompute
  10. 2026-07-04 06:47 UTCVendor advisory
  11. 2026-07-04 02:55 UTCEG score recompute
  12. 2026-07-03 23:06 UTCEG score recompute
  13. 2026-07-03 19:14 UTCEG score recompute
  14. 2026-07-03 19:14 UTCVendor advisory
  15. 2026-07-03 15:25 UTCEG score recompute
  16. 2026-07-03 15:25 UTCVendor advisory
  17. 2026-07-03 11:35 UTCEG score recompute
  18. 2026-07-03 07:44 UTCEG score recompute
  19. 2026-07-03 07:44 UTCVendor advisory
  20. 2026-07-03 03:53 UTCEG score recompute
  21. 2026-07-03 03:53 UTCVendor advisory
  22. 2026-07-03 00:03 UTCEG score recompute
  23. 2026-07-02 20:12 UTCEG score recompute
  24. 2026-07-02 20:12 UTCVendor advisory
  25. 2026-07-02 16:21 UTCEG score recompute
  26. 2026-07-02 16:21 UTCVendor advisory
  27. 2026-07-02 12:31 UTCEG score recompute
  28. 2026-07-02 12:31 UTCVendor advisory
  29. 2026-07-02 08:41 UTCEG score recompute
  30. 2026-07-02 04:52 UTCEG score recompute
  31. 2026-07-02 04:52 UTCVendor advisory
  32. 2026-07-02 01:02 UTCEG score recompute
  33. 2026-07-01 21:11 UTCEG score recompute
  34. 2026-07-01 21:11 UTCVendor advisory
  35. 2026-07-01 19:16 UTCCISA KEV update
  36. 2026-07-01 17:21 UTCEG score recompute
  37. 2026-07-01 17:21 UTCVendor advisory
  38. 2026-07-01 13:31 UTCEG score recompute
  39. 2026-07-01 13:31 UTCVendor advisory
  40. 2026-07-01 09:41 UTCEG score recompute
  41. 2026-07-01 09:41 UTCVendor advisory
  42. 2026-07-01 05:51 UTCEG score recompute
  43. 2026-07-01 02:00 UTCEG score recompute
  44. 2026-07-01 02:00 UTCVendor advisory
  45. 2026-06-30 22:10 UTCEG score recompute
  46. 2026-06-30 22:10 UTCVendor advisory
  47. 2026-06-30 18:20 UTCEG score recompute
  48. 2026-06-30 18:20 UTCVendor advisory
  49. 2026-06-30 14:30 UTCEG score recompute
  50. 2026-06-30 10:39 UTCEG score recompute
  51. 2026-06-30 06:49 UTCEG score recompute
  52. 2026-06-30 02:59 UTCEG score recompute
  53. 2026-06-30 02:59 UTCVendor advisory
  54. 2026-06-29 23:08 UTCEG score recompute
  55. 2026-06-29 23:08 UTCVendor advisory
  56. 2026-06-29 19:19 UTCEG score recompute
  57. 2026-06-29 19:19 UTCVendor advisory
  58. 2026-06-29 19:12 UTCCISA KEV update
  59. 2026-06-29 15:30 UTCEG score recompute
  60. 2026-06-29 15:30 UTCVendor advisory
  61. 2026-06-29 11:39 UTCEG score recompute
  62. 2026-06-29 11:39 UTCVendor advisory
  63. 2026-06-29 07:49 UTCEG score recompute
  64. 2026-06-29 07:49 UTCVendor advisory
  65. 2026-06-29 03:58 UTCEG score recompute
  66. 2026-06-29 03:58 UTCVendor advisory
  67. 2026-06-29 00:04 UTCEG score recompute
  68. 2026-06-29 00:04 UTCVendor advisory
  69. 2026-06-28 20:14 UTCEG score recompute
  70. 2026-06-28 20:14 UTCVendor advisory
  71. 2026-06-28 16:24 UTCEG score recompute
  72. 2026-06-28 16:24 UTCVendor advisory
  73. 2026-06-28 12:34 UTCEG score recompute
  74. 2026-06-28 12:34 UTCVendor advisory
  75. 2026-06-28 08:44 UTCEG score recompute

Publicly available exploits

(10 references)

Working exploit code is in the public domain (9 GitHub PoCs) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.

  • GitHub PoCdrcrypterdotru/PHPUnit-GoScan
    First seen Aug 30, 2025

    PHPUnit CVE-2017-9841 Scanner in Go clean and fire.

    Open source ↗
  • GitHub PoCK3ysTr0K3R/CVE-2017-9841-EXPLOIT
    First seen Jun 10, 2025

    A PoC exploit for CVE-2017-9841 - PHPUnit Remote Code Execution(RCE)

    Open source ↗
  • GitHub PoCChocapikk/CVE-2017-9841
    First seen Aug 27, 2023

    PHPUnit RCE

    Open source ↗
  • GitHub PoCMrG3P5/CVE-2017-9841
    First seen Mar 13, 2023

    A Tool for scanning CVE-2017-9841 with multithread

    Open source ↗
  • GitHub PoCMadExploits/PHPunit-Exploit
    First seen Dec 7, 2022

    PHPunit Checker CVE-2017-9841 By MrMad

    Open source ↗
  • GitHub PoCp1ckzi/CVE-2017-9841
    First seen Apr 9, 2022

    phpunit-shell | CVE_2017-9841

    Open source ↗
  • GitHub PoCakr3ch/CVE-2017-9841
    First seen Mar 20, 2022

    RCE exploit for PHP Unit 5.6.2

    Open source ↗
  • Exploit-DBEDB-50702
    First seen Feb 2, 2022

    PHP Unit 4.8.28 - Remote Code Execution (RCE) (Unauthenticated)

    Open source ↗
  • GitHub PoCincogbyte/laravel-phpunit-rce-masscaner
    First seen Jul 4, 2021

    Masscanner for Laravel phpunit RCE CVE-2017-9841

    Open source ↗
  • GitHub PoCludy-dev/PHPUnit_eval-stdin_RCE
    First seen Sep 14, 2020

    (CVE-2017-9841) PHPUnit_eval-stdin_php Remote Code Execution

    Open source ↗

Frequently asked(6)

What is CVE-2017-9841?
CVE-2017-9841 is a critical vulnerability published on June 27, 2017. 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…
When was CVE-2017-9841 disclosed?
CVE-2017-9841 was first published in the National Vulnerability Database on June 27, 2017, with the most recent update on April 21, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2017-9841 actively exploited?
Yes. CISA added CVE-2017-9841 to the Known Exploited Vulnerabilities catalog on February 15, 2022, affecting PHPUnit PHPUnit. KEV listing indicates confirmed exploitation in the wild; this CVE warrants immediate patching attention.
What is the CVSS score of CVE-2017-9841?
CVE-2017-9841 has a CVSS v3 base score of 9.8 (NVD).
Which products are affected by CVE-2017-9841?
CVE-2017-9841 affects PHPUnit PHPUnit. The full affected-products list, including version ranges and fixed versions, is shown in the Affected Packages section of this page.
How do I remediate CVE-2017-9841?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2017-9841, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2017-9841

Explore →

Is Your Infrastructure Affected by CVE-2017-9841?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.