#VU16316 OS command injection in PHP


Published: 2018-12-07 | Updated: 2018-12-07

Vulnerability identifier: #VU16316

Vulnerability risk: Low

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

CVE-ID: CVE-2018-19158

CWE-ID: CWE-78

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PHP
Universal components / Libraries / Scripting languages

Vendor: PHP Group

Description
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The weakness exists due to OS command injection in imap_open. A remote attacker can bypass disabled exec functions in PHP and run arbitrary shell commands via mailbox parameter.

Mitigation
The vulnerability has been addressed in the versions 5.6.39, 7.0.33, 7.1.25, 7.3.0.

Vulnerable software versions

PHP: 5.6.0 - 5.6.38, 7.0.0 - 7.0.32, 7.1.0 - 7.1.24


External links
http://bugs.php.net/bug.php?id=77153


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?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability