Arbitrary Code Injection Affecting emacs-terminal package, versions <1:26.1-15.el8_10


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.53% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-EMACSTERMINAL-8444485
  • published29 Nov 2024
  • disclosed27 Nov 2024

Introduced: 27 Nov 2024

CVE-2024-53920  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade RHEL:8 emacs-terminal to version 1:26.1-15.el8_10 or higher.
This issue was patched in RHSA-2025:11030.

NVD Description

Note: Versions mentioned in the description apply only to the upstream emacs-terminal package and not the emacs-terminal package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion) on untrusted Emacs Lisp source code can trigger unsafe Lisp macro expansion that allows attackers to execute arbitrary code. (This unsafe expansion also occurs if a user chooses to enable on-the-fly diagnosis that byte compiles untrusted Emacs Lisp source code.)

CVSS Base Scores

version 3.1