CVE-2024-40782 Use after free in Safari
Processing maliciously crafted web content in Apple Safari may lead to an unexpected process crash due to a use-after-free vulnerability.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-40782?
CVE-2024-40782 is a critical use after free vulnerability in Apple Ipados, published on 29 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A use-after-free issue was addressed with improved memory management. 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 an unexpected process crash.
Weakness: CWE-416
Which versions are affected by CVE-2024-40782?
It affects 7 products.
Products include Apple Ipados, Apple Iphone Os, Apple Macos, Apple Safari, Apple Tvos, Apple Visionos and 1 more.
How do I fix CVE-2024-40782?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-40782 being exploited?
There is no known exploitation of CVE-2024-40782 in the wild and no public exploit code.
Other vulnerabilities in Apple Ipados
- CVE-2025-43300 Apple iOS, iPadOS, and macOS Out-of-Bounds Write
- CVE-2025-24201 Apple Multiple Products WebKit Out-of-Bounds Write
- CVE-2025-24085 Apple Multiple Products Use-After-Free
- CVE-2025-31200 Apple Multiple Products Memory Corruption
- CVE-2025-31201 Apple Multiple Products Arbitrary Read and Write
Sources
Also known as DEBIAN-CVE-2024-40782, GHSA-4rw8-cxgp-9r2g, UBUNTU-CVE-2024-40782.