cve.bz

CVE-2026-77219 gnu emacs: Out-of-bounds Read

6.9 mediumEPSS 0.1%

Medium (6.9) in gnu emacs. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

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:N

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-77219 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-77219?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-77219?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-77219 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-77219

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-77219](https://cve.bz/cve/badge/CVE-2026-77219.svg)](https://cve.bz/cve/CVE-2026-77219)

HTML:

<a href="https://cve.bz/cve/CVE-2026-77219"><img src="https://cve.bz/cve/badge/CVE-2026-77219.svg" alt="CVE-2026-77219"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU Emacsbefore 31.0.91

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14emacsno fix listedDEBIAN-CVE-2026-77219
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 morexemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-77219
Ubuntu26.10emacs, xemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-77219
UbuntuPro:16.04:LTSemacs24no fix listedUBUNTU-CVE-2026-77219
UbuntuPro:18.04:LTSemacs25no fix listedUBUNTU-CVE-2026-77219
UbuntuPro:20.04:LTS, Pro:22.04:LTS, Pro:24.04:LTS and 1 moreemacsno fix listedUBUNTU-CVE-2026-77219
Red Hatenterprise_linux:8::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-15.el8_10.2RHSA-2026:80506
Red Hatenterprise_linux:8::baseosemacs, emacs-filesystem1:26.1-15.el8_10.2RHSA-2026:80506
Red Hatenterprise_linux:9::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:27.2-18.el9_8.2RHSA-2026:80507
Red Hatenterprise_linux:10.2emacs, emacs-nw, emacs-lucid and 8 more1:29.4-14.el10_2.3RHSA-2026:84591
Red Hatenterprise_linux:10.3emacs, emacs-nw, emacs-lucid and 8 more1:29.4-17.el10_3RHSA-2026:98574
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 moreemacs27.2-150400.3.31.2SUSE-SU-2026:4083-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5emacs24.3-25.26.1SUSE-SU-2026:3993-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0emacs30.2-160000.3.1SUSE-SU-2026:23589-1
openSUSELeap 16.0emacs30.2-160000.3.1openSUSE-SU-2026:21711-1
AlmaLinux8emacs, emacs-nox, emacs-lucid and 3 more1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux9emacs, emacs-nox, emacs-lucid and 2 more1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux10emacs, emacs-nw, emacs-lucid and 2 more1:29.4-14.el10_2.3ALSA-2026:84591
Rocky Linux8emacs1:26.1-15.el8_10.2RLSA-2026:80506
Rocky Linux9emacs1:27.2-18.el9_8.2RLSA-2026:80507
Rocky Linux10emacs1:29.4-14.el10_2.3RLSA-2026:84591
Rocky Linux10emacs, emacs-nw, emacs-lucid and 7 more1:29.4-17.el10_3RLSA-2026:98574
Azure Linux3emacs29.4-6AZL-96986

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important severity flaw because rendering a specially crafted bitmap file can allow an attacker to disclose sensitive heap memory or trigger an application crash, potentially exposing confidential data from active editor buffers. Although successful exploitation requires user interaction to open or view a malicious image file, the potential compromise of co-located session data elevates the security impact above Moderate. In standard Red Hat Enterprise Linux deployments, exposure is primarily limited to interactive graphical desktop environments where Emacs processes untrusted external files.

Red Hat's mitigation

To mitigate this issue, users should avoid opening or displaying untrusted PBM, PPM, or PGM image files within GNU Emacs. Exercise caution when handling image files from unknown or unverified sources.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10emacs-1:29.4-14.el10_2.3Fixed 2026-10-19RHSA-2026:84591
Red Hat Enterprise Linux 8emacs-1:26.1-15.el8_10.2Fixed 2026-10-12RHSA-2026:80506
Red Hat Enterprise Linux 9emacs-1:27.2-18.el9_8.2Fixed 2026-10-12RHSA-2026:80507
Red Hat Enterprise Linux 6emacsOut of support scope
Red Hat Enterprise Linux 7emacsAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-77219.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High
  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON