← Terug naar overzicht

GNU Emacs versions before 31.0.91 contain an integer overflow vulnerability in the PBM/PPM/PGM image loader. The flaw arises from signed integer arithmetic used when multiplying image dimensions and channel counts, which can wrap to a negative value for sufficiently large inputs. This negative result bypasses bounds checks, allowing the pixel reader to access heap memory beyond the allocated buffer. An attacker can exploit this by supplying a crafted image with large dimensions and an elevated max color index. The over-read heap memory contents are then interpreted as pixel color values and rendered on screen, effectively leaking sensitive heap data. A fix is available in GNU Emacs 31.0.91.

Affected products

  • GNU Emacs

Related CVE's

  • CVE-2026-77219

Categories

  • Data Breach & Exfiltration
  • Enterprise Applications