USN-7027-1: Emacs vulnerabilities

Publication date

19 September 2024

Overview

Several security issues were fixed in Emacs.


Packages

  • emacs - GNU Emacs editor (metapackage)
  • emacs24 - GNU Emacs editor
  • emacs25 - GNU Emacs editor (with GTK+ GUI support)

Details

It was discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04
LTS. (CVE-2022-45939)

Xi Lu discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS
and Ubuntu 22.04 LTS. (CVE-2022-48337)

Xi Lu discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 22.04 LTS. (CVE-2022-48338)

Xi Lu discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to...

It was discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04
LTS. (CVE-2022-45939)

Xi Lu discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS
and Ubuntu 22.04 LTS. (CVE-2022-48337)

Xi Lu discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 22.04 LTS. (CVE-2022-48338)

Xi Lu discovered that Emacs incorrectly handled input sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04
LTS. (CVE-2022-48339)

It was discovered that Emacs incorrectly handled filename sanitization. An
attacker could possibly use this issue to execute arbitrary commands. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04
LTS. (CVE-2023-28617)

It was discovered that Emacs incorrectly handled certain crafted files. An
attacker could possibly use this issue to crash the program, resulting in
a denial of service. This issue only affected Ubuntu 16.04 LTS, Ubuntu
18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-30203,
CVE-2024-30204, CVE-2024-30205)

It was discovered that Emacs incorrectly handled certain crafted files. An
attacker could possibly use this issue to execute arbitrary commands.
(CVE-2024-39331)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.04 noble emacs –  1:29.3+1-1ubuntu2+esm1  
emacs-bin-common –  1:29.3+1-1ubuntu2+esm1  
emacs-common –  1:29.3+1-1ubuntu2+esm1  
emacs-el –  1:29.3+1-1ubuntu2+esm1  
22.04 jammy emacs –  1:27.1+1-3ubuntu5.2
emacs-bin-common –  1:27.1+1-3ubuntu5.2
emacs-common –  1:27.1+1-3ubuntu5.2
emacs-el –  1:27.1+1-3ubuntu5.2
20.04 focal emacs –  1:26.3+1-1ubuntu2+esm1  
emacs-bin-common –  1:26.3+1-1ubuntu2+esm1  
emacs-common –  1:26.3+1-1ubuntu2+esm1  
emacs-el –  1:26.3+1-1ubuntu2+esm1  
18.04 bionic emacs25 –  25.2+1-6ubuntu0.1~esm2  
emacs25-bin-common –  25.2+1-6ubuntu0.1~esm2  
emacs25-common –  25.2+1-6ubuntu0.1~esm2  
emacs25-el –  25.2+1-6ubuntu0.1~esm2  
16.04 xenial emacs24 –  24.5+1-6ubuntu1.1+esm4  
emacs24-bin-common –  24.5+1-6ubuntu1.1+esm4  
emacs24-common –  24.5+1-6ubuntu1.1+esm4  
emacs24-el –  24.5+1-6ubuntu1.1+esm4  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›