Quick answers
- Is CVE-2026-77219 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-77219 being exploited in the wild.
- How severe is CVE-2026-77219?
- High severity, with a CVSS score of 7.1, published 21 August 2026.
- Which products and versions are affected?
- Gnu Emacs before 31.0.91.
- Is there a fix for CVE-2026-77219?
- A patch was published on 2026-08: Fix committed to Emacs repository (commit b07e634) by Paul Eggert Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-77219 attacked?
- It is attacked over the network or with local access, in a software library.
- Am I affected by CVE-2026-77219?
- 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 is an integer overflow in the PBM/PPM/PGM image loader in src/image.c. The loader calculates the expected pixel buffer size using 32-bit signed integer arithmetic (height * width * channels), which wraps to a negative value when given large dimensions (e.g., 20000x18000 pixels). The negative result bypasses the bounds check, allowing the subsequent pixel-reading loop to read past the allocated heap buffer without bounds validation. An attacker can trigger this by supplying a crafted image file; the vulnerability is reachable through multiple attack vectors including direct file opening, the built-in web browser (eww), email reader (Gnus), and inline image rendering in Org documents. A fix was committed to the Emacs repository (commit b07e634) that avoids the integer overflow by using proper size calculations.
Affected products
- GNU Emacs before 31.0.91
Timeline
- 2026-07-02: disclosed: Vulnerability reported to GNU bug tracker by Tristan Madani
- 2026-08: patched: Fix committed to Emacs repository (commit b07e634) by Paul Eggert