Vulnerability · Published Feb 20, 2023 · Assigned by mitre
CVE-2022-48339
High 7.8
In plain English
A high-severity security flaw in the emacs package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | emacs | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux:9 | emacs | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux:8 | emacs-common | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux:9 | emacs-common | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux:8 | emacs-filesystem | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux:9 | emacs-filesystem | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux:8 | emacs-lucid | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux:9 | emacs-lucid | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux:8 | emacs-nox | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux:9 | emacs-nox | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux:8 | emacs-terminal | 1:26.1-11.el8 | ALSA-2023:7083 |
| Debian:12 | emacs | 1:28.2+1-11 | DEBIAN-CVE-2022-48339 |
| Debian:13 | emacs | 1:28.2+1-11 | DEBIAN-CVE-2022-48339 |
| Debian:14 | emacs | 1:28.2+1-11 | DEBIAN-CVE-2022-48339 |
| Rocky Linux:8 | emacs | 1:26.1-11.el8 | RLSA-2023:7083 |
| Ubuntu:22.04:LTS | emacs | 1:27.1+1-3ubuntu5.2 | USN-7027-1 |
| Ubuntu:22.04:LTS | emacs | 1:27.1+1-3ubuntu5.2 | UBUNTU-CVE-2022-48339 |
| Ubuntu:22.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:24.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:25.10 | xemacs21 | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:26.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:26.10 | xemacs21 | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:22.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:24.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:25.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:26.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2022-48339 |
| Ubuntu:26.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2022-48339 |
Affected products (as reported)
Weakness: CWE-1116 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1b4dc4691c1f87fc970fbe568b43869a15ad0d4c
- 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