CVE-2026-77219: Integer Overflow or Wraparound in GNU Emacs
Description
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.
CVSS v4.0
Score 6.9medium
Affected software
GNU
Emacs
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-77219 is an integer overflow vulnerability in GNU Emacs prior to version 31.0.91 affecting the PBM/PPM/PGM image loader. The vulnerability arises because the image loader multiplies image dimensions and channel count using signed integer arithmetic. When these values are sufficiently large, the multiplication result wraps to a negative number, bypassing bounds checks. This causes the pixel reader to access heap memory beyond the allocated buffer, resulting in an over-read. The leaked heap memory contents are then interpreted as pixel color values and rendered, potentially leaking sensitive memory contents to an attacker.
Potential Impact
An attacker can craft a malicious image file with large dimensions and an elevated max color index to trigger the integer overflow and cause the image loader to read and render heap memory contents beyond the intended buffer. This leads to information disclosure through memory leakage. There is no indication of code execution or privilege escalation. The vulnerability requires local access (attack vector is local) and user interaction (opening the crafted image).
Mitigation Recommendations
A fix is available in GNU Emacs version 31.0.91. Users should upgrade to version 31.0.91 or later to remediate this vulnerability. Patch status is confirmed by the versioning information indicating affected versions are prior to 31.0.91. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-20T18:25:46.943Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a88b714acd9273b49b41695
Added to database: 08/21/2026, 20:37:40 UTC
Last enriched: 10/02/2026, 15:54:34 UTC
Last updated: 10/05/2026, 18:56:37 UTC
Views: 64
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.