CVE-2026-77219

high
EUVD alias: EUVD-2026-64138
Assigned by CNA: vulncheck
Published 2026-08-21 · Modified 2026-08-21
CVSS v3
7.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
CVSS v4 NEW
6.9
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
VIR risk
7.1

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.

Predictions

Exploit likelihood
70%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-77219 NameCVE-2026-77219 DescriptionGNU 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…

CVE-2026-77219

NameCVE-2026-77219
DescriptionGNU 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
emacs (PTS)bullseye1:27.1+1-3.1+deb11u5vulnerable
bullseye (security)1:27.1+1-3.1+deb11u6vulnerable
bookworm, bookworm (security)1:28.2+1-15+deb12u4vulnerable
trixie1:30.1+1-6vulnerable
forky, sid1:30.2+1-11vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
emacssource(unstable)(unfixed)

Notes

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344
Fixed by: https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=b07e634e4cf45162ae0178e32092b040587f2c6c (emacs-31.0.91)

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344Fixed by: https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=b07e634e4cf45162ae0178e32092b040587f2c6c (emacs-31.0.91)

OS impact

debian Debian Affected 5 releases
VersionStatusFixed in
trixie Affected
sid Affected
forky Affected
bullseye Affected
bookworm Affected

References

CWEs

CWE-125 CWE-190

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.