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

CVE-2017-7040: 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…

PriorityP262high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
6.31%
92.8th 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

  • The vulnerability is a use-after-free in WebCore::getCachedWrapper triggered via JavaScript DOM manipulation (getElementById) combined with garbage collection pressure to free the underlying Element wrapper, exploitable via a crafted web page.
  • The UAF is triggered through the call chain: getCachedWrapper -> toJS -> jsDocumentPrototypeFunctionGetElementByIdCaller, meaning detection should look for anomalous GC sweeps interleaved with DOM element lookups in WebKit-based browsers.
  • The exploit uses a JavaScript timer (DOMTimer/ScheduledAction) to trigger the use-after-free after memory has been freed by the GC sweeper; monitor for exploit pages using setInterval/setTimeout combined with aggressive memory allocation loops and getElementById calls.
  • The freed object is a 240-byte JSHTMLDocument wrapper; crash signatures in WebKit process (com.apple.WebKit.WebContent) referencing getCachedWrapper or a 240-byte heap region UAF are indicative of exploitation attempts.
  • Exploitation occurs inside the WebKit WebContent XPC service process; monitor for crashes or anomalous behavior in com.apple.WebKit.WebContent.Development / com.apple.WebKit.WebContent.
  • ·The vulnerability affects WebKit across multiple Apple products; patched versions are iOS 10.3.3, Safari 10.1.2, iCloud for Windows 6.2.2, iTunes 12.6.2 on Windows, and tvOS 10.2.2. Detection should focus on unpatched versions of these products.
  • ·On Debian-based Linux systems (using WebKitGTK), the issue is resolved in version 2.16.3-2 across all tracked releases (bookworm, bullseye, forky, sid, trixie).

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.