CVE-2022-45939
published high CVSS 3.1 · 7.8emacs: ctags local command execution vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-1928 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-108 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | emacs | Advisory build | 1:26.1-9.el8 | ALSA-2023:3042 |
| Alpine Linux | edge | emacs | Fixed | 28.2-r3 | Package fix record |
| Debian | bullseye | emacs | Advisory build | 1:27.1+1-3.1+deb11u1 | DSA-5314-1 |
| Oracle Linux | 8 | emacsaarch64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacsaarch64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | emacs-common | Advisory build | 1:26.1-9.el8 | ALSA-2023:3042 |
| AlmaLinux | 8 | emacs-filesystem | Advisory build | 1:26.1-9.el8 | ALSA-2023:3042 |
| AlmaLinux | 8 | emacs-lucid | Advisory build | 1:26.1-9.el8 | ALSA-2023:3042 |
| AlmaLinux | 8 | emacs-nox | Advisory build | 1:26.1-9.el8 | ALSA-2023:3042 |
| AlmaLinux | 8 | emacs-terminal | Advisory build | 1:26.1-9.el8 | ALSA-2023:3042 |
| AlmaLinux | 9 | emacs | Advisory build | 1:27.2-8.el9 | ALSA-2023:2366 |
| AlmaLinux | 9 | emacs-common | Advisory build | 1:27.2-8.el9 | ALSA-2023:2366 |
| AlmaLinux | 9 | emacs-filesystem | Advisory build | 1:27.2-8.el9 | ALSA-2023:2366 |
| AlmaLinux | 9 | emacs-lucid | Advisory build | 1:27.2-8.el9 | ALSA-2023:2366 |
| AlmaLinux | 9 | emacs-nox | Advisory build | 1:27.2-8.el9 | ALSA-2023:2366 |
| Alpine Linux | v3.17 | emacs | Fixed | 28.2-r1 | Package fix record |
| Alpine Linux | v3.18 | emacs | Fixed | 28.2-r3 | Package fix record |
| Alpine Linux | v3.19 | emacs | Fixed | 28.2-r3 | Package fix record |
| Alpine Linux | v3.20 | emacs | Fixed | 28.2-r3 | Package fix record |
| Alpine Linux | v3.21 | emacs | Fixed | 28.2-r3 | Package fix record |
| Alpine Linux | v3.22 | emacs | Fixed | 28.2-r3 | Package fix record |
| Alpine Linux | v3.23 | emacs | Fixed | 28.2-r3 | Package fix record |
| Alpine Linux | v3.24 | emacs | Fixed | 28.2-r3 | Package fix record |
| Debian | buster | emacs | Advisory build | 1:26.1+1-3.2+deb10u3 | DLA-3257-1 |
| Oracle Linux | 8 | emacsx86_64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-commonaarch64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-commonx86_64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-filesystemaarch64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-filesystemx86_64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-lucidaarch64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-lucidx86_64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-noxaarch64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-noxx86_64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-terminalaarch64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 8 | emacs-terminalx86_64 | Advisory build | 1:26.1-9.el8 | ELSA-2023-3042 |
| Oracle Linux | 9 | emacsaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacsx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-commonaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-commonx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-filesystemaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-filesystemx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-lucidaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-lucidx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-noxaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Oracle Linux | 9 | emacs-noxx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2366 |
| Red Hat Enterprise Linux | RHEL-8 | emacsaarch64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacsppc64le | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacsppc64le | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacss390x | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacss390x | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacssrc | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacssrc | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacsx86_64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacsx86_64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonaarch64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonaarch64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonppc64le | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonppc64le | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commons390x | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commons390x | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonx86_64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonx86_64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfoaarch64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfoaarch64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfoppc64le | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfoppc64le | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfos390x | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfos390x | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfox86_64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-common-debuginfox86_64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfoaarch64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfoaarch64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfoppc64le | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfoppc64le | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfos390x | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfos390x | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfox86_64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debuginfox86_64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsourceaarch64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsourceaarch64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsourceppc64le | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsourceppc64le | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsources390x | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsources390x | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsourcex86_64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-debugsourcex86_64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-filesystemnoarch | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-filesystemnoarch | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucidaarch64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucidaarch64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucidppc64le | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucidppc64le | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucids390x | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucids390x | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucidx86_64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucidx86_64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucid-debuginfoaarch64 | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucid-debuginfoaarch64 | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucid-debuginfoppc64le | Advisory build | 1:26.1-7.el8_6.3 | RHSA-2024:1103 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-lucid-debuginfoppc64le | Advisory build | 1:26.1-9.el8 | RHSA-2023:3042 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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 ctags program. For example, a victim may use the "ctags *" command (suggested in the ctags documentation) in a situation where the current working directory has contents that depend on untrusted input.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
5- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51
- [debian-lts-announce] 20221231 [SECURITY] [DLA 3257-1] emacs security update https://lists.debian.org/debian-lts-announce/2022/12/msg00046.html
- FEDORA-2022-e37f239f2e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FOSK3J7BBAEI4IITW2DRUKLQYUZYKH6Y/
- FEDORA-2022-d69c7f95a4 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GOXIH2FDEQJEAARE52C3GHTLGQFBYPIB/
- DSA-5314 https://www.debian.org/security/2023/dsa-5314
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 21a40fb2b60811225538525be2f79e1c02741678bc5eaea4179fca619f6c77b6
- Ingested
- 23 Sep 2026, 08:03:28 UTC
- Source record
- Official CVE record