# CVE-2026-71391: Off-by-One Error in GNU Emacs for Android

- Severity: Medium 5.3 (CVSS:4.0, scored by CERT-PL) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-08-10T10:22:17.532Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## Description

GNU Emacs for Android contains an off-by-one error in the gvar table parser in src/sfnt.c. The shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison instead of greater-than-or-equal, allowing a crafted TrueType variable font to bypass the check and trigger a heap-based out-of-bounds read via memcpy. An attacker can deliver a malicious font file via email, EWW (Emacs Web Wowser), or documents with custom faces, causing Emacs to load it. This exposes heap memory contents which can be later used to defeat ASLR.


This issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe

(As written by CVE List.)

## Affected

- GNU Emacs: up to 30.2

## References

- <https://cert.pl/en/posts/2026/08/CVE-2026-71391> (third-party-advisory)
- <https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html> (product)
- <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe>

## Sources

- CVE List: [CVE-2026-71391](https://www.cve.org/CVERecord?id=CVE-2026-71391), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-71391](https://nvd.nist.gov/vuln/detail/CVE-2026-71391), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71391 · Whole record: https://cve.day/CVE-2026-71391.json · Rebuilt by cve.day 2026-11-25T22:59:31.987Z
