Vulnerabilities / CVE-2022-48337

critical

CVE-2022-48337

emacs: command execution via shell metacharacters

Published Modified CWE 78
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, CBL-Mariner, Photon OS. Rated lower by AlmaLinux (high), Amazon (high), Red Hat (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (medium).

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 and fixed versions

SourcePackageFixed in
CBL-Mariner 2.0emacs0:28.2-4.cm2
Photon OS 3.0emacs27.1-3.ph3
Photon OS 4.0emacs27.1-4.ph4
Photon OS 5.0emacs28.2-2.ph5
alma 8emacs, emacs-common, emacs-filesystem and 3 more1:26.1-11.el8
alma 9emacs, emacs-common, emacs-filesystem and 2 more1:27.2-8.el9_2.1
amazon linux 1emacs, emacs-common, emacs-debuginfo and 1 more1:24.3-20.25.amzn1
amazon linux 2emacs, emacs-common, emacs-debuginfo and 5 more1:27.2-4.amzn2.0.3
amazon linux 2023emacs, emacs-common, emacs-common-debuginfo and 9 more1:28.2-3.amzn2023.0.3
debian 10emacs1:26.1+1-3.2+deb10u4
debian 11emacs1:27.1+1-3.1+deb11u2
debian 12emacs1:28.2+1-11
Show all 82 entries from 28 sources
SourcePackageFixed in
CBL-Mariner 2.0emacs0:28.2-4.cm2
Photon OS 3.0emacs27.1-3.ph3
Photon OS 4.0emacs27.1-4.ph4
Photon OS 5.0emacs28.2-2.ph5
alma 8emacs1:26.1-11.el8
alma 8emacs-common1:26.1-11.el8
alma 8emacs-filesystem1:26.1-11.el8
alma 8emacs-lucid1:26.1-11.el8
alma 8emacs-nox1:26.1-11.el8
alma 8emacs-terminal1:26.1-11.el8
alma 9emacs1:27.2-8.el9_2.1
alma 9emacs-common1:27.2-8.el9_2.1
alma 9emacs-filesystem1:27.2-8.el9_2.1
alma 9emacs-lucid1:27.2-8.el9_2.1
alma 9emacs-nox1:27.2-8.el9_2.1
amazon linux 1emacs1:24.3-20.25.amzn1
amazon linux 1emacs-common1:24.3-20.25.amzn1
amazon linux 1emacs-debuginfo1:24.3-20.25.amzn1
amazon linux 1emacs-el1:24.3-20.25.amzn1
amazon linux 2emacs1:27.2-4.amzn2.0.3
amazon linux 2emacs-common1:27.2-4.amzn2.0.3
amazon linux 2emacs-debuginfo1:27.2-4.amzn2.0.3
amazon linux 2emacs-devel1:27.2-4.amzn2.0.3
amazon linux 2emacs-filesystem1:27.2-4.amzn2.0.3
amazon linux 2emacs-lucid1:27.2-4.amzn2.0.3
amazon linux 2emacs-nox1:27.2-4.amzn2.0.3
amazon linux 2emacs-terminal1:27.2-4.amzn2.0.3
amazon linux 2023emacs1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-common1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-common-debuginfo1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-debuginfo1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-debugsource1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-devel1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-filesystem1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-lucid1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-lucid-debuginfo1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-nox1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-nox-debuginfo1:28.2-3.amzn2023.0.3
amazon linux 2023emacs-terminal1:28.2-3.amzn2023.0.3
debian 10emacs1:26.1+1-3.2+deb10u4
debian 11emacs1:27.1+1-3.1+deb11u2
debian 12emacs1:28.2+1-11
debian 13emacs1:28.2+1-11
debian 14emacs1:28.2+1-11
echoemacs1:28.2+1-11
Oracle Linux 8emacs1:26.1-11.el8
Oracle Linux 8emacs-common1:26.1-11.el8
Oracle Linux 8emacs-filesystem1:26.1-11.el8
Oracle Linux 8emacs-lucid1:26.1-11.el8
Oracle Linux 8emacs-nox1:26.1-11.el8
Oracle Linux 8emacs-terminal1:26.1-11.el8
Oracle Linux 9emacs1:27.2-8.el9_2.1
Oracle Linux 9emacs-common1:27.2-8.el9_2.1
Oracle Linux 9emacs-filesystem1:27.2-8.el9_2.1
Oracle Linux 9emacs-lucid1:27.2-8.el9_2.1
Oracle Linux 9emacs-nox1:27.2-8.el9_2.1
rapidfort amazon linux 2023emacs1:28.2-3.amzn2023.0.3
rapidfort amazon linux 2023emacs-common1:28.2-3.amzn2023.0.3
rapidfort amazon linux 2023emacs-devel1:28.2-3.amzn2023.0.3
rapidfort amazon linux 2023emacs-filesystem1:28.2-3.amzn2023.0.3
rapidfort amazon linux 2023emacs-lucid1:28.2-3.amzn2023.0.3
rapidfort amazon linux 2023emacs-nox1:28.2-3.amzn2023.0.3
rapidfort amazon linux 2023emacs-terminal1:28.2-3.amzn2023.0.3
rapidfort Oracle Linux 9emacs1:27.2-8.el9_2.1
rapidfort Oracle Linux 9emacs-common1:27.2-8.el9_2.1
rapidfort Oracle Linux 9emacs-filesystem1:27.2-8.el9_2.1
rapidfort Oracle Linux 9emacs-lucid1:27.2-8.el9_2.1
rapidfort Oracle Linux 9emacs-nox1:27.2-8.el9_2.1
rapidfort ubuntu 20.04emacs1:27.1+1-3ubuntu5.2
rapidfort ubuntu 22.04emacs1:27.1+1-3ubuntu5.2
rapidfort ubuntu 24.04emacs1:27.1+1-3ubuntu5.2
Red Hatemacsno fix listed
Red Hatemacs-commonno fix listed
Red Hatemacs-elno fix listed
Red Hatemacs-filesystemno fix listed
Red Hatemacs-noxno fix listed
Red Hatemacs-terminalno fix listed
rocky 8emacs-filesystem1:26.1-11.el8
ubuntu 16.04-ESMemacs2424.5+1-6ubuntu1.1+esm4
ubuntu 18.04-ESMemacs2525.2+1-6ubuntu0.1~esm2
ubuntu 20.04-ESMemacs1:26.3+1-1ubuntu2+esm1
ubuntu 22.04emacs1:27.1+1-3ubuntu5.2

References

All 24 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.