cbcvebase.
CVE-2018-4222
published 2018-06-08

CVE-2018-4222: An issue was discovered in certain Apple products. iOS before 11.4 is affected. Safari before 11.1.1 is affected. iCloud before 7.5 on Windows is affected…

PriorityP266high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
10.51%
95.3th percentile
An issue was discovered in certain Apple products. iOS before 11.4 is affected. Safari before 11.1.1 is affected. iCloud before 7.5 on Windows is affected. iTunes before 12.7.5 on Windows is affected. tvOS before 11.4 is affected. watchOS before 4.3.1 is affected. The issue involves the "WebKit" component. It allows remote attackers to execute arbitrary code via a crafted web site that leverages a getWasmBufferFromValue out-of-bounds read during WebAssembly compilation.

Affected

16 ranges
VendorProductVersion rangeFixed in
appleicloud< 7.57.5
appleicloud_for_windows
appleios
appleiphone_os< 11.411.4
appleitunes< 12.7.512.7.5
appleitunes_12.7.5_for_windows
applesafari< 11.1.111.1.1
applesafari
appletvos< 11.411.4
appletvos
applewatchos< 4.3.14.3.1
applewatchos
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debianwebkit2gtk< webkit2gtk 2.20.3-1 (bookworm)webkit2gtk 2.20.3-1 (bookworm)

Detection & IOCsextracted from sources · hover to see the quote

commandvar b2 = new ArrayBuffer(1000); var view = new Int8Array(b2, 700); var mod = new WebAssembly.Module(a);
  • Look for WebAssembly.Module instantiation in JavaScript where the source buffer is constructed from a TypedArray or DataView with a non-zero byte offset (e.g., new Int8Array(buffer, offset)), which triggers the double-offset out-of-bounds read in getWasmBufferFromValue during WebAssembly compilation.
  • Flag crafted web content that passes a TypedArray or DataView view (with non-zero offset) directly to WebAssembly.Module() — this is the minimal trigger pattern for the CVE-2018-4222 heap out-of-bounds read / info leak leading to arbitrary code execution.
  • ·The exploit requires the victim to visit a crafted web page in a vulnerable WebKit-based browser; no network-level IOC (domain, IP, URL) is associated with the vulnerability itself — detection must focus on JavaScript/WebAssembly payload patterns at the content layer.
  • ·The out-of-bounds read can manifest as either a parsing exception or silent data exfiltration via data sections copied from off-heap memory, making purely crash-based detection insufficient.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8LOW
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.