AppleJPEG: Processing a maliciously crafted media file may lead to unexpected app termination or corrupt process memory (CVE-2025-31251)
A memory corruption issue in AppleJPEG could be triggered by processing a maliciously crafted media file, leading to unexpected app termination or corrupt process memory. The issue was addressed with improved input sanitization.
Originally disclosed on Apple
Impact: Processing a maliciously crafted media file may lead to unexpected app termination or corrupt process memory
Description: The issue was addressed with improved input sanitization.
Available for: iPhone XS and later, iPad Pro 13-inch, iPad Pro 12.9-inch 3rd generation and later, iPad Pro 11-inch 1st generation and later, iPad Air 3rd generation and later, iPad 7th generation and later, and iPad mini 5th generation and later
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely insufficient input sanitization when processing media files, leading to memory corruption.
What the attacker needed
Maliciously crafted media file
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A media file (like an image) can be specially crafted to cause a program to crash or mess up its memory. This happens because the program doesn't check the file's contents properly before using them. The fix makes the program check the input more carefully.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.