Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-40789 Overview
CVE-2024-40789 is an out-of-bounds access vulnerability affecting Apple Safari and multiple Apple operating systems. The flaw resides in web content processing routines, where improper bounds checking allows maliciously crafted web content to trigger memory access outside allocated buffers. Successful triggering results in an unexpected process crash, impacting availability of the browser or system component.
The weakness is classified under CWE-125 (Out-of-Bounds Read). Apple remediated the issue by introducing improved bounds checking across Safari 17.6, iOS 16.7.9, iPadOS 16.7.9, iOS 17.6, iPadOS 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, and watchOS 10.6.
Critical Impact
Remote attackers can crash the browser or affected process by luring users to a page containing malicious web content, degrading availability across every major Apple platform.
Affected Products
- Apple Safari (prior to 17.6)
- Apple iOS and iPadOS (prior to 16.7.9 and 17.6)
- Apple macOS Sonoma (prior to 14.6), tvOS (prior to 17.6), visionOS (prior to 1.3), watchOS (prior to 10.6)
Discovery Timeline
- 2024-07-29 - CVE-2024-40789 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2024-40789
Vulnerability Analysis
The vulnerability is an out-of-bounds access condition in the web content processing path shared by Safari and underlying Apple OS components. When specially crafted HTML, JavaScript, or related web assets are parsed, the affected code reads memory outside the intended buffer boundary. This produces undefined behavior that commonly manifests as an unexpected process crash.
Because the flaw is triggered through standard web content, the attack surface spans any application or system service that renders untrusted web resources through the shared engine. The impact is limited to availability; the advisory does not indicate confidentiality or integrity compromise. However, repeated crashes in browser or OS components can disrupt user workflows and interrupt security-sensitive sessions.
Root Cause
The root cause is missing or insufficient bounds checking before indexed memory access during web content parsing. Apple's advisory states the issue was addressed with improved bounds checking, consistent with CWE-125 out-of-bounds read semantics. The specific component and function names were not published in the public advisory.
Attack Vector
Exploitation requires a user to visit or load a page containing malicious web content. The attack vector is network-based with user interaction required. A remote attacker hosts the crafted content on an attacker-controlled site, delivers it through an embedded iframe, or injects it via compromised third-party resources. No authentication is required on the target system.
No public proof-of-concept code or verified exploit samples have been published for CVE-2024-40789. The vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and the advisory does not reference in-the-wild exploitation. See the Apple Safari 17.6 advisory for additional vendor context.
Detection Methods for CVE-2024-40789
Indicators of Compromise
- Unexpected crashes of Safari, WebContent, or related WebKit-backed processes correlating with visits to specific URLs or ad networks.
- Crash reports under ~/Library/Logs/DiagnosticReports/ on macOS referencing WebKit frames and out-of-bounds signals (SIGSEGV, EXC_BAD_ACCESS).
- Repeated connections to unfamiliar domains immediately preceding WebContent process termination events.
Detection Strategies
- Inventory endpoints and mobile devices running Safari, iOS, iPadOS, macOS, tvOS, visionOS, or watchOS versions below the patched releases listed in Apple's advisories.
- Correlate browser crash telemetry with URL navigation and DNS logs to identify suspicious pages that trigger repeated WebContent terminations.
- Use endpoint detection tools to monitor for abnormal child-process termination patterns from browser parent processes on macOS.
Monitoring Recommendations
- Forward macOS unified logs and crash reports to a centralized log platform for retention and search.
- Enable browsing telemetry (HTTP/HTTPS proxy logs, DNS resolver logs) to support retroactive hunts when crash spikes are observed.
- Track MDM compliance status for iOS, iPadOS, macOS, tvOS, visionOS, and watchOS versions to flag unpatched devices.
How to Mitigate CVE-2024-40789
Immediate Actions Required
- Upgrade Safari to version 17.6 on supported macOS releases.
- Update devices to iOS 16.7.9 or 17.6, iPadOS 16.7.9 or 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, and watchOS 10.6.
- Enforce patch deployment through MDM policies and block noncompliant devices from accessing sensitive internal applications until updated.
Patch Information
Apple released fixes across its platforms in July 2024. Refer to the vendor advisories for exact build numbers and installation guidance: Safari 17.6, iOS 17.6 and iPadOS 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, and watchOS 10.6. A Debian LTS advisory covering associated WebKit updates is available in the Debian LTS announcement.
Workarounds
- Restrict browsing on unpatched devices to trusted internal sites via proxy or web filtering until updates are deployed.
- Disable JavaScript on high-risk unpatched endpoints through Safari's advanced site settings as a temporary control.
- Use configuration profiles or MDM to block installation and launch of alternative browsers that embed vulnerable WebKit builds on unmanaged devices.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

