{"id":"CVE-2026-77219","published":"2026-08-21T20:20:45Z","modified":"2026-11-08T14:08:55Z","title":"GNU Emacs < 31.0.91 Heap Over-Read via PBM/PPM/PGM Image Loader","vendor":"GNU","product":"Emacs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00128,"percentile":0.02547,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344","tags":["issue-tracking"]},{"url":"https://github.com/emacs-mirror/emacs/releases/tag/emacs-31.0.91","tags":["release-notes"]},{"url":"https://github.com/emacs-mirror/emacs/commit/b07e634e4cf45162ae0178e32092b040587f2c6c","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/gnu-emacs-heap-over-read-via-pbm-ppm-pgm-image-loader","tags":["third-party-advisory"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":0.51},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"gnu","affectedVersions":[{"vendor":"GNU","product":"Emacs","versions":["< 31.0.91"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T21:32:45.496424Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-64138","exploited":false,"provenance":"source"}}