Apple GarageBand Out of Bounds Write Code Execution Vulnerability
An out-of-bounds write vulnerability exists in the parsing of saved files in Apple GarageBand 10.1.5. A specially crafted project file can cause an out-of-bounds write, 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.5. 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
The length field in the file format is user-controlled and not validated, leading to an out-of-bounds write when serializing a string.
Impact
An attacker could deliver a malicious project file to achieve code execution, though the text does not demonstrate a full exploit.
What the attacker needed
Victim opens a malicious .band file
The fix
The vulnerability was fixed by Apple, but the fix was incomplete as multiple structures still use the same parsing code.
How it was found
- Open a specially crafted .band project file in GarageBand.
- The file contains a length value that is not validated.
- The length is used to calculate an index into a heap buffer.
- A null byte is written out of bounds at that index.
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.
GarageBand is a music app. When it opens a project file, it reads a length value from the file and uses it to write data without checking if the length is too big. This can cause the app to write outside its memory, which an attacker could use to 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.