Vulnerability · Published Feb 20, 2023 · Assigned by mitre

CVE-2022-48337

Critical 9.8

In plain English

A critical-severity OS command injection in the emacs package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.6%top 23.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system C library function in its implementation of the etags program. For example, a victim may use the "etags -u *" command (suggested in the etags documentation) in a situation where the current working directory has contents that depend on untrusted input.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8emacs1:26.1-11.el8ALSA-2023:7083
AlmaLinux:9emacs1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux:8emacs-common1:26.1-11.el8ALSA-2023:7083
AlmaLinux:9emacs-common1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux:8emacs-filesystem1:26.1-11.el8ALSA-2023:7083
AlmaLinux:9emacs-filesystem1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux:8emacs-lucid1:26.1-11.el8ALSA-2023:7083
AlmaLinux:9emacs-lucid1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux:8emacs-nox1:26.1-11.el8ALSA-2023:7083
AlmaLinux:9emacs-nox1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux:8emacs-terminal1:26.1-11.el8ALSA-2023:7083
Debian:12emacs1:28.2+1-11DEBIAN-CVE-2022-48337
Debian:13emacs1:28.2+1-11DEBIAN-CVE-2022-48337
Debian:14emacs1:28.2+1-11DEBIAN-CVE-2022-48337
Rocky Linux:8emacs1:26.1-11.el8RLSA-2023:7083
Ubuntu:22.04:LTSemacs1:27.1+1-3ubuntu5.2USN-7027-1
Ubuntu:22.04:LTSemacs1:27.1+1-3ubuntu5.2UBUNTU-CVE-2022-48337
Ubuntu:22.04:LTSxemacs21no fix listedUBUNTU-CVE-2022-48337
Ubuntu:24.04:LTSxemacs21no fix listedUBUNTU-CVE-2022-48337
Ubuntu:25.10xemacs21no fix listedUBUNTU-CVE-2022-48337
Ubuntu:26.04:LTSxemacs21no fix listedUBUNTU-CVE-2022-48337
Ubuntu:26.10xemacs21no fix listedUBUNTU-CVE-2022-48337
Ubuntu:22.04:LTSxemacs21-packagesno fix listedUBUNTU-CVE-2022-48337
Ubuntu:24.04:LTSxemacs21-packagesno fix listedUBUNTU-CVE-2022-48337
Ubuntu:25.10xemacs21-packagesno fix listedUBUNTU-CVE-2022-48337
Ubuntu:26.04:LTSxemacs21-packagesno fix listedUBUNTU-CVE-2022-48337
Ubuntu:26.10xemacs21-packagesno fix listedUBUNTU-CVE-2022-48337

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References