Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-12882
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:11 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-12882
Complete source record
{
"id": "6725983c432041c156215674b6a72c90e75db7fad08accecb9aeec1a0e77bd6b",
"url": "https://osv.dev/vulnerability/CVE-2018-12882",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-12882",
"summary": "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.",
"evidence": "osv:CVE-2018-12882",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-12882",
"aliases": [
"CVE-2018-12882"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "8148cbb78841c8ec0759c0836e7f35dec799d300"
},
{
"last_affected": "a70ed769120fd596db56bba791766ecb2d1ad39f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"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"
}
}
],
"modified": "2026-10-24T10:30:36.576907770Z",
"provider": "osv",
"references": [
"https://security.netapp.com/advisory/ntap-20181109-0001/",
"https://usn.ubuntu.com/3702-1/",
"https://usn.ubuntu.com/3702-2/",
"https://bugs.php.net/bug.php?id=76409"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-12882",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 434011,
"published_at": "2018-06-26T03:29:00.21+00:00"
}