# CVE-2017-9841: PHPUnit Command Injection Vulnerability

- Priority: **Act now**
- Reason: Listed as exploited by CISA (15-02-2022)
- Next step: Check the vendor advisory
- Status: published
- Published: 2017-06-27 · Modified: 2025-10-21
- Aliases: UBUNTU-CVE-2017-9841, USN-7171-1, DEBIAN-CVE-2017-9841
- Record: https://cvemate.com/vulnerability/CVE-2017-9841 · JSON: https://cvemate.com/vulnerability/CVE-2017-9841/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 99.999%, percentile 99.993%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2022-02-15, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected

- debian phpunit (Debian): \< 5.4.6-2
- ubuntu phpunit (Ubuntu): \< 5.1.3-1+ubuntu3+esm1
- oracle communications\_diameter\_signaling\_router: ≥ 8.0.0, ≤ 8.5.0
- phpunit\_project phpunit: ≤ 4.8.27 \| ≥ 5.0.0, \< 5.6.3

## References

- <http://www.securityfocus.com/bid/101798>
- <http://www.securitytracker.com/id/1039812>
- <https://security.gentoo.org/glsa/201711-15>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>
- <https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5>
- <https://github.com/sebastianbergmann/phpunit/pull/1956>
- <http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841>
- <https://ubuntu.com/security/CVE-2017-9841>
- <http://phpunit.vulnbusters.com/>
- <https://www.cve.org/CVERecord?id=CVE-2017-9841>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>
- <https://ubuntu.com/security/notices/USN-7171-1>
- <https://security-tracker.debian.org/tracker/CVE-2017-9841>

---

Data as of 2026-12-05T03:05:12.599Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
