# CVE-2017-9841: PHPUnit Command Injection Vulnerability

> CVE-2017-9841: PHPUnit Command Injection Vulnerability. CVSS 9.8 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2017-9841
Last updated: 2025-10-21T23:55:39Z

- Published: 2017-06-27 17:00 UTC · Updated: 2025-10-21 23:55 UTC · Assigner: mitre
- CVSS: 9.8 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 100.0%, 100th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2022-02-15, federal due date 2022-08-15, ransomware use: Unknown

## 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.

## CISA required action

Apply updates per vendor instructions.

## Affected vendors and products

- PHPUnit: PHPUnit

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2017-9841)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2017-9841)
- [https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5](https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5)
- [https://github.com/sebastianbergmann/phpunit/pull/1956](https://github.com/sebastianbergmann/phpunit/pull/1956)
- [https://security.gentoo.org/glsa/201711-15](https://security.gentoo.org/glsa/201711-15)
- [https://www.oracle.com/security-alerts/cpuoct2021.html](https://www.oracle.com/security-alerts/cpuoct2021.html)
- [http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/](http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/)
- [http://www.securityfocus.com/bid/101798](http://www.securityfocus.com/bid/101798)
- [http://www.securitytracker.com/id/1039812](http://www.securitytracker.com/id/1039812)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2017-9841 · Markdown: https://rewindex.com/cve/CVE-2017-9841.md · JSON: https://rewindex.com/api/v1/cves/CVE-2017-9841 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:02:10.618Z
