Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

CoreAudio memory corruption in Apple multiple products

IdentifiersCVE-2025-31200CWE-787· Out-of-bounds Write

CVE-2025-31200 is a memory corruption vulnerability in Apple's CoreAudio component affecting iOS, iPadOS, macOS, tvOS, and visionOS. Apple states that processing an audio stream in a maliciously crafted media file may result in code execution. The issue was addressed through improved bounds checking, indicating an out-of-bounds memory access condition during audio stream handling. Apple reported that the flaw may have been exploited in an extremely sophisticated attack against specific targeted individuals on iOS.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation may allow arbitrary code execution in the context of the targeted process or user while the crafted media content is being processed. This can enable device compromise, malware or spyware deployment, data access, and follow-on post-exploitation activity. Apple has indicated the vulnerability may already have been used in highly targeted real-world attacks against iOS users.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by limiting processing of untrusted or externally supplied media files, restricting delivery vectors for malicious media content, enforcing least privilege, and using platform protections such as Gatekeeper, SIP, application control, and EDR/host-based detection. These measures may reduce exploitability or impact but do not replace vendor patching.

Remediation

Patch, then assume compromise.

Apply Apple's security updates that fix CVE-2025-31200: iOS 18.4.1, iPadOS 18.4.1, macOS Sequoia 15.4.1, tvOS 18.4.1, and visionOS 2.4.1, or later versions. Organizations should prioritize patching because the vulnerability has been reported as potentially exploited in the wild and has been added to CISA's Known Exploited Vulnerabilities catalog.
PUBLIC EXPLOITS

Exploits

2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (2 hidden).

VALID 2 / 4 TOTALView more in app
CVE-2025-31200MaturityPoCVerified exploit

This repository is a proof-of-concept (POC) exploit for CVE-2025-31200, a buffer overflow in Apple's CoreAudio APAC decoder affecting iOS < 18.4.1 and macOS < 15.4.1. The exploit works by generating a malicious APAC audio cookie with mismatched channel counts (global: 4, remapping: 64), which is embedded into an audio file (MP4/M4A). When a vulnerable system processes this file (e.g., via AVAudioPlayer, browser, or email client), it triggers out-of-bounds memory access in the APACChannelRemapper::Process function, causing a crash and potential memory corruption. The repository contains Python scripts for generating the exploit payload (poc.py), creating and verifying malicious audio files (generate_audio.py, create_malicious_mp4.py, test_exploit.py), and utility modules for manipulating APAC cookies (caf_utils.py, parser.py). The exploit is primarily a Denial of Service but could be extended for code execution with advanced payloads. No network endpoints are present; the attack is delivered via crafted media files.

hunters-secDisclosed Aug 28, 2025pythonmedia_filebrowseremail
apple-positional-audio-codec-invalid-headerMaturityPoCVerified exploit

This repository is a proof-of-concept (POC) exploit for CVE-2025-31200, a vulnerability in Apple's CoreAudio APAC (Apple Positional Audio Codec) decoder affecting macOS (<15.4.1) and iOS (<18.4.1). The exploit demonstrates how a mismatch between the channel layout tag and the remapping array in the APAC/HOA decoder can lead to out-of-bounds reads and writes, potentially allowing for memory corruption. The repository contains: - 'encodeme.mm': The main exploit code, which crafts a malformed APAC audio file by manipulating the channel layout and remapping array. - 'build_encodeme.sh' and 'run_encodeme.sh': Scripts to build and run the exploit, the latter using LLDB to inject further memory manipulation at runtime. - 'check-mismatch.lldb' and 'run_encodeme_hook.lldb': LLDB scripts to set breakpoints and observe/control the memory state during exploitation. - 'convertme2.swift' and 'getaudiolength.swift': Swift utilities for converting audio and checking file properties. - 'apac.ksy': Kaitai Struct definition for the APAC format, useful for understanding and manipulating the binary structure of APAC files. The exploit is not fully weaponized; it is a research POC that demonstrates the bug and provides a controlled (but not fully arbitrary) write. It requires manual steps and a vulnerable system. No network endpoints are involved; the attack vector is local, requiring the ability to run code and debug on the target system.

zhuoweiDisclosed Apr 21, 2025c++objc++local
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AppleIpadosoperating_system
AppleIphone Osoperating_system
AppleMacosoperating_system
AppleTvosoperating_system
AppleVisionosoperating_system
AppleWatchosoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity66

Community discussion across Reddit, Mastodon, and other social sources.