CVE-2026-77219GNU Emacs Integer Overflow or Wraparound
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 6.9 (MEDIUM)
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:NAttack VectorLocal
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionPassive
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)None
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 7.1)
CVSS v3.1 Base Metrics — Score 7.1 (HIGH)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HAttack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- GNU Emacs < 31.0.91
- GNU Emacs 31.0.91
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run GNU Emacs and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Aug 21, 2026Published
- Oct 1, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new GNU Emacs CVEsYou are reading CVE-2026-77219. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Issue Trackinghttps://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344
- Referencehttps://github.com/emacs-mirror/emacs/releases/tag/emacs-31.0.91
- Patchhttps://github.com/emacs-mirror/emacs/commit/b07e634e4cf45162ae0178e32092b040587f2c6c
- Referencehttps://www.vulncheck.com/advisories/gnu-emacs-heap-over-read-via-pbm-ppm-pgm-image-loader
Data last checked: Nov 25, 2026 02:10 UTC