Advisory Details

May 21st, 2025

Apple macOS JPEG Image Decoding Out-Of-Bounds Write Remote Code Execution Vulnerability

ZDI-25-304
ZDI-CAN-26603

CVE ID CVE-2025-31251
CVSS SCORE 8.8, AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AFFECTED VENDORS Apple
AFFECTED PRODUCTS macOS
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Apple macOS. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the decoding of JPEG images. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current user.

ADDITIONAL DETAILS Apple has issued an update to correct this vulnerability. More details can be found at:
https://support.apple.com/en-us/122716
DISCLOSURE TIMELINE
  • 2025-02-21 - Vulnerability reported to vendor
  • 2025-05-21 - Coordinated public release of advisory
  • 2025-05-21 - Advisory Updated
CREDIT Hossein Lotfi (@hosselot) of Trend Micro Zero Day Initiative
BACK TO ADVISORIES