Command injection in PHP - CVE-2018-19518

 

Command injection in PHP - CVE-2018-19518

Published: November 27, 2018 / Updated: June 17, 2021


Vulnerability identifier: #VU16067
CSH Severity: Low
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-19518
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

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

The weakness exists due to insufficient validation of user-supplied input. A remote attacker can send specially crafted data to inject and execute arbitrary commands.

Affected software

PHP
Debian Linux
Amazon Linux AMI
Gentoo Linux
Fedora
Opensuse
php7 (Alpine package)
uw-imap (Ubuntu package)
php
Flex System Chassis Management Module (CMM)

How to mitigate CVE-2018-19518

Install update from vendor's website.

php7 (Alpine package) - update to 7.1.30-r0
uw-imap (Ubuntu package) - addressed in versions 8:2007f~dfsg-5ubuntu0.18.04.2, 8:2007f~dfsg-5ubuntu0.19.04.2, 8:2007f~dfsg-4+deb8u1build0.16.04.1
Flex System Chassis Management Module (CMM) - update to 2pet18c-2.5.16c
php - addressed in versions 7.2.13-2.fc28, 7.2.13-2.fc29

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins