CVE-2018-12293 in Canonical Ubuntu Linux and 2 more products
The getImageData function in the ImageBufferCairo class in WebCore/platform/graphics/cairo/ImageBufferCairo.cpp in WebKit, as used in WebKitGTK+ prior to version 2.20.3 and WPE WebKit prior to version 2.20.1, is vulnerable to a heap-based buffer overflow triggered by an integer overflow, which could be abused by cra...
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 16.04 17.10 18.04 |
| Webkitgtk | Webkitgtk+ | < 2.20.3 |
| Wpewebkit | Wpe Webkit | < 2.20.1 |
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
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
The getImageData function in the ImageBufferCairo class in WebCore/platform/graphics/cairo/ImageBufferCairo.cpp in WebKit, as used in WebKitGTK+ prior to version 2.20.3 and WPE WebKit prior to version 2.20.1, is vulnerable to a heap-based buffer overflow triggered by an integer overflow, which could be abused by crafted HTML content.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2018-12293 |
|---|---|
| BreachSpider ID | BS-2018-GLOBAL-299369-H |
| CVSS vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2018-06-19 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-190: Integer Overflow or Wraparound
Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Related attack patterns (CAPEC)
CAPEC-92 Forced Integer Overflow via CWE-190
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A heap-based buffer overflow vulnerability exists in the getImageData function of the ImageBufferCairo class in WebKit, affecting WebKitGTK+ prior to version 2.20.3 and WPE WebKit prior to version 2.20.1, due to an integer overflow. This could be exploited by malicious HTML content to execute arbitrary code.
The vulnerability is triggered by crafted HTML content that exploits an integer overflow in the getImageData function, leading to a heap-based buffer overflow. An attacker could exploit this to execute arbitrary code in the context of the affected application.
Questions
What is CVE-2018-12293?
A heap-based buffer overflow vulnerability exists in the getImageData function of the ImageBufferCairo class in WebKit, affecting WebKitGTK+ prior to version 2.20.3 and WPE WebKit prior to version 2.20.1, due to an integer overflow. This could be exploited by malicious HTML content to execute arbitrary code.
What is the CVSS score for CVE-2018-12293?
CVE-2018-12293 has CVSS 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 9.8%.
Is CVE-2018-12293 actively exploited?
Public exploit available for CVE-2018-12293. Exploitation risk elevated.
How do I remediate CVE-2018-12293?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2018-12293?
CVE-2018-12293 affects Canonical Ubuntu Linux; Webkitgtk Webkitgtk+; Wpewebkit Wpe Webkit.
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"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.