CVE-2022-48339
Reported by mitre · Published February 20, 2023
An issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability. In the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed.
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 | errata.rockylinux.org | 26.1-11.el8.x86, 26.1-11.el8.src, 26.1-11.el8.aarch64 |
| emacs-terminal | Amazon Linux | 1:28.2-3.amzn2023.0.3, 1:27.2-4.amzn2.0.3 |
| emacs-nox | Amazon Linux | 1:28.2-3.amzn2023.0.3 |
| emacs-nox | errata.rockylinux.org | 26.1-11.el8.x86, 26.1-11.el8.aarch64 |
| emacs-lucid | errata.rockylinux.org | 26.1-11.el8.x86, 26.1-11.el8.aarch64 |
| emacs | Amazon Linux | 1:28.2-3.amzn2023.0.3, 1:27.2-4.amzn2.0.3 |
| emacs-common | errata.rockylinux.org | 26.1-11.el8.x86, 26.1-11.el8.aarch64 |
| emacs-terminal | errata.rockylinux.org | 26.1-11.el8.noarch |
| emacs-devel | Amazon Linux | 1:28.2-3.amzn2023.0.3, 1:27.2-4.amzn2.0.3 |
| emacs-filesystem | Amazon Linux | 1:27.2-4.amzn2.0.3 |
| emacs-lucid | Amazon Linux | 1:28.2-3.amzn2023.0.3, 1:27.2-4.amzn2.0.3 |
| emacs-debuginfo | errata.rockylinux.org | 26.1-11.el8.aarch64 |
5 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | emacs-terminal | 0 |
| amazon:2023 | emacs-nox | 0 |
| amazon:2023 | emacs | 0 |
| amazon:2 | emacs | 0 |
| amazon:2023 | emacs-devel | 0 |
| amazon:2 | emacs-filesystem | 0 |
| amazon:2 | emacs-lucid | 0 |
| amazon:2023 | emacs-lucid | 0 |
| amazon:2 | emacs-common | 0 |
| amazon:2 | emacs-devel | 0 |
| amazon:2 | emacs-terminal | 0 |
| n/a | n/a | * |
| amazon:2023 | emacs-common | 0 |
| amazon:2023 | emacs-filesystem | 0 |
| amazon:2 | emacs-nox | 0 |
Timeline
- Feb 20, 2023 CVE Published
- Feb 21, 2023 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- 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-48339
vulnetix vdb fixes CVE-2022-48339
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-48339/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