#VU85516 Code Injection in PHPUnit


Published: 2024-01-17

Vulnerability identifier: #VU85516

Vulnerability risk: High

CVSSv3.1: 9.4 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C]

CVE-ID: CVE-2017-9841

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
PHPUnit
Server applications / Frameworks for developing and running applications

Vendor: 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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

PHPUnit: 4.8.0 - 5.6.2


External links
http://github.com/sebastianbergmann/phpunit/pull/1956
http://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
http://www.securityfocus.com/bid/101798
http://www.securitytracker.com/id/1039812
http://security.gentoo.org/glsa/201711-15
http://web.archive.org/web/20170701212357/
http://phpunit.vulnbusters.com/
http://www.oracle.com/security-alerts/cpuoct2021.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

Yes. This vulnerability is being exploited in the wild.


Latest bulletins with this vulnerability