CVE-2023-42875 Code injection in Safari
Attackers can execute arbitrary code by tricking users into visiting malicious web content in Safari or WebKit-based apps.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-42875?
CVE-2023-42875 is a high-severity code injection vulnerability in Apple Ipados, published on 11 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Processing web content may lead to arbitrary code execution. This issue is fixed in iOS 17 and iPadOS 17, macOS Sonoma 14, watchOS 10, tvOS 17, Safari 17. The issue was addressed with improved memory handling.
Weakness: CWE-94
Which versions are affected by CVE-2023-42875?
It affects 6 products.
Products include Apple Ipados, Apple Iphone Os, Apple Macos, Apple Safari, Apple Tvos, Apple Watchos.
How do I fix CVE-2023-42875?
Upgrade to a fixed version.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-42875 being exploited?
There is no known exploitation of CVE-2023-42875 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-2023-42875, GHSA-5892-jw8m-4684, UBUNTU-CVE-2023-42875.