CVE-2023-41064
High · 7.8 CISA KEVCVSS
7.8
EPSS
53.4%
Published
Sep 7, 2023
CISA due date
Oct 2, 2023
Cloudanix analysis
A malicious image could compromise an unpatched Apple phone, tablet, or computer simply when the device processes it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
This vulnerability is a buffer overflow in Apple ImageIO image parsing. When an affected iOS, iPadOS, or macOS system processes a maliciously crafted image, memory corruption can occur and may allow arbitrary code execution in the context of the process handling the image. Because images can be parsed by messaging, web, preview, mail, and system indexing components, exploitation may be possible through common user workflows that automatically render or preview image content. The issue affects Apple iOS, iPadOS, and macOS versions prior to the fixed releases and has been reported as actively exploited in the wild.
Why it matters to the business
Successful exploitation can give an attacker code execution on Apple endpoints, potentially enabling spyware deployment, theft of sensitive communications and files, device surveillance, persistence through additional exploits, or lateral movement from managed Macs. The risk is elevated because this vulnerability is in CISA KEV, was observed in active exploitation, and affects widely deployed Apple mobile and desktop platforms. Organizations with unmanaged or slow-to-patch Apple devices face heightened exposure, especially for executives, journalists, legal teams, administrators, and other high-value users who may be targeted with malicious images through messaging or web content.
How an attack unfolds
An attacker crafts an image file designed to trigger the ImageIO buffer overflow when parsed by a vulnerable Apple device. The attacker then delivers the image through a channel likely to cause local rendering or preview, such as a message attachment, webpage, email, shared file, or application content feed. When the vulnerable system processes the image, memory corruption occurs and attacker-controlled code may execute inside the parsing process. In real-world campaigns, this type of flaw is commonly paired with sandbox escape or privilege escalation vulnerabilities to move from initial code execution to broader device compromise. After execution, the attacker may deploy spyware or an implant, collect device data, access messages and files available to the compromised process, establish command-and-control communications, and attempt to evade detection by using short-lived payloads or removing delivery artifacts.
How to fix it
Upgrade affected Apple devices to fixed or later versions immediately: iOS 16.6.1 or later, iPadOS 16.6.1 or later, macOS Monterey 12.6.9 or later, macOS Ventura 13.5.2 or later, iOS 15.7.9 or later, iPadOS 15.7.9 or later, and macOS Big Sur 11.7.10 or later. Where possible, move to the latest supported Apple OS release rather than only the minimum fixed version. Ensure mobile device management policies enforce OS update compliance for iPhone, iPad, and macOS fleets. For devices that cannot be updated, reduce exposure by limiting untrusted attachments and links, disabling automatic preview behavior where feasible, restricting unmanaged messaging or file-sharing applications, and isolating high-risk devices from sensitive services. Because this issue is in CISA KEV with a remediation due date of 2023-10-02 and active exploitation is confirmed, treat unpatched devices as high-priority remediation targets.
How to confirm the fix worked
Confirm exposure by inventorying Apple OS versions across iOS, iPadOS, and macOS devices and comparing them to the fixed releases. A device should be considered remediated only if it is running iOS 16.6.1 or later, iPadOS 16.6.1 or later, macOS Ventura 13.5.2 or later, macOS Monterey 12.6.9 or later, macOS Big Sur 11.7.10 or later, or an appropriate newer supported release. Validate that MDM compliance policies report no remaining devices below these versions. On macOS, verify using `sw_vers` and software update inventory data. On iOS and iPadOS, verify through Settings > General > About, MDM inventory, or device compliance telemetry. Also confirm that security tools are up to date and that suspicious crash, image parsing, messaging, browser, and network activity has been reviewed for unpatched devices before declaring the risk fully addressed.
Typical attack path
- Identify a target using a vulnerable version of iOS, iPadOS, or macOS.
- Craft or obtain a malicious image that triggers the ImageIO buffer overflow.
- Deliver the image through a medium that causes the device to parse or preview it, such as messaging, email, web browsing, or shared content.
- Trigger memory corruption during image processing and gain code execution in the vulnerable process context.
- Optionally chain with a sandbox escape or privilege escalation to obtain broader access to the device.
- Deploy an implant, spyware component, or follow-on payload.
- Collect sensitive data, monitor user activity, and communicate with attacker-controlled infrastructure.
- Clean up obvious delivery artifacts or rely on ephemeral execution to reduce forensic evidence.
How to detect it
Look for evidence that vulnerable Apple devices processed suspicious image content and then exhibited crashes, abnormal process behavior, persistence, or outbound communications. Useful sources include Apple Unified Logs, macOS EDR telemetry, crash reports in `/Library/Logs/DiagnosticReports/` and `~/Library/Logs/DiagnosticReports/`, MDM device inventory and OS version history, network proxy and DNS logs, mail and messaging security logs, browser history or download telemetry, and endpoint file/process events. Focus on activity before the device was updated to a fixed version. Search for crashes or memory exceptions involving image-rendering or content-handling processes such as ImageIO consumers, Messages, Mail, Safari, WebKit-related processes, Preview, QuickLook, Photos, Spotlight metadata importers, and third-party messaging applications. Follow-on signs may include unexpected configuration profiles, suspicious launch agents or daemons, unknown background processes, unusual network connections shortly after receipt or rendering of an image, and cleanup of recently received attachments. Because public reporting for this flaw does not provide a universal payload hash or single reliable network indicator, detection should combine version exposure, suspicious delivery events, crash artifacts, and post-exploitation behavior rather than depend on one IOC.
- ImageIO
- EXC_BAD_ACCESS
- KERN_INVALID_ADDRESS
- SIGSEGV
- SIGBUS
- /Library/Logs/DiagnosticReports/
- ~/Library/Logs/DiagnosticReports/
- com.apple.ImageIO
- com.apple.WebKit
- Messages
- MobileSMS
- Safari
- Preview
- QuickLookSatellite
- mdworker
- photolibraryd
- /Library/LaunchAgents/
- ~/Library/LaunchAgents/
- /Library/LaunchDaemons/
- /var/db/ConfigurationProfiles/
What your security team should do
- Immediately identify all iOS, iPadOS, and macOS devices running versions older than the fixed releases and prioritize remediation of executive, administrator, legal, finance, security, and other high-risk users.
- Enforce upgrade to the latest supported Apple OS version through MDM and block access to sensitive corporate services from noncompliant devices.
- Treat this as an active-exploitation issue because it is listed in CISA KEV; the KEV remediation deadline was 2023-10-02, so any remaining exposure should be escalated as overdue.
- Review endpoint telemetry, Apple unified logs, EDR alerts, and crash reports for suspicious image parsing crashes or unexplained process behavior around message, mail, browser, preview, and photo-handling applications.
- Hunt for follow-on compromise indicators such as unknown launch agents, suspicious profiles, unusual outbound connections, unexpected persistence mechanisms, or spyware-like behavior on previously vulnerable devices.
- For high-risk users, consider forensic triage or full device analysis if they received suspicious image attachments, messages, links, or experienced unusual crashes before patching.
- Restrict unmanaged messaging, file-sharing, and attachment-handling applications on devices that cannot be patched promptly.
- Maintain a process for rapid Apple emergency update deployment because ImageIO and media parsing flaws are frequently used in targeted exploit chains.
The record
A buffer overflow issue was addressed with improved memory handling. This issue is fixed in iOS 16.6.1 and iPadOS 16.6.1, macOS Monterey 12.6.9, macOS Ventura 13.5.2, iOS 15.7.9 and iPadOS 15.7.9, macOS Big Sur 11.7.10. Processing a maliciously crafted image may lead to arbitrary code execution. Apple is aware of a report that this issue may have been actively exploited.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-120
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-120
- CVE-2026-42808 An issue was discovered in Bosch Sensortec COINES_SDK versions 2.0 through 2.11. The host… CWE-120
- CVE-2026-87931 A vulnerability has been found in Behavioral Technology Group Pavlok Behavioral… CWE-120
- CVE-2026-71613 Buffer Overflow vulnerability in GPAC c2dee3aff638cd96f9617ac5b17dc2868cd90ef3 allows an… CWE-120
- CVE-2026-86166 A vulnerability was determined in Tenda HG10 300001138. CWE-120