Remote code execution in PHPUnit



Published: 2017-06-27 | Updated: 2024-01-17
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2017-9841
CWE-ID CWE-94
Exploitation vector Network
Public exploit Vulnerability #1 is being exploited in the wild.
Vulnerable software
Subscribe
PHPUnit
Server applications / Frameworks for developing and running applications

Vendor sebastianbergmann

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Code Injection

EUVDB-ID: #VU85516

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 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: Yes

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

CPE2.3 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.



###SIDEBAR###