This Font is not Your Type
A vulnerability in the font parsing library libFontParser.dylib, part of CoreGraphics used across macOS, iOS and iPadOS, could allow an attacker to execute code while parsing a malicious font. The issue was patched in iOS 13.5.1 and macOS 10.15.5.
starlabs.sg
Published on starlabs.sg
Half a year ago, I found a vulnerability in libFontParser.dylib, which is a part of CoreGraphics library that is widely used in macOS, iOS, iPadOS to parse and render fonts. This vulnerability was patched in iOS 13.5.1 & macOS 10.15.5.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a memory-safety flaw in the font parsing code that is triggered by a crafted font file.
What the attacker needed
A crafted font file; victim opens or renders the font
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 write-up has not been written yet. The Original tab links to the source.
Fonts are files that contain instructions for drawing text, and the software that reads them must handle complex data. A bug in that software can let a malicious font file do more than just draw letters, potentially running attacker code on the device. This report describes such a bug in Apple's font parser, which was fixed in a software update.
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.