Skip to content
Memory corruption Advisory Advanced CVE-2017-2374

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.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

Tyler Bohan, on Cisco Talos

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

  1. Open a specially crafted .band project file in GarageBand.
  2. The file contains a length value that is not validated.
  3. The length is used to calculate an index into a heap buffer.
  4. 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.

More by Tyler Bohan

View all

84 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.