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.
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)
php5 (Debian package)
php7.0 (Debian package)
uw-imap (Debian package)
uw-imap (Ubuntu package)
php
Flex System Chassis Management Module (CMM)
Debian Linux
Amazon Linux AMI
Gentoo Linux
Fedora
Opensuse
php7 (Alpine package)
php5 (Debian package)
php7.0 (Debian package)
uw-imap (Debian 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
php5 (Debian package) - update to 5.6.39+dfsg-0+deb8u1
php7.0 (Debian package) - update to 7.0.33-0+deb9u1
uw-imap (Debian package) - addressed in versions 8:2007f~dfsg-4+deb8u1, 8:2007f~dfsg-5+deb9u1
uw-imap (Ubuntu package) - addressed in versions 8:2007f~dfsg-4+deb8u1build0.16.04.1, 8:2007f~dfsg-5ubuntu0.18.04.2, 8:2007f~dfsg-5ubuntu0.19.04.2
php - addressed in versions 7.2.13-2.fc28, 7.2.13-2.fc29
Flex System Chassis Management Module (CMM) - update to 2pet18c-2.5.16c
php5 (Debian package) - update to 5.6.39+dfsg-0+deb8u1
php7.0 (Debian package) - update to 7.0.33-0+deb9u1
uw-imap (Debian package) - addressed in versions 8:2007f~dfsg-4+deb8u1, 8:2007f~dfsg-5+deb9u1
uw-imap (Ubuntu package) - addressed in versions 8:2007f~dfsg-4+deb8u1build0.16.04.1, 8:2007f~dfsg-5ubuntu0.18.04.2, 8:2007f~dfsg-5ubuntu0.19.04.2
php - addressed in versions 7.2.13-2.fc28, 7.2.13-2.fc29
Flex System Chassis Management Module (CMM) - update to 2pet18c-2.5.16c
Links to Public Exploits and PoC-codes
External References
Related Security Bulletins
- Multiple vulnerabilities in PHP
- OpenSUSE Linux update for php5
- openSUSE update for php7
- Debian update for php7.0
- Amazon Linux AMI update for php56, php70, php71, php72
- Ubuntu update for UW IMAP
- Gentoo update for PHP
- Command injection in php7 (Alpine package)
- IBM Flex System Chassis Management Module update for PHP
- Fedora 28 update for php
- Fedora 29 update for php
- Debian update for php5
- Debian update for uw-imap
- Debian update for uw-imap