CWE
416
Advisory Published
Updated

CVE-2018-12882: Use After Free

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2018-12882?

    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.

  • How do I fix CVE-2018-12882?

    To fix CVE-2018-12882, upgrade to PHP version 7.2.8 or later.

  • What versions of PHP are affected by CVE-2018-12882?

    CVE-2018-12882 affects PHP versions 7.2.0 through 7.2.7.

  • What is the nature of the vulnerability described in CVE-2018-12882?

    CVE-2018-12882 is a use-after-free vulnerability in the exif_read_from_impl function within PHP's EXIF processing.

  • Is CVE-2018-12882 present in other PHP versions aside from 7.2?

    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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203