Adobe Acrobat Reader Font gvar TupleVariation Data Out-Of-Bounds Read Vulnerability
A specially crafted OpenType font embedded in a PDF causes CoolType, the font engine in Adobe Acrobat Reader, to read past the end of a heap buffer while parsing gvar tuple variation data. An attacker who convinces a user to open the malicious file could disclose sensitive memory contents and use that as a step toward further exploitation.
An out-of-bounds read vulnerability exists in CoolType, a font processing framework used by Adobe Acrobat Reader 2024.002.20759.A specially crafted font file embedded into a PDF can trigger an out of bounds memory read which can lead to disclosure of sensitive information and aid further exploitation. An attacker…
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 parser computes the size of a GlyphVariationData block from consecutive offsets but does not verify that the packed point number count plus the per-tuple variation data sizes fit inside that block before copying and reading it.
Impact
An attacker could read out-of-bounds memory, potentially disclosing sensitive information and aiding further exploitation, though the user must open the malicious file.
What the attacker needed
Victim opens a malicious PDF; font embedded in the PDF
How it was found
- Embed a crafted OpenType font with a gvar table inside a PDF.
- Open the PDF in Adobe Acrobat Reader so CoolType parses the font.
- The parser reads the glyph variation offsets and computes the block size.
- The block is copied into a heap buffer sized from that computed value.
- Parsing the tuple variation data then reads past the end of the buffer.
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 carry its own font files, and the program that draws the text has to read the font's internal tables. Here the font's table of variation data claims more data than the buffer actually holds, so the reader copies and then reads bytes beyond the end of that buffer. Those extra bytes are leftover memory that the attacker should not be able to see.
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.