Apple GarageBand Out of Bounds Write Code Execution Vulnerability
GarageBand's parser for its proprietary .band file format reads a two-byte length value from the file without validating it, then uses it as an index into a heap buffer. An attacker could craft a project file that causes a null byte to be written out of bounds, potentially leading to code execution.
Originally disclosed on Cisco Talos
An exploitable out of bounds write vulnerability exists in the parsing of saved files in Apple’s GarageBand version 10.1.4. A specially crafted project file can cause an out of bounds write resulting in an exploitable condition.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 a chunk length field read from the file is used as an index into a heap buffer without any bounds validation.
Impact
An attacker who delivers a crafted project file could trigger an out of bounds null byte write, which the report describes as an exploitable condition that may lead to code execution.
What the attacker needed
Victim opens a crafted .band file; GarageBand 10.1.4 on macOS
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 music app opens project files that contain chunks of data, each starting with a number saying how long the chunk is. The app trusts that number without checking it, so a tampered file can make the app write a zero byte into memory it should not touch. That kind of memory corruption can sometimes let an attacker run their own code.
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.