CVE-2022-48339 json
An issue was discovered in GNU Emacs through 28.2.
published 2023-02-20 3 y ago modified 2026-06-17 4 mo ago also EUVD-2022-51039
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- emacs Debian 14, Debian 13, Debian 12 1:28.2+1-11
debian advisories DEBIAN-CVE-2022-48339
- emacs Ubuntu 22.04 LTS 1:27.1+1-3ubuntu5.2
- emacs Ubuntu Pro 20.04 LTS 1:26.3+1-1ubuntu2+esm1
- emacs24 Ubuntu Pro 16.04 LTS 24.5+1-6ubuntu1.1+esm2
- emacs25 Ubuntu Pro 18.04 LTS 25.2+1-6ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2022-48339
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- emacs RHEL 8 1:26.1-11.el8
- emacs-nox RHEL 8 1:26.1-11.el8
- emacs-lucid RHEL 8 1:26.1-11.el8
- emacs-common RHEL 8 1:26.1-11.el8
- emacs-terminal RHEL 8 1:26.1-11.el8
- emacs-filesystem RHEL 8 1:26.1-11.el8
- emacs RHEL 7 1:24.3-23.el7_9.1
- emacs-el RHEL 7 1:24.3-23.el7_9.1
red hat advisories RHSA-2024:1408RHSA-2024:1103RHSA-2023:7083RHSA-2023:3481RHSA-2023:2626
- emacs SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES for SAP 15 SP1 +12 more 25.3-150000.3.15.1
- emacs SLE Module for Desktop Applications 15 SP4, SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 27.2-150400.3.6.1
- emacs SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +5 more 24.3-25.12.1
suse advisories SUSE-SU-2023:0675-1SUSE-SU-2023:0598-1SUSE-SU-2023:0597-1
- emacs openSUSE Tumbleweed 28.2-2.1
opensuse advisories openSUSE-SU-2024:12721-1
- emacs AlmaLinux 8 1:26.1-11.el8
- emacs-nox AlmaLinux 8 1:26.1-11.el8
- emacs-lucid AlmaLinux 8 1:26.1-11.el8
- emacs-common AlmaLinux 8 1:26.1-11.el8
- emacs-terminal AlmaLinux 8 1:26.1-11.el8
- emacs-filesystem AlmaLinux 8 1:26.1-11.el8
- emacs AlmaLinux 9 1:27.2-8.el9_2.1
- emacs-nox AlmaLinux 9 1:27.2-8.el9_2.1
almalinux advisories ALSA-2023:7083ALSA-2023:2626
- emacs Rocky Linux 8 1:26.1-11.el8
rocky linux advisories RLSA-2023:7083
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-48339 updated cvss 7.8
emacs: command injection vulnerability in htmlfontify.el
-
Red Hat Enterprise Linux 6 emacs, emacs-el, emacs-nox, emacs-commonaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) emacs 26.1-11.el8, emacs-nox 26.1-11.el8, emacs-lucid 26.1-11.el8, emacs-common 26.1-11.el8, emacs-terminal 26.1-11.el8fixed: vendor fix RHSA-2023:7083
-
Red Hat Enterprise Linux AppStream (v. 9) emacs 27.2-8.el9_2.1, emacs-nox 27.2-8.el9_2.1, emacs-lucid 27.2-8.el9_2.1, emacs-common 27.2-8.el9_2.1, emacs-filesystem 27.2-8.el9_2.1fixed: vendor fix RHSA-2023:2626
-
Red Hat Enterprise Linux AppStream EUS (v.8.6) emacs 26.1-7.el8_6.3, emacs-nox 26.1-7.el8_6.3, emacs-lucid 26.1-7.el8_6.3, emacs-common 26.1-7.el8_6.3, emacs-terminal 26.1-7.el8_6.3fixed: vendor fix RHSA-2024:1103
-
Red Hat Enterprise Linux AppStream EUS (v.8.8) emacs 26.1-10.el8_8.4, emacs-nox 26.1-10.el8_8.4, emacs-lucid 26.1-10.el8_8.4, emacs-common 26.1-10.el8_8.4, emacs-terminal 26.1-10.el8_8.4fixed: vendor fix RHSA-2024:1408
-
Red Hat Enterprise Linux BaseOS (v. 8) emacs 26.1-11.el8, emacs-filesystem 26.1-11.el8fixed: vendor fix RHSA-2023:7083
-
Red Hat Enterprise Linux BaseOS EUS (v.8.6) emacs 26.1-7.el8_6.3, emacs-filesystem 26.1-7.el8_6.3fixed: vendor fix RHSA-2024:1103
-
Red Hat Enterprise Linux BaseOS EUS (v.8.8) emacs 26.1-10.el8_8.4, emacs-filesystem 26.1-10.el8_8.4fixed: vendor fix RHSA-2024:1408
show 1 moreshow fewer
-
Red Hat Enterprise Linux Client (v. 7) emacs 24.3-23.el7_9.1, emacs-nox 24.3-23.el7_9.1, emacs-common 24.3-23.el7_9.1, emacs-filesystem 24.3-23.el7_9.1 Red Hat Enterprise Linux Client Optional (v. 7) emacs-el 24.3-23.el7_9.1, emacs-terminal 24.3-23.el7_9.1 Red Hat Enterprise Linux ComputeNode Optional (v. 7) emacs 24.3-23.el7_9.1, emacs-el 24.3-23.el7_9.1, emacs-nox 24.3-23.el7_9.1, emacs-common 24.3-23.el7_9.1, emacs-terminal 24.3-23.el7_9.1 Red Hat Enterprise Linux Server (v. 7) emacs 24.3-23.el7_9.1, emacs-nox 24.3-23.el7_9.1, emacs-common 24.3-23.el7_9.1, emacs-filesystem 24.3-23.el7_9.1 Red Hat Enterprise Linux Server Optional (v. 7) emacs-el 24.3-23.el7_9.1, emacs-terminal 24.3-23.el7_9.1 Red Hat Enterprise Linux Workstation (v. 7) emacs 24.3-23.el7_9.1, emacs-nox 24.3-23.el7_9.1, emacs-common 24.3-23.el7_9.1, emacs-filesystem 24.3-23.el7_9.1fixed: vendor fix RHSA-2023:3481
+1 more productsfewer
Red Hat Enterprise Linux Workstation Optional (v. 7) emacs-el 24.3-23.el7_9.1, emacs-terminal 24.3-23.el7_9.1
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
1.14% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
References
-
git.savannah.gnu.org
/cgit/emacs.git/commit/?id=1b4dc4691c1f87fc970fbe568b43869a15ad0d4c
patch
-
debian.org
/security/2023/dsa-5360
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2023/05/msg00008.html
mailing-list
Sources
- CVE List CVE-2022-48339
- NVD CVE-2022-48339
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.