What is FreeType?
FreeType is the world's most widely used open-source font rendering library. It processes TrueType, OpenType, Type 1, and other font formats to render glyphs on screen. FreeType is embedded in Android, Linux distributions (Fedora, Ubuntu, Debian, etc.), macOS, Chrome, Firefox, GNOME, KDE, and countless applications that display text. Because font processing happens automatically whenever text is rendered — including from remote sources like web pages, documents, and messaging apps — FreeType vulnerabilities have an extremely broad attack surface that can be triggered without explicit user action.
Overview
CVE-2025-27363 is an out-of-bounds write vulnerability (CWE-787) in FreeType triggered when parsing font subglyph structures related to TrueType GX and variable font files. A crafted font file can cause FreeType to write beyond an allocated buffer, resulting in heap corruption and potentially arbitrary code execution. Meta reported active exploitation in the wild, and Google confirmed the vulnerability was exploited before Android's May 2025 Security Bulletin. Any application that processes untrusted fonts is potentially exposed — including Android system components, web browsers, and email clients.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| FreeType | < 2.13.4 | 2.13.4 |
| Android 13/14/15 | Before May 2025 patch level | May 2025 patch level (2025-05-01) |
| Linux distributions | Varies by distro — check vendor advisories | Distro-specific FreeType 2.13.4+ packages |
| macOS | Included in OS updates | Check Apple security advisories |
Technical Details
The out-of-bounds write (CWE-787) occurs in FreeType's parsing of TrueType GX (a format for variable fonts — fonts that can smoothly interpolate between design axes like weight, width, and slant) and more broadly variable font files. When processing subglyph composite structures, the code computes an offset or count without properly validating it against the available buffer size, writing beyond the end of an allocated heap buffer.
Heap corruption from the out-of-bounds write can be exploited by carefully constructing the font file to achieve an arbitrary write primitive, then leveraging it for code execution. The High attack complexity (AC:H) reflects that exploiting the vulnerability requires a specifically crafted font with the right structure to achieve reliable heap corruption — not trivial, but demonstrated in active exploitation.
Exploitation vectors on Android:
- Malicious image or document containing an embedded custom font (WhatsApp, Signal, email attachments)
- Web page with a custom
@font-faceCSS declaration loading a crafted font file - Rendering of text in any app that uses FreeType for font processing
Discovery
Meta's security research team identified active exploitation in the wild and published a security advisory. Google confirmed the vulnerability was being exploited before the Android May 2025 patch.
Exploitation Context
Active exploitation was confirmed by both Meta and Google before the CISA KEV listing on May 6, 2025. The two-month gap between the FreeType 2.13.4 release (March 11) and the KEV listing (May 6) reflects the time taken to confirm exploitation and the time for Android OEMs to integrate the patch.
The exploitation vector — a malicious font embedded in a message or document — makes this well-suited for targeted delivery via messaging platforms (WhatsApp, iMessage, Telegram) or email. The broad deployment of FreeType across all Android versions, Linux distributions, and applications makes the attack surface universal.
Remediation
- Apply Android May 2025 security patches (patch level 2025-05-01 or later) on all Android 13–15 devices. The CISA deadline was May 27, 2025.
- Update FreeType to 2.13.4 or later on Linux servers and workstations. Check your distribution's package repository:
- Debian/Ubuntu:
apt update && apt install libfreetype6 - RHEL/Fedora:
dnf update freetype
- Debian/Ubuntu:
- Apply macOS security updates — Apple integrates FreeType fixes into OS updates.
- Update Chrome and Firefox — both bundle FreeType and will ship updates incorporating the fix.
- Treat untrusted fonts as executable content — block custom fonts in email clients and document viewers where possible; configure browsers to restrict
@font-faceto trusted domains.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2025-27363 |
| Vendor / Product | FreeType — FreeType |
| NVD Published | 2025-03-11 |
| NVD Last Modified | 2025-10-27 |
| CVSS 3.1 Score | 8.1 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-787 find similar ↗ |
| CISA KEV Added | 2025-05-06 |
| CISA KEV Deadline | 2025-05-27 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2025-03-11 | FreeType 2.13.4 released with fix; CVE published |
| 2025-04-01 | Android May 2025 Security Bulletin released; active exploitation in Android confirmed |
| 2025-05-06 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2025-05-27 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| FreeType Issue #1245 — CVE-2025-27363 Fix | Vendor Advisory |
| Android Security Bulletin — May 2025 | Vendor Advisory |
| NVD — CVE-2025-27363 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Meta Security Advisory — CVE-2025-27363 | Security Research |