CVE-2026-77219

MEDIUM CVSS 4.0: 6.9 EPSS 0.13%
Updated Oct 12, 2026
Gnu
Parameter Value
CVSS 6.9 (MEDIUM)
Affected Versions before 31.0.91
Type CWE-125 (Out-of-bounds Read), CWE-190 (Integer Overflow)
Vendor Gnu
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products

gnu:emacs