Buffer overflow in macOS - CVE-2025-31251

 

Buffer overflow in macOS - CVE-2025-31251

Published: May 12, 2025 / Updated: May 22, 2025


Vulnerability identifier: #VU108964
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-31251
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error when processing specially crafted image files in AppleJPEG. A remote attacker can trick the victim into opening a specially crafted file, trigger memory corruption and crash the application.


Affected software

macOS
visionOS
watchOS
iPadOS
tvOS
Apple iOS

How to mitigate CVE-2025-31251

Install updates from vendor's website.

macOS - addressed in versions 15.5 24F74, 13.7.6 22H625, 14.7.6 23H626
visionOS - update to 2.5
watchOS - update to 11.5
iPadOS - addressed in versions 17.7.7, 18.5 22F76
tvOS - update to 18.5
Apple iOS - update to 18.5 22F76

External References

Related Security Bulletins