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