Use-after-free error in PHP - CVE-2018-12882

 

Use-after-free error in PHP - CVE-2018-12882

Published: June 26, 2018 / Updated: June 27, 2018


Vulnerability identifier: #VU13498
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-12882
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition or execute arbitrary code on the target system.

The vulnerability exists due to use-after-free error when the exif_read_from_impl function, as defined in the ext/exif/exif.c source code file, closes a stream that it is not responsible for closing. A remote unauthenticated attacker can trick the victim into opening a specially crafted file that submits malicious .jpeg input, trigger memory corruption and cause the service to crash or execute arbitrary code with elevated privileges.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PHP
Amazon Linux AMI
Opensuse
php7 (Alpine package)
Flex System Chassis Management Module (CMM)

How to mitigate CVE-2018-12882


php7 (Alpine package) - update to 7.2.17-r0
Flex System Chassis Management Module (CMM) - update to 2pet16d-2.5.13d

External References

Related Security Bulletins