cbcvebase.
CVE-2017-7042
published 2017-07-20

CVE-2017-7042: An issue was discovered in certain Apple products. iOS before 10.3.3 is affected. Safari before 10.1.2 is affected. iCloud before 6.2.2 on Windows is affected…

PriorityP264high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
8.88%
94.6th percentile
An issue was discovered in certain Apple products. iOS before 10.3.3 is affected. Safari before 10.1.2 is affected. iCloud before 6.2.2 on Windows is affected. iTunes before 12.6.2 on Windows is affected. tvOS before 10.2.2 is affected. The issue involves the "WebKit" component. It allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via a crafted web site.

Affected

11 ranges
VendorProductVersion rangeFixed in
appleicloud< 6.2.26.2.2
appleicloud_for_windows
appleios
appleiphone_os< 10.3.310.3.3
appleitunes< 12.6.212.6.2
appleitunes_12.6.2_for_windows
applesafari< 10.1.210.1.2
applesafari
appletvos< 10.2.210.2.2
appletvos
debianwebkit2gtk< webkit2gtk 2.16.3-2 (bookworm)webkit2gtk 2.16.3-2 (bookworm)

Detection & IOCsextracted from sources · hover to see the quote

commanddocument.execCommand("insertHTML", false, "")
  • The exploit triggers a Use-After-Free in WebCore::InputType::element by toggling an input element's type between 'foo' and 'search', calling select(), then firing document.execCommand('insertHTML') from within an onsearch/onload event handler chain. Monitor for this DOM manipulation pattern in WebKit-based browsers.
  • The crash originates in WebCore::InputType::element (Use-After-Free), triggered via the executeInsertHTML/execCommand code path in WebKit. Look for WebKit process crashes involving WebCore::CompositeEditCommand::apply and WebCore::executeInsertHTML in crash telemetry.
  • The onsearch event handler is reassigned to document.body.onload to re-enter the vulnerable code path multiple times (runcount guard up to 2). Detect recursive or repeated execCommand('insertHTML') calls triggered from onsearch events as a behavioral indicator.
  • ·The exploit PoC is a crash/DoS proof-of-concept demonstrating the Use-After-Free; it does not include a full RCE payload. Operational exploitation for arbitrary code execution would require additional exploitation primitives beyond what is shown.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.09.3CRITICALAV:N/AC:M/Au:N/C:C/I:C/A:C
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.