Skip to content
Memory corruption Advisory Advanced CVE-2022-22648

Apple macOS SCPT File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

A crafted SCPT file opened on Apple macOS could cause the AppleScript framework to read past the end of an allocated buffer, disclosing sensitive memory contents. The attacker could combine this with other flaws to run arbitrary code in the context of the current process.

Mickey Jin Follow

Originally disclosed on Zero Day Initiative

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Apple macOS. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

Mickey Jin (@patch1t) of Trend Micro, 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 could disclose sensitive information from process memory, and could leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the current process; user interaction is required.

What the attacker needed

Victim opens a malicious SCPT file; macOS with the AppleScript framework

The fix

Apple issued an update to correct the 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.

Some files are read into a fixed-size area of memory. If the program trusts a length or offset in the file and reads beyond that area, it can show memory that was never meant to be seen. Here a specially made AppleScript file does exactly that, and the leaked memory could help an attacker build a bigger attack.

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 Mickey Jin

View all

41 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.