First published: Tue Jun 26 2018(Updated: )
exif_read_from_impl in ext/exif/exif.c in PHP 7.2.x through 7.2.7 allows attackers to trigger a use-after-free (in exif_read_from_file) because it closes a stream that it is not responsible for closing. The vulnerable code is reachable through the PHP exif_read_data function.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
debian/php5 | ||
debian/php7.0 | ||
debian/php7.1 | ||
PHP | <7.2.8 | 7.2.8 |
PHP | >=7.2.0<=7.2.7 | |
Ubuntu | =18.04 | |
NetApp Storage Automation Store |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-12882 has been identified as a medium severity vulnerability due to the potential for a use-after-free condition that may lead to arbitrary code execution.
To fix CVE-2018-12882, upgrade to PHP version 7.2.8 or later.
CVE-2018-12882 affects PHP versions 7.2.0 through 7.2.7.
CVE-2018-12882 is a use-after-free vulnerability in the exif_read_from_impl function within PHP's EXIF processing.
CVE-2018-12882 specifically affects PHP version 7.2.x and does not affect older versions like PHP 5.x or PHP 7.0 and 7.1.