Skip to main content
EPSS 0.1%top 98%

CVE-2026-77219: Integer Overflow or Wraparound in GNU Emacs

0
Medium
Published: 08/21/2026 (08/21/2026, 20:20:45 UTC)
Source: CVE Database V5
Vendor/Project: GNU
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

GNU

Emacs

Affected versions
>=0 <31.0.91
GitHub Actionsmore threats →cve
Emacs
pkg:github/Emacs
Affected versions
>=0 <31.0.91

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

AILast updated: 10/02/2026, 15:54:34 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses