Cloudanix VulnDB

CVE-2024-30204

None

CVSS

—

EPSS

0.5%

Published

Mar 25, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A default setting in the Emacs email tool could let dangerous attachments run automatically when opened, putting users at risk.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Other
Component
Application
Class
Misconfiguration
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Default enablement of LaTeX preview for email attachments in Emacs allows automatic processing of potentially untrusted content.

Why it matters to the business

Organizations using Emacs for email may face increased risk of exposure to malicious attachments without explicit user action, potentially leading to code execution or system compromise.

How an attack unfolds

An attacker crafts a malicious LaTeX attachment, sends it via email; the recipient's Emacs with org-mode automatically previews it due to the default setting, executing the embedded code.

How to fix it

Upgrade Emacs to version 29.3 or later, or apply the fix from commit 5ff4d54c6fa527f478035467ffe0a82a81a92320 in org-mode.

How to confirm the fix worked

Verify Emacs version is 29.3 or higher; check org-mode configuration for LaTeX preview settings on attachments.

Typical attack path

  1. Send malicious email with LaTeX attachment
  2. Victim opens email in Emacs
  3. LaTeX preview triggers automatically
  4. Malicious code executes

How to detect it

Review email logs and Emacs process activity for unexpected LaTeX compilations or executions triggered by attachments.

What your security team should do

  • Update Emacs and org-mode to fixed versions immediately
  • Review and disable LaTeX preview for email attachments if not needed
  • Monitor for unusual process executions from Emacs

The record

In Emacs before 29.3, LaTeX preview is enabled by default for e-mail attachments.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 emacs 0 1:26.1+1-3.2+deb10u5
Debian:10 org-mode 0 9.1.14+dfsg-3+deb10u2
Debian:11 emacs 0 1:27.1+1-3.1+deb11u3
Debian:11 org-mode 0 9.4.0+dfsg-1+deb11u2
Debian:12 emacs 0 1:28.2+1-15+deb12u1
Debian:12 org-mode 0 No fix
Debian:13 emacs 0 1:29.3+1-1
Debian:13 org-mode 0 9.6.23+dfsg-1
Debian:14 emacs 0 1:29.3+1-1
Debian:14 org-mode 0 9.6.23+dfsg-1
Mageia:9 emacs 0 28.2-10.1.mga9
Red Hat:enterprise_linux:9::appstream emacs 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-common 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-common-debuginfo 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-debuginfo 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-debugsource 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-filesystem 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-lucid 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-lucid-debuginfo 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-nox 0 1:27.2-10.el9
Red Hat:enterprise_linux:9::appstream emacs-nox-debuginfo 0 1:27.2-10.el9
Rocky Linux:9 emacs 0 1:27.2-10.el9_4
SUSE:Enterprise Storage 7.1 emacs 0 25.3-150000.3.22.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS emacs 0 25.3-150000.3.22.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS emacs 0 25.3-150000.3.22.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 emacs 0 27.2-150400.3.11.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 emacs 0 27.2-150400.3.11.1
SUSE:Linux Enterprise Server 12 SP5 emacs 0 24.3-25.17.1
SUSE:Linux Enterprise Server 15 SP2-LTSS emacs 0 25.3-150000.3.22.1
SUSE:Linux Enterprise Server 15 SP3-LTSS emacs 0 25.3-150000.3.22.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 emacs 0 24.3-25.17.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 emacs 0 25.3-150000.3.22.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 emacs 0 25.3-150000.3.22.1
Ubuntu:16.04:LTS xemacs21 0 No fix
Ubuntu:16.04:LTS xemacs21-packages 0 No fix
Ubuntu:18.04:LTS xemacs21 0 No fix
Ubuntu:18.04:LTS xemacs21-packages 0 No fix
Ubuntu:20.04:LTS emacs 0 No fix
Ubuntu:20.04:LTS xemacs21 0 No fix
Ubuntu:20.04:LTS xemacs21-packages 0 No fix
Ubuntu:22.04:LTS emacs 0 No fix
Ubuntu:22.04:LTS emacs 0 1:27.1+1-3ubuntu5.2
Ubuntu:22.04:LTS xemacs21 0 No fix
Ubuntu:22.04:LTS xemacs21-packages 0 No fix
Ubuntu:24.04:LTS emacs 0 No fix
Ubuntu:24.04:LTS xemacs21 0 No fix
Ubuntu:24.04:LTS xemacs21-packages 0 No fix
Ubuntu:24.10 xemacs21 0 No fix
Ubuntu:24.10 xemacs21-packages 0 No fix
Ubuntu:25.04 xemacs21 0 No fix
Ubuntu:25.04 xemacs21-packages 0 No fix
Ubuntu:25.10 xemacs21 0 No fix
Ubuntu:25.10 xemacs21-packages 0 No fix
Ubuntu:Pro:16.04:LTS emacs24 0 No fix
Ubuntu:Pro:16.04:LTS emacs24 0 24.5+1-6ubuntu1.1+esm4
Ubuntu:Pro:16.04:LTS xemacs21 0 No fix
Ubuntu:Pro:16.04:LTS xemacs21-packages 0 No fix
Ubuntu:Pro:18.04:LTS emacs25 0 No fix
Ubuntu:Pro:18.04:LTS emacs25 0 25.2+1-6ubuntu0.1~esm2
Ubuntu:Pro:18.04:LTS xemacs21 0 No fix
Ubuntu:Pro:18.04:LTS xemacs21-packages 0 No fix
Ubuntu:Pro:20.04:LTS emacs 0 1:26.3+1-1ubuntu2+esm1
Ubuntu:Pro:20.04:LTS xemacs21 0 No fix
Ubuntu:Pro:20.04:LTS xemacs21-packages 0 No fix
Ubuntu:Pro:24.04:LTS emacs 0 1:29.3+1-1ubuntu2+esm1
openSUSE:Leap 15.5 emacs 0 27.2-150400.3.11.1

Related vulnerabilities