CVE-2022-45939
Reported by mitre · Published November 28, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| emacs-devel | Amazon Linux | 1:28.1-2.amzn2023.0.2, 1:27.2-4.amzn2.0.2 |
| emacs-common | Amazon Linux | 1:28.1-2.amzn2023.0.2 |
| emacs | Alpine | 28.2-r3, 28.2-r1 |
| emacs-terminal | Amazon Linux | 1:27.2-4.amzn2.0.2 |
| emacs-filesystem | Amazon Linux | 1:27.2-4.amzn2.0.2 |
| emacs | gnu | 28.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | emacs-devel | 0 |
| amazon:2023 | emacs-common | 0 |
| amazon:2 | emacs-devel | 0 |
| alpine | emacs | 0, 0 |
| amazon:2 | emacs-terminal | 0 |
| amazon:2 | emacs-filesystem | 0 |
| n/a | n/a | * |
| amazon:2023 | emacs | 0 |
| amazon:2023 | emacs-filesystem | 0 |
| amazon:2023 | emacs-nox | 0 |
| amazon:2 | emacs-nox | 0 |
| amazon:2023 | emacs-lucid | 0 |
| amazon:2 | emacs-lucid | 0 |
| amazon:2023 | emacs-terminal | 0 |
| amazon:2 | emacs | 0 |
| amazon:2 | emacs-common | 0 |
Timeline
- Nov 28, 2022 CVE Published
- Nov 28, 2022 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 10, 2026 Security Advisory (8 in total, the first dated here)
- Jun 12, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-45939
vulnetix vdb fixes CVE-2022-45939
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-45939/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20221231 [SECURITY] [DLA 3257-1] emacs security update mailing-list
- FEDORA-2022-d69c7f95a4 vendor-advisory
- FEDORA-2022-e37f239f2e vendor-advisory
- DSA-5314 vendor-advisory