---
title: "Graphite Programs, Signatures and Smuggled Tables: What a Font File Really Contains"
description: Fonts hold tables of data, some of them programs, plus a directory of offsets the attacker writes. They are parsed as soon as text is drawn.
---

[File Security 101 - Threats Beyond Malware explained](https://explore.bowbridge.net/file-security-101)

# [Graphite Programs, Signatures and Smuggled Tables: What a Font File Really Contains](https://explore.bowbridge.net/file-security-101/episode-13-graphite-programs-signatures-and-smuggled-tables)

 Written by [Joerg Schneider-Simon](https://explore.bowbridge.net/file-security-101/author/joerg-schneider-simon) | Nov 25, 2026, 1:40:36 PM

A font file is not just a set of letter shapes. It is a directory of tables, some of them programs, and the attacker decides what the directory says. This is episode 13 of File Security 101, our series on file-based threats your anti-malware does not see.

The video explains it in about two minutes.  
 The article adds the details and the research behind it.

## A font is a small database

Fonts reach a computer more often than people think: web pages load them through CSS, PDF and Office documents embed them, and email clients render both. Nobody opens a font on purpose. The font engine in the operating system, the browser or the office suite parses it automatically, as soon as the text is drawn.

## Tables: the font's directory

An OpenType or TrueType font starts with a table directory. For each table, it records a four-letter tag, a checksum, an offset from the start of the file and a length ([OpenType specification](https://learn.microsoft.com/en-us/typography/opentype/spec/otff)). Standard tables hold the outlines (`glyf`), the horizontal spacing (`hmtx`), the mapping from characters to glyphs (`cmap`) and the names (`name`). The specification also allows platform vendors and tools to define tables of their own. WOFF, the web font container, wraps the same tables and adds an XML metadata block and a private data block.

Some tables contain programs. Graphite, a technology for "smart fonts" that handle complex writing systems, stores its layout rules in a table called `Silf`, which the Graphite engine executes. `DSIG` holds a digital signature, a PKCS#7 block that is not needed to draw a single letter.

## The attack: tables that lie

An attacker has two levers. First, extra tables: a Graphite program, a signature table or a private table with any content they want, all of which look like legitimate font data. Second, the directory itself. Offsets and lengths are just numbers. A table can claim to start beyond the end of the file, two tables can claim the same bytes, and the `loca` table, which records where each glyph begins, can point outside the glyph data. A font engine that trusts those numbers reads or writes outside the memory it allocated. With a carefully built font, that becomes code execution, often with high privileges, because on older Windows versions the font engine ran in the kernel.

## It happened

- **CVE-2015-2426, 2015.** In July 2015, researchers found a flaw in the Windows Adobe Type Manager Library (atmfd.dll) in emails leaked from the spyware vendor Hacking Team. FireEye called it "a straight-to-kernel remote code execution vulnerability" ([Computerworld](https://www.computerworld.com/article/2949589/microsoft-patches-windows-zero-day-found-in-hacking-teams-leaked-docs.html)). A crafted OpenType font in a document or on a web page let an attacker take complete control of the system. Microsoft released bulletin MS15-078 out of band on July 20, 2015 ([Microsoft](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2015/ms15-078)). [CVE-2015-2426](https://nvd.nist.gov/vuln/detail/CVE-2015-2426) is in CISA's Known Exploited Vulnerabilities catalog.
- **Graphite, 2016.** Yves Younan of Cisco Talos found four vulnerabilities in the Libgraphite library used by Firefox, LibreOffice and Linux distributions, triggered by a crafted font served with a web page ([Cisco Talos](https://blog.talosintelligence.com/vulnerability-spotlight-libgraphite/)). One of them, [CVE-2016-1521](https://nvd.nist.gov/vuln/detail/CVE-2016-1521), sits in the interpreter that runs Graphite programs and allows arbitrary code execution; another, CVE-2016-1526, in the lookup of the `loca` table. Firefox 43 and ESR 38.6.1 shipped the fix.

## Why it slips through

A malicious font does contain an exploit, so why does it get through? Every table looks like a valid font table. To check the tables at all, a filter must parse the same directory the attacker wrote, and a new malformed font, built for a specific engine, matches no known signature. Fonts also arrive silently inside documents and web pages, so the user never sees a file to be suspicious of.

## What to do

- Keep operating systems, browsers and office suites updated. Font engines receive security fixes regularly.
- On Windows, enable the Group Policy "Untrusted Font Blocking" (Computer Configuration, Administrative Templates, System, Mitigation Options). It blocks fonts outside `%windir%\Fonts` from being processed by the Windows graphics engine, GDI ([Microsoft](https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/block-untrusted-fonts-in-enterprise)). Test it first in audit mode.

bowbridge Content Disarm and Reconstruct rebuilds a font from an allow-list of tables: the outlines, spacing, character map and the few tables a renderer needs. Graphite, signature, color and private tables, and the WOFF metadata and private blocks, are not copied. A font whose table directory is malformed, with out-of-bounds or overlapping tables, is refused as a whole.

[Join the bowbridge CDR beta program](https://explore.bowbridge.net/en/cdr-beta)

## Sources

- [OpenType font file](https://learn.microsoft.com/en-us/typography/opentype/spec/otff), Microsoft Typography, OpenType 1.9.1 specification
- [Microsoft Security Bulletin MS15-078](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2015/ms15-078), Microsoft, July 20, 2015
- [Microsoft patches Windows zero-day found in Hacking Team's leaked docs](https://www.computerworld.com/article/2949589/microsoft-patches-windows-zero-day-found-in-hacking-teams-leaked-docs.html), Computerworld, July 20, 2015
- [CVE-2015-2426](https://nvd.nist.gov/vuln/detail/CVE-2015-2426), National Vulnerability Database
- [Vulnerability Spotlight: Libgraphite](https://blog.talosintelligence.com/vulnerability-spotlight-libgraphite/), Cisco Talos, February 5, 2016
- [CVE-2016-1521](https://nvd.nist.gov/vuln/detail/CVE-2016-1521), National Vulnerability Database
- [Block untrusted fonts in an enterprise](https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/block-untrusted-fonts-in-enterprise), Microsoft Learn

## Subscribe to upcoming episodes

[View full post](https://explore.bowbridge.net/file-security-101/episode-13-graphite-programs-signatures-and-smuggled-tables)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Joerg Schneider-Simon"
  },
  "dateModified" : "2026-11-25T13:40:36.423Z",
  "datePublished" : "2026-11-25T13:40:36Z",
  "headline" : "Graphite Programs, Signatures and Smuggled Tables: What a Font File Really Contains",
  "image" : {
    "@type" : "ImageObject",
    "height" : 500,
    "url" : "https://2773339.fs1.hubspotusercontent-eu1.net/hubfs/2773339/Blog/File%20Security%20101/Headers/File%20Security%20101%20-%20Blog%20Header.jpeg",
    "width" : 1779
  },
  "mainEntityOfPage" : "https://explore.bowbridge.net/file-security-101/episode-13-graphite-programs-signatures-and-smuggled-tables",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "File Security 101 - Threats Beyond Malware explained"
  }
}
```