Ubuntu update for emacs



Risk High
Patch available YES
Number of vulnerabilities 9
CVE-ID CVE-2022-45939
CVE-2022-48337
CVE-2022-48338
CVE-2022-48339
CVE-2023-28617
CVE-2024-30203
CVE-2024-30204
CVE-2024-30205
CVE-2024-39331
CWE-ID CWE-78
CWE-345
CWE-676
Exploitation vector Network
Public exploit N/A
Vulnerable software
Ubuntu
Operating systems & Components / Operating system

emacs24-el (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs25-el (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs25-common (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs25-bin-common (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs25 (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs-el (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs-common (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs-bin-common (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs24-common (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs24 (Ubuntu package)
Operating systems & Components / Operating system package or component

emacs24-bin-common (Ubuntu package)
Operating systems & Components / Operating system package or component

Vendor Canonical Ltd.

Security Bulletin

This security bulletin contains information about 9 vulnerabilities.

1) OS Command Injection

EUVDB-ID: #VU69808

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-45939

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing name of a source-code file in lib-src/etags.c. A remote attacker can trick the victim to use the "ctags *" command  and execute arbitrary OS commands on the target system in a situation where the current working directory has contents that depend on untrusted input.


Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) OS Command Injection

EUVDB-ID: #VU72573

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-48337

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when parsing name of a source-code file in lib-src/etags.c. A remote attacker can trick the victim use the "etags -u *" command on the directory with attacker controlled content and execute arbitrary OS commands on the target system.


Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) OS Command Injection

EUVDB-ID: #VU72574

Risk: Low

CVSSv4.0: 5.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2022-48338

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a malicious gem to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation in the ruby-find-library-file() function. A malicious Ruby source file can execute arbitrary OS commands on the target system.


Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

4) OS Command Injection

EUVDB-ID: #VU72575

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-48339

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation within the hfy-istext-command() function when parsing the "file" and "srcdir" parameters, if a file name or directory name contains shell metacharacter. A remote attacker can execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

5) OS Command Injection

EUVDB-ID: #VU74578

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2023-28617

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation within the org-babel-execute:latex in ob-latex.el when processing file or directory names. A remote attacker can trick the victim to open a specially crafted file and execute arbitrary OS commands on the target system via a file name or directory name that contains shell metacharacters.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

6) Insufficient verification of data authenticity

EUVDB-ID: #VU87808

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2024-30203

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to Gnus treats inline MIME contents as trusted. A remote attacker can trick the victim to open a specially crafted file and execute arbitrary code on the system.

Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

7) Insufficient verification of data authenticity

EUVDB-ID: #VU87809

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2024-30204

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to LaTeX preview is enabled by default for e-mail attachments. A remote attacker can trick the victim to open a specially crafted file and execute arbitrary code on the system.

Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

8) Insufficient verification of data authenticity

EUVDB-ID: #VU87804

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2024-30205

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to Emacs in Org mode considers contents of remote files to be trusted. A remote attacker can trick the victim to open a specially crafted file and execute arbitrary code on the system.

Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

9) Use of Potentially Dangerous Function

EUVDB-ID: #VU93118

Risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2024-39331

CWE-ID: CWE-676 - Use of Potentially Dangerous Function

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an unsafe function. A remote attacker can execute arbitrary OS commands on the system.

Mitigation

Update the affected package emacs to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 24.04

emacs24-el (Ubuntu package): before Ubuntu Pro

emacs25-el (Ubuntu package): before Ubuntu Pro

emacs25-common (Ubuntu package): before Ubuntu Pro

emacs25-bin-common (Ubuntu package): before Ubuntu Pro

emacs25 (Ubuntu package): before Ubuntu Pro

emacs-el (Ubuntu package): before Ubuntu Pro

emacs-common (Ubuntu package): before Ubuntu Pro

emacs-bin-common (Ubuntu package): before Ubuntu Pro

emacs (Ubuntu package): before Ubuntu Pro

emacs24-common (Ubuntu package): before Ubuntu Pro

emacs24 (Ubuntu package): before Ubuntu Pro (Infra-only)

emacs24-bin-common (Ubuntu package): before Ubuntu Pro (Infra-only)

CPE2.3 External links

https://ubuntu.com/security/notices/USN-7027-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###