BreachSpiderVerified, not vibes

CVE-2018-12882 in Canonical Ubuntu Linux and 2 more products

Critical 9.8

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.

Affects 3 products from 3 vendors. Facts below cite their sources.

CVSS 3.09.8
EPSS6.5%
EPSS percentile95th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Canonical Ubuntu Linux 18.04
Netapp Storage Automation Store No version listed by the source
Php Php ≥ 7.2.0, ≤ 7.2.7

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2018-12882
BreachSpider IDBS-2018-GLOBAL-223425-C
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2018-06-26
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2018. A critical vulnerability affects Canonical systems (CVE-2018-12882). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability 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. CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Questions

What is CVE-2018-12882?

This vulnerability was disclosed in 2018. A critical vulnerability affects Canonical systems (CVE-2018-12882). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2018-12882?

CVE-2018-12882 has CVSS 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 6.5%.

Is CVE-2018-12882 actively exploited?

No confirmed active exploitation of CVE-2018-12882 as of 2026-09-25.

How do I remediate CVE-2018-12882?

Priority: MEDIUM. Advisory: https://bugs.php.net/bug.php?id=76409 PSIRT: [email protected]

What systems are affected by CVE-2018-12882?

CVE-2018-12882 affects Canonical Ubuntu Linux; Netapp Storage Automation Store; Php Php.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.