{"schema_version":"1.8.0","id":"CVE-2018-12882","published":"2018-06-26T03:29:00.210Z","modified":"2026-08-07T11:31:31.919288907Z","related":["SUSE-SU-2018:1886-1","SUSE-SU-2018:1936-1","SUSE-SU-2018:1936-2","SUSE-SU-2018:2044-1","SUSE-SU-2018:2682-1","SUSE-SU-2022:4067-1","openSUSE-SU-2024:11167-1","openSUSE-SU-2024:11169-1"],"details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"8148cbb78841c8ec0759c0836e7f35dec799d300"},{"last_affected":"a70ed769120fd596db56bba791766ecb2d1ad39f"}],"database_specific":{"cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"7.2.0"},{"last_affected":"7.2.7"}],"source":"CPE_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12882.json"}}],"references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/104551"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20181109-0001/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3702-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3702-2/"},{"type":"FIX","url":"https://bugs.php.net/bug.php?id=76409"}],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"],"extracted_events":[{"introduced":"18.04"},{"last_affected":"18.04"}],"source":"CPE_STRING","vendor_product":"canonical:ubuntu_linux"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}