Vulnerability · Published Aug 21, 2026 · Assigned by VulnCheck

CVE-2026-77219GNU Emacs < 31.0.91 Heap Over-Read via PBM/PPM/PGM Image Loader

High 7.1

In plain English

A high-severity integer overflow in Emacs from GNU. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.1%top 97.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10emacs1:29.4-14.el10_2.3ALSA-2026:84591
AlmaLinux:8emacs1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux:9emacs1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux:10emacs-common1:29.4-14.el10_2.3ALSA-2026:84591
AlmaLinux:8emacs-common1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux:9emacs-common1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux:10emacs-filesystem1:29.4-14.el10_2.3ALSA-2026:84591
AlmaLinux:8emacs-filesystem1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux:9emacs-filesystem1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux:10emacs-lucid1:29.4-14.el10_2.3ALSA-2026:84591
AlmaLinux:8emacs-lucid1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux:9emacs-lucid1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux:8emacs-nox1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux:9emacs-nox1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux:10emacs-nw1:29.4-14.el10_2.3ALSA-2026:84591
AlmaLinux:8emacs-terminal1:26.1-15.el8_10.2ALSA-2026:80506
Debian:12emacsno fix listedDEBIAN-CVE-2026-77219
Debian:13emacsno fix listedDEBIAN-CVE-2026-77219
Debian:14emacsno fix listedDEBIAN-CVE-2026-77219
Rocky Linux:10emacs1:29.4-14.el10_2.3RLSA-2026:84591
Rocky Linux:8emacs1:26.1-15.el8_10.2RLSA-2026:80506
Rocky Linux:9emacs1:27.2-18.el9_8.2RLSA-2026:80507
Ubuntu:26.10emacsno fix listedUBUNTU-CVE-2026-77219
Ubuntu:22.04:LTSxemacs21no fix listedUBUNTU-CVE-2026-77219
Ubuntu:24.04:LTSxemacs21no fix listedUBUNTU-CVE-2026-77219
Ubuntu:26.04:LTSxemacs21no fix listedUBUNTU-CVE-2026-77219
Ubuntu:26.10xemacs21no fix listedUBUNTU-CVE-2026-77219
Ubuntu:22.04:LTSxemacs21-packagesno fix listedUBUNTU-CVE-2026-77219
Ubuntu:24.04:LTSxemacs21-packagesno fix listedUBUNTU-CVE-2026-77219
Ubuntu:26.04:LTSxemacs21-packagesno fix listedUBUNTU-CVE-2026-77219
Ubuntu:26.10xemacs21-packagesno fix listedUBUNTU-CVE-2026-77219

Affected products (as reported)

VendorProductVersions
GNU Emacs 0 – before 31.0.91

Weakness: CWE-190, CWE-125 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

References