CVE-2024-40785
Medium · 6.1CVSS
6.1
EPSS
0.8%
Published
Jul 29, 2024
CISA due date
—
Cloudanix analysis
A flaw in Apple web browsers and operating systems could let attackers run unauthorized code on a user's device simply by getting them to visit a rigged webpage, putting personal information at risk.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Insufficient input sanitization checks when processing web content allow attacker-controlled scripts to execute within the victim's browsing context, bypassing same-origin protections.
Why it matters to the business
Users on widely deployed Apple devices may suffer unauthorized access to session data or actions performed on their behalf, increasing risk of account takeover or information disclosure across consumer and enterprise environments.
How an attack unfolds
An attacker crafts malicious web content containing an XSS payload designed to evade the flawed validation logic; when a victim on an affected Apple platform visits the page, the payload executes in the browser context, enabling theft of cookies, DOM manipulation, or phishing.
How to fix it
Upgrade affected devices to Safari 17.6, iOS 16.7.9 and iPadOS 16.7.9, iOS 17.6 and iPadOS 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, or watchOS 10.6.
How to confirm the fix worked
Confirm device and application versions meet or exceed the listed fixed releases; attempt to render test web content containing known XSS vectors and verify execution is blocked.
Typical attack path
- Identify or compromise a site that can deliver crafted web content to targets
- Embed an XSS payload that evades the incomplete sanitization checks
- Lure victims to the malicious page via phishing or watering-hole tactics
- Payload executes upon rendering, performing actions in the user's session
How to detect it
Inspect browser console logs, network request histories, and proxy logs for unexpected script injections or cross-origin requests originating from rendered web content; correlate with endpoint telemetry for anomalous JavaScript execution on Apple platforms.
What your security team should do
- Apply the listed OS and browser updates organization-wide as the primary control
- Enforce automatic update policies for all Apple endpoints
- Review web proxy or endpoint logs for indicators of suspicious cross-origin script activity
- Educate users about risks of visiting untrusted sites until patches are deployed
The record
This issue was addressed with improved checks. This issue is fixed in Safari 17.6, iOS 16.7.9 and iPadOS 16.7.9, iOS 17.6 and iPadOS 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, watchOS 10.6. Processing maliciously crafted web content may lead to a cross site scripting attack.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | webkit2gtk | 0 | 2.44.3-1~deb11u1 |
| Debian:11 | wpewebkit | 0 | No fix |
| Debian:12 | webkit2gtk | 0 | 2.44.3-1~deb12u1 |
| Debian:12 | wpewebkit | 0 | No fix |
| Debian:13 | webkit2gtk | 0 | 2.44.3-1 |
| Debian:13 | wpewebkit | 0 | 2.44.3-1 |
| Debian:14 | webkit2gtk | 0 | 2.44.3-1 |
| Debian:14 | wpewebkit | 0 | 2.44.3-1 |
| SUSE:Enterprise Storage 7.1 | webkit2gtk3 | 0 | 2.44.3-150200.118.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | webkit2gtk3 | 0 | 2.44.3-150200.118.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | webkit2gtk3 | 0 | 2.44.3-150200.118.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | webkit2gtk3 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | webkit2gtk4 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | webkit2gtk3 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | webkit2gtk4 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP5 | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | webkit2gtk3-soup2 | 0 | 2.44.3-150600.12.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | webkit2gtk4 | 0 | 2.44.3-150600.12.9.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 | webkit2gtk3 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 | webkit2gtk3 | 0 | 2.44.3-150600.12.9.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP5 | webkit2gtk4 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP6 | webkit2gtk4 | 0 | 2.44.3-150600.12.9.1 |
| SUSE:Linux Enterprise Server 12 SP5 | webkit2gtk3 | 0 | 2.44.3-4.12.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | webkit2gtk3 | 0 | 2.44.3-150200.118.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | webkit2gtk3 | 0 | 2.44.3-150200.118.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | webkit2gtk3 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | webkit2gtk4 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | webkit2gtk3 | 0 | 2.44.3-4.12.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | webkit2gtk3 | 0 | 2.44.3-150200.118.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | webkit2gtk3 | 0 | 2.44.3-150200.118.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | webkit2gtk3 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | webkit2gtk4 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | webkit2gtk3 | 0 | 2.44.3-4.12.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP5 | webkit2gtk3 | 0 | 2.44.3-4.12.1 |
| SUSE:Manager Proxy 4.3 | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| SUSE:Manager Server 4.3 | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| Ubuntu:16.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:16.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:16.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:16.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:18.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:18.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:18.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:18.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:20.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:20.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:20.04:LTS | wpewebkit | 0 | No fix |
| Ubuntu:22.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:22.04:LTS | wpewebkit | 0 | No fix |
| Ubuntu:24.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:24.10 | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wpewebkit | 0 | No fix |
| openSUSE:Leap 15.5 | webkit2gtk3 | 0 | 2.44.3-150400.4.88.1 |
| openSUSE:Leap 15.5 | webkit2gtk3-soup2 | 0 | 2.44.3-150400.4.88.1 |
| openSUSE:Leap 15.5 | webkit2gtk4 | 0 | 2.44.3-150400.4.88.1 |
| openSUSE:Leap 15.6 | webkit2gtk3 | 0 | 2.44.3-150600.12.9.1 |
| openSUSE:Leap 15.6 | webkit2gtk3-soup2 | 0 | 2.44.3-150600.12.9.1 |
| openSUSE:Leap 15.6 | webkit2gtk4 | 0 | 2.44.3-150600.12.9.1 |
Related vulnerabilities
- CVE-2025-6558 Insufficient validation of untrusted input in ANGLE and GPU in Google Chrome prior to… Also affects webkit2gtk
- CVE-2025-24201 An out-of-bounds write issue was addressed with improved checks to prevent unauthorized… Also affects webkit2gtk
- CVE-2024-54534 The issue was addressed with improved memory handling. Also affects webkit2gtk
- CVE-2024-54508 The issue was addressed with improved memory handling. Also affects webkit2gtk
- CVE-2024-54505 A type confusion issue was addressed with improved memory handling. Also affects webkit2gtk
- CVE-2024-54502 The issue was addressed with improved checks. Also affects webkit2gtk
- CVE-2024-54479 The issue was addressed with improved checks. Also affects webkit2gtk
- CVE-2024-44308 The issue was addressed with improved checks. Also affects webkit2gtk