Adobe Acrobat Reader Font numGlyphs Out-Of-Bounds Read Vulnerability
An out-of-bounds read occurs in Adobe Acrobat Reader when a font file has a maxp table with numGlyphs greater than the CharStringsCount in the CFF2 table. An attacker could trick a user into opening a malicious PDF to disclose sensitive memory contents.
An out-of-bounds read vulnerability exists in the Font functionality of Adobe Acrobat Reader 2024.005.20320. A specially crafted font file embedded into a PDF can trigger this vulnerability which can lead to disclosure of sensitive information.
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
The code allocates a buffer based on CharStringsCount but then loops up to numGlyphs, causing an out-of-bounds read.
Impact
This could lead to disclosure of sensitive information from process memory, which may aid further exploitation and bypass exploit mitigations.
What the attacker needed
Victim opens a malicious PDF
The fix
The vulnerability was fixed by the vendor in a patch release.
How it was found
- Craft a PDF with an embedded OpenType font containing a CFF2 table and a maxp table.
- Set the numGlyphs field in the maxp table to a value larger than the CharStringsCount in the CFF2 table.
- Open the PDF in Adobe Acrobat Reader to trigger the out-of-bounds read.
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 font file inside a PDF can contain a table that says how many glyphs (characters) it has. If that number is larger than the actual number of glyphs stored, the PDF reader reads past the end of a buffer, which can leak memory contents. An attacker could use this to read sensitive data from the process.
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.