Skip to content
Memory corruption Advisory Advanced CVE-2024-20730

Adobe Acrobat Reader Font CPAL integer overflow vulnerability

An integer overflow in Adobe Acrobat Reader's handling of the CPAL font table allows a crafted font embedded in a PDF to cause a buffer overflow, potentially leading to arbitrary code execution. An attacker must trick the user into opening the malicious file.

KPC Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An integer overflow vulnerability exists in the font file processing functionality of Adobe Acrobat Reader 2023.006.20380. A specially crafted font file embedded into a PDF can trigger this vulnerability, which can lead to a buffer overflow and could result in arbitrary code execution.

KPC, 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

Likely the product of numPaletteEntries and numPalettes is multiplied by 4 without checking for integer overflow, so a small allocation is followed by a larger write.

Impact

A crafted PDF could cause a buffer overflow and potentially arbitrary code execution, but the user must open the malicious file.

What the attacker needed

Victim opens a malicious PDF

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 PDF can contain fonts, and one font table stores colour information. The program multiplies two numbers from the font file to work out how much memory to reserve, but the result can wrap around to a tiny number. It then writes more data than the small buffer can hold, which can crash the program or let an attacker 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 KPC

View all

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