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
Published Jun 27, 2017 ·Due Aug 15, 2022
9.8
CRITICALCVSS 3.1
EPSS 100.00%
Description
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.
Affected products
No data.
Configuration 1
- ≤ 4.8.27
- ≥ 5.0.0 · < 5.6.3
Configuration 2
- ≥ 8.0.0 · ≤ 8.5.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (GHSA) ▾
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
Date Added
Feb 15, 2022
Patch Due
Aug 15, 2022
Required Action
Apply updates per vendor instructions.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
ActiveAutomatable
YesTechnical Impact
TotalDecision
n/aAssessed Feb 7, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (21 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 100.00% (0.99999) | 99.99th | v5 (v2026.06.15) |
| Jun 15, 2026 | 100.00% (0.99999) | 99.99th | v5 (v2026.06.15) |
| Mar 17, 2025 | 94.41% (0.94406) | 99.97th | v4 (v2025.03.14) |
| Dec 12, 2024 | 97.48% (0.97479) | 99.98th | v3 (v2023.03.01) |
| Jul 9, 2024 | 97.48% (0.97479) | 99.97th | v3 (v2023.03.01) |
| Apr 17, 2024 | 97.49% (0.97487) | 99.97th | v3 (v2023.03.01) |
| Jan 29, 2024 | 97.48% (0.97477) | 99.96th | v3 (v2023.03.01) |
| Nov 12, 2023 | 97.48% (0.97484) | 99.97th | v3 (v2023.03.01) |
| Oct 1, 2023 | 97.48% (0.97477) | 99.96th | v3 (v2023.03.01) |
| Mar 13, 2023 | 97.49% (0.97490) | 99.95th | v3 (v2023.03.01) |
| Mar 7, 2023 | 97.50% (0.97505) | 99.96th | v3 (v2023.03.01) |
| Mar 6, 2023 | 88.68% (0.88682) | 99.81th | v2 (v2022.01.01) |
| Nov 15, 2022 | 88.68% (0.88682) | 99.80th | v2 (v2022.01.01) |
| Jul 15, 2022 | 79.02% (0.79022) | 99.45th | v2 (v2022.01.01) |
| Apr 19, 2022 | 88.68% (0.88682) | 99.80th | v2 (v2022.01.01) |
| Feb 4, 2022 | 83.88% (0.83880) | 99.54th | v2 (v2022.01.01) |
| Feb 3, 2022 | 8.70% (0.08700) | 85.97th | v1 |
| Jan 6, 2022 | 8.70% (0.08700) | 85.81th | v1 |
| Oct 21, 2021 | 8.70% (0.08700) | 93.26th | v1 |
| Sep 1, 2021 | 7.69% (0.07689) | 91.54th | v1 |
| Apr 14, 2021 | 7.69% (0.07689) | 0.00th | v1 |
References (13)
- http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com x_refsource_MISCThird Party Advisory
- http://www.securityfocus.com/bid/101798 vdb-entryx_refsource_BIDBroken Link
- http://www.securitytracker.com/id/1039812 vdb-entryx_refsource_SECTRACKBroken Link
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2017-9841.yaml
- https://github.com/advisories/GHSA-r7c9-c69m-rph8 Advisory
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 x_refsource_MISCPatchThird Party Advisory
- https://github.com/sebastianbergmann/phpunit/commit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412
- https://github.com/sebastianbergmann/phpunit/pull/1955
- https://github.com/sebastianbergmann/phpunit/pull/1956 x_refsource_MISCPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-9841
- https://security.gentoo.org/glsa/201711-15 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841 government-resourceUS Government Resource
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISCPatchThird Party Advisory
Change history (0)
No recorded changes yet.