OS command injection in PHP - CVE-2018-19158

 

OS command injection in PHP - CVE-2018-19158

Published: December 7, 2018 / Updated: December 7, 2018


Vulnerability identifier: #VU16316
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-19158
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.

Affected software

PHP
php5 (Alpine package)

How to mitigate CVE-2018-19158

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

PHP - addressed in versions 5.6.39, 7.0.33, 7.1.25, 7.3.0
php5 (Alpine package) - update to 5.6.40-r0

External References

Related Security Bulletins