CVE-2022-48337
Reported by mitre · Published February 20, 2023
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.
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-nox | Amazon Linux | 1:28.2-3.amzn2023.0.3, 1:27.2-4.amzn2.0.3 |
| emacs-nox-debuginfo | errata.rockylinux.org | 26.1-11.el8.aarch64 |
| emacs-terminal | errata.rockylinux.org | 26.1-11.el8.noarch |
| emacs-debuginfo | errata.rockylinux.org | 26.1-11.el8.aarch64 |
| emacs-devel | Amazon Linux | 1:28.2-3.amzn2023.0.3 |
| emacs | errata.rockylinux.org | 26.1-11.el8.x86, 26.1-11.el8.src |
| emacs-filesystem | errata.rockylinux.org | 26.1-11.el8.noarch |
| emacs | Amazon Linux | 1:28.2-3.amzn2023.0.3 |
| emacs-terminal | Amazon Linux | 1:28.2-3.amzn2023.0.3 |
| emacs-lucid | errata.rockylinux.org | 26.1-11.el8.aarch64 |
| emacs | gnu | 28.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | emacs-nox | 0 |
| amazon:2023 | emacs-devel | 0 |
| amazon:2023 | emacs | 0 |
| amazon:2023 | emacs-terminal | 0 |
| amazon:2 | emacs-nox | 0 |
| n/a | n/a | * |
| amazon:2023 | emacs-common | 0 |
| amazon:2 | emacs-filesystem | 0 |
| amazon:2023 | emacs-filesystem | 0 |
| amazon:2 | emacs-common | 0 |
| amazon:2023 | emacs-lucid | 0 |
| amazon:2 | emacs-terminal | 0 |
| amazon:2 | emacs | 0 |
| amazon:2 | emacs-lucid | 0 |
| amazon:2 | emacs-devel | 0 |
Timeline
- Feb 20, 2023 CVE Published
- Feb 21, 2023 EPSS Score (30 in total, the first dated here)
- Mar 18, 2025 CVE Updated
- Mar 10, 2026 Distribution Patch (53 in total, the first dated here)
- Mar 10, 2026 Security Advisory (56 in total, the first dated here)
- May 24, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-48337
vulnetix vdb fixes CVE-2022-48337
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-48337/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-5360 vendor-advisory
- [debian-lts-announce] 20230509 [SECURITY] [DLA 3416-1] emacs security update mailing-list
- FEDORA-2023-5763445abe vendor-advisory
- FEDORA-2023-29df561f1d vendor-advisory