CVE-2023-40396 Code injection in iOS and iPadOS
An app can execute arbitrary code with kernel privileges due to improper memory handling, affecting Apple operating systems.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-40396?
CVE-2023-40396 is a high-severity code injection vulnerability in Apple Ipados, published on 29 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
The issue was addressed with improved memory handling. This issue is fixed in iOS 17 and iPadOS 17, macOS Sonoma 14, watchOS 10, tvOS 17. An app may be able to execute arbitrary code with kernel privileges.
Weakness: CWE-77
Which versions are affected by CVE-2023-40396?
It affects 5 products.
Products include Apple Ipados, Apple Iphone Os, Apple Macos, Apple Tvos, Apple Watchos.
How do I fix CVE-2023-40396?
No fix has been published for CVE-2023-40396 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-40396 being exploited?
There is no known exploitation of CVE-2023-40396 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 GHSA-3c78-wrg5-fqxr.