#VU85516 Code Injection in PHPUnit - CVE-2017-9841
Published: January 17, 2024 / Updated: August 8, 2025
PHPUnit
sebastianbergmann
Description
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation in the Util/PHP/eval-stdin.php. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Remediation
External links
- https://github.com/sebastianbergmann/phpunit/pull/1956
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
- http://www.securityfocus.com/bid/101798
- http://www.securitytracker.com/id/1039812
- https://security.gentoo.org/glsa/201711-15
- http://web.archive.org/web/20170701212357/
- http://phpunit.vulnbusters.com/
- https://www.oracle.com/security-alerts/cpuoct2021.html