GNU Emacs < 31.0.91 Heap Over-Read via PBM/PPM/PGM Image Loader
CVE-2026-77219Published 21 Aug 2026, 20:20 UTC
Real-world risk
2.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.9
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from VulnCheck)
GNU Emacs before 31.0.91 contains an integer overflow in the PBM/PPM/PGM image loader that allows an attacker to leak heap memory contents by supplying a crafted image with large dimensions and an elevated max color index. The image loader multiplies image dimensions and channel count using signed integer arithmetic; for sufficiently large values, the result wraps to a negative number, bypassing the bounds check and causing the pixel reader to access heap memory past the end of the allocated buffer. The over-read contents are interpreted as pixel color values and rendered on screen.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| emacsNiche | < 31.0.91 | 31.0.91 |
What to do
Update to a fixed version: 31.0.91.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.1% chance of exploitation in 30 days (percentile 3), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.35 × threat 0.852.380
- Rounded to one decimal between 0.1 and 102.4
Exploitation and evidence timeline
- 21 Aug 2026 Published
- 3 Dec 2026 Risk 2.4 (cvss fallback)
Weakness
CWE-125, CWE-190
References
- https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344issue-tracking
- https://github.com/emacs-mirror/emacs/releases/tag/emacs-31.0.91release-notes
- https://github.com/emacs-mirror/emacs/commit/b07e634e4cf45162ae0178e32092b040587f2c6cpatch
- https://www.vulncheck.com/advisories/gnu-emacs-heap-over-read-via-pbm-ppm-pgm-image-loaderthird-party-advisory
- CVE-2026-77219 on CVE.org