CVE-2026-77219: 
Emacs Analyse et atténuation des vulnérabilités

Aperçu

CVE-2026-77219 is an integer overflow vulnerability in the PBM/PPM/PGM image loader of GNU Emacs that enables heap memory disclosure and potential denial of service. All versions of GNU Emacs before 31.0.91 are affected. The vulnerability was published on August 21, 2026, with a patch released in the emacs-31.0.91 pretest. It carries a CVSS v3.1 base score of 7.1 (High) and a CVSS v4.0 base score of 6.9 (Medium) (Github Advisory, Emacs Release).

Détails techniques

The root cause is an integer overflow (CWE-190) in src/image.c within the pbm_load function, leading to an out-of-bounds read (CWE-125). The image loader computes the expected buffer size by multiplying image height, width, and channel count using signed integer arithmetic; when sufficiently large dimension values are supplied, the multiplication wraps to a negative number, bypassing the bounds check (p + expected_size > end). This causes the pixel reader to access heap memory beyond the allocated buffer, and the over-read bytes are interpreted as pixel color values and rendered on screen. The fix, committed as b07e634, replaces the naive multiplication with ckd_mul() (checked multiplication) to detect overflow before the bounds check (Emacs Commit, GNU Bug #81344).

Impact

Successful exploitation allows an unauthenticated attacker (with user interaction) to leak sensitive heap memory contents, which are visually rendered as pixel data on the victim's screen — potentially exposing cryptographic keys, credentials, or other in-memory secrets. Additionally, the out-of-bounds read can crash the Emacs process, resulting in a denial of service. The vulnerability is locally scoped with no integrity impact and no lateral movement potential beyond the affected Emacs process (Github Advisory).

Exploitabilité

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.13% (3rd percentile), indicating a low near-term exploitation probability. Exploitation requires user interaction — specifically, a victim must open a specially crafted PBM/PPM/PGM image file in Emacs (Github Advisory).

Étapes d’exploitation

  1. Craft a malicious image: Create a raw-format PBM, PPM, or PGM image file with extremely large width and height values and an elevated max color index (e.g., >255 to trigger two-byte mode), such that height * width * channels overflows a signed integer and wraps to a negative value.
  2. Deliver the image to the target: Send the crafted image to the victim via email attachment, file share, or web download, relying on social engineering to prompt the user to open it in Emacs.
  3. Trigger image loading: The victim opens the crafted image file in Emacs (e.g., via find-file or drag-and-drop), causing pbm_load in src/image.c to process the malicious header.
  4. Bypass bounds check: The integer overflow causes the computed expected_size to be negative, bypassing the p + expected_size > end guard, and the pixel reader reads heap memory past the end of the allocated buffer.
  5. Observe leaked memory: The over-read heap bytes are interpreted as pixel color values and rendered on screen, potentially exposing sensitive in-memory data to an attacker with visual or remote access to the display (Emacs Commit, GNU Bug #81344).

Indicateurs de compromis

  • File System: Presence of unusually large or malformed .pbm, .ppm, or .pgm files with anomalous header values (e.g., width/height values near INT_MAX) in user download directories or email attachments.
  • Logs: Emacs error messages such as "Invalid image size in image" in *Messages* buffer or system logs, which may indicate attempted exploitation that triggered the error path (patched versions) or silent over-read (unpatched versions).
  • Process: Unexpected Emacs crashes (SIGSEGV or SIGABRT) when opening image files, potentially indicating a heap corruption or out-of-bounds read condition.

Atténuation et solutions de contournement

Upgrade GNU Emacs to version 31.0.91 or later, which includes the fix in commit b07e634 replacing unsafe signed integer multiplication with overflow-checked ckd_mul() calls in pbm_load. Until patching is feasible, users should avoid opening PBM, PPM, or PGM image files from untrusted sources in Emacs, and use alternative image viewers for such files. Linux distribution users should apply vendor-provided security updates (e.g., Fedora, openSUSE packages) as they become available (Emacs Release, Emacs Commit).

Réactions de la communauté

The vulnerability was reported by Tristan Madani via the GNU bug tracker (bug #81344) and was promptly fixed by the Emacs maintainers. Linux distribution security teams (Fedora, openSUSE) issued advisories and updated packages shortly after disclosure. No significant broader media coverage or notable researcher commentary beyond the initial bug report and vendor patch has been identified (GNU Bug #81344).

Ressources additionnelles

État de correction de la distribution Linux

Disponibilité des correctifs sur les principales distributions Linux et leurs versions.

Debian

Affecté

bookworm

emacs

Affecté

sid

emacs

Affecté

trixie

emacs

Affecté

Ubuntu

Inconnu

bionic (esm-apps)

xemacs21

Inconnu

bionic (esm-infra)

emacs25

Inconnu

devel

emacs

Inconnu

focal (esm-apps)

emacs

Inconnu

jammy

emacs

Inconnu

jammy (esm-apps)

emacs

Inconnu

noble

emacs

Inconnu

noble (esm-apps)

emacs

Inconnu

RHEL / CentOS

Affecté

RHEL 8

emacs.src

Affecté

RHEL 9

emacs.src

Affecté

RHEL 10

emacs.src

Affecté

Source: Ce rapport a été généré à l’aide de l’IA

Apparenté Emacs Vulnérabilités:

Identifiant CVE

Sévérité

Score

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-108976HIGH7.8
  • Emacs logoEmacs
  • cpe:2.3:a:gnu:emacs
NonOuiOct 11, 2026
CVE-2026-96442HIGH7.8
  • Emacs logoEmacs
  • emacs25
NonOuiSep 23, 2026
CVE-2026-79992HIGH7.8
  • Emacs logoEmacs
  • emacs-debugsource
NonOuiAug 25, 2026
CVE-2026-96269HIGH7.5
  • Emacs logoEmacs
  • emacs-lucid
NonOuiSep 22, 2026
CVE-2026-77219MEDIUM6.9
  • Emacs logoEmacs
  • etags
NonOuiAug 21, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité dans le cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité pour évaluer votre niveau de risque et identifier les failles dans vos défenses.

Demander une évaluation

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités