Iceni Argus PDF Font-Encoding GlyphMap Adjustment Code Execution Vulnerability
A malformed PDF font object contains a glyph index that the converter trusts without proper bounds checking, so a pointer to a font name is written outside the intended heap array. An attacker could use this arbitrary write to corrupt memory and potentially execute code as the user running the converter.
Originally disclosed on Cisco Talos
An exploitable arbitrary heap-overwrite vulnerability exists within Iceni Argus. When it attempts to convert a malformed PDF to XML, it will explicitly trust an index within the specific font object and use it to write the font’s name to a single object within an array of objects.
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 a signedness flaw: the glyph index is compared against bounds but never clamped or rejected, so a negative-looking value passes the checks and is then used as an array index in a write.
Impact
This could lead to code execution under the context of the account running the converter, though the report only demonstrates a crash.
What the attacker needed
Victim opens a crafted PDF; converter processes the file
How it was found
- Open a crafted PDF in the converter so it parses the embedded font dictionary.
- The converter allocates a font structure and passes it to the encoding installation routine.
- The routine finds the Differences entry and passes its array to the glyph map adjustment function.
- The adjustment loop reads the out-of-bounds glyph index from the array.
- The index passes the signed comparisons and is used to write the glyph name pointer outside the array, crashing the process.
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 embed fonts, and each font lists names for its characters in a table. The converter reads a position number from the file and uses it to place a name into a table without checking that the position is inside the table. A crafted file can therefore make the program write outside its own memory, which can crash it 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.