Skip to content
Race condition Advisory Advanced CVE-2024-27876

Compression: Unpacking a maliciously crafted archive may allow an attacker to write arbitrary files (CVE-2024-27876)

A race condition in the archive unpacking component could allow an attacker to write arbitrary files when a maliciously crafted archive is unpacked. The issue was addressed with improved locking.

Snoolie Keffaber Follow

Originally disclosed on Apple

Impact: Unpacking a maliciously crafted archive may allow an attacker to write arbitrary files

Description: A race condition was addressed with improved locking.

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

The original report as published on Apple's security release notes, by Snoolie Keffaber (@0xilis). Images and videos are our own copies; raw HTML is shown as text. View it on Apple's security release notes.

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 race condition during archive extraction allowed a file path to be manipulated between validation and use, enabling arbitrary file writes.

What the attacker needed

Victim unpacks a malicious archive

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.

When you unpack a compressed file (like a zip), the software extracts its contents to your disk. A race condition means two actions happen at nearly the same time in an unpredictable order, and here that could let a malicious archive write files to places it shouldn't. The fix makes the software lock things properly so the order is predictable.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Apple

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.