Skip to content
Memory corruption Advisory Advanced CVE-2019-8604

Apple macOS securityd Heap-based Buffer Overflow Sandbox Escape Vulnerability

A heap-based buffer overflow in the securityd service on macOS allows an attacker with low-privileged code execution to escape the sandbox. The flaw is due to missing validation of user-supplied data length before copying to a heap buffer.

fluoroacetate Follow

Originally disclosed on Zero Day Initiative

Critical 9.3 View original

This vulnerability allows remote attackers to escape the sandbox on affected installations of Apple Safari. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

fluoroacetate (@fluoroacetate), on the Zero Day Initiative

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

Impact

An attacker with low-privileged code execution could escape the sandbox and execute code under the context of the current user, potentially in conjunction with other vulnerabilities.

What the attacker needed

Low-privileged code execution on target

The fix

Apple has issued an update to correct this vulnerability.

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 heap buffer overflow happens when a program copies more data into a memory area than it can hold, potentially letting an attacker control nearby memory. Here, the securityd service on macOS does not check the size of data it receives, so an attacker who already has limited code execution can exploit this to break out of the sandbox and run code as the user.

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 fluoroacetate

View all

10 more disclosed reports, best first.

More from Zero Day Initiative

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.