# CVE-2026-71394: GNU Emacs for Android improper validation in font table parsing

Source: https://junglewise.ai/threats/cve-2026-71394-gnu-emacs-for-android-improper-validation-in-font-table-parsing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-10. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-71394 · Severity: info · CVSS 6.5 · Published 2026-08-10

GNU Emacs is a widely-used text editor and computing environment available on multiple platforms including Android. An attacker can deliver a malicious font file—via email, web content (EWW), or documents with custom formatting—that causes Emacs to load it. The vulnerability allows the font parser to read uninitialized heap memory, potentially exposing sensitive data or causing crashes; on 32-bit systems this could lead to arbitrary memory access and further compromise.

Technologies: [Gnu Emacs](https://junglewise.ai/threats/technologies/emacs). Vendors: [Gnu](https://junglewise.ai/threats/vendors/gnu).

## Quick answers

**Is CVE-2026-71394 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-71394 being exploited in the wild.

**How severe is CVE-2026-71394?** Informational severity, with a CVSS score of 6.5, published 10 August 2026.

**Which products and versions are affected?** Gnu Emacs through 30.2.

**Is there a fix for CVE-2026-71394?** A patch was published on 2026: Fixed after commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-71394 attacked?** It is attacked over the network, in an operating system.

**Am I affected by CVE-2026-71394?** Check whether you run Gnu Emacs at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in the sfnt_read_table_directory() function in src/sfnt.c, where an incorrect comparison variable in the read-length check allows improper validation of TrueType font table headers. A crafted font file claiming more table directory entries than actually present causes the parser to return a struct containing uninitialized heap memory. The attack is network-reachable; an attacker simply needs to trick a user into opening a malicious font-bearing file or visiting a site serving one. The flaw leads to use of uninitialized heap data in subsequent table lookups, resulting in information disclosure (heap leakage to defeat ASLR), crashes (denial of service), or on 32-bit targets, arbitrary memory access. The fix is available after commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf.

## Affected products

- GNU Emacs through 30.2

## Timeline

- 2026-08-10: disclosed
- 2026: patched: Fixed after commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf

## References

- [https://cert.pl/en/posts/2026/08/CVE-2026-71391](https://cert.pl/en/posts/2026/08/CVE-2026-71391)
- [https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html](https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html)

## Related threats

- [GNU Emacs command injection via TRAMP user field in filename](https://junglewise.ai/threats/cve-2026-108976-gnu-emacs-before-31-2-and-tramp-through-2-8-2-allows-os-command)
- [Emacs Flymake code execution via untrusted files](https://junglewise.ai/threats/cve-2026-96442-a-code-execution-flaw-was-found-in-emacs-affecting-versions-prior)
- [GNU Emacs arbitrary code execution in symbol handling](https://junglewise.ai/threats/cve-2026-96269-gnu-emacs-28-1-through-31-1-allows-arbitrary-code-execution-upon)
- [Emacs TRAMP command injection via malicious filenames](https://junglewise.ai/threats/cve-2026-79992-emacs-tramp-command-injection-via-malicious-filenames)
- [GNU Emacs integer overflow in PBM image loader](https://junglewise.ai/threats/cve-2026-77219-gnu-emacs-integer-overflow-in-pbm-image-loader)
