An issue was discovered in GNU Emacs through 28.2.
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 14 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 5 advisories
- RHSA-2024:1408 Released 2024-03-19 · Red Hat rating Moderateemacs security update
- Red Hat Enterprise Linux AppStream EUS (v.8.8) emacs-1:26.1-10.el8_8.4, emacs-common-1:26.1-10.el8_8.4, emacs-lucid-1:26.1-10.el8_8.4 +2
- Red Hat Enterprise Linux BaseOS EUS (v.8.8) emacs-1:26.1-10.el8_8.4, emacs-filesystem-1:26.1-10.el8_8.4
- RHSA-2024:1103 Released 2024-03-05 · Red Hat rating Moderateemacs security update
- Red Hat Enterprise Linux AppStream EUS (v.8.6) emacs-1:26.1-7.el8_6.3, emacs-common-1:26.1-7.el8_6.3, emacs-lucid-1:26.1-7.el8_6.3 +2
- Red Hat Enterprise Linux BaseOS EUS (v.8.6) emacs-1:26.1-7.el8_6.3, emacs-filesystem-1:26.1-7.el8_6.3
- RHSA-2023:7083 Released 2023-11-14 · Red Hat rating Moderateemacs security update
- Red Hat Enterprise Linux AppStream (v. 8) emacs-1:26.1-11.el8, emacs-common-1:26.1-11.el8, emacs-lucid-1:26.1-11.el8 +2
- Red Hat Enterprise Linux BaseOS (v. 8) emacs-1:26.1-11.el8, emacs-filesystem-1:26.1-11.el8
Show 2 more Red Hat advisories
- RHSA-2023:3481 Released 2023-06-06 · Red Hat rating Moderateemacs security update
- Red Hat Enterprise Linux Client (v. 7) emacs-1:24.3-23.el7_9.1, emacs-common-1:24.3-23.el7_9.1, emacs-filesystem-1:24.3-23.el7_9.1 +1
- Red Hat Enterprise Linux Client Optional (v. 7) emacs-el-1:24.3-23.el7_9.1, emacs-terminal-1:24.3-23.el7_9.1
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) emacs-1:24.3-23.el7_9.1, emacs-common-1:24.3-23.el7_9.1, emacs-el-1:24.3-23.el7_9.1 +2
- Red Hat Enterprise Linux Server (v. 7) emacs-1:24.3-23.el7_9.1, emacs-common-1:24.3-23.el7_9.1, emacs-filesystem-1:24.3-23.el7_9.1 +1
- Red Hat Enterprise Linux Server Optional (v. 7) emacs-el-1:24.3-23.el7_9.1, emacs-terminal-1:24.3-23.el7_9.1
- Red Hat Enterprise Linux Workstation (v. 7) emacs-1:24.3-23.el7_9.1, emacs-common-1:24.3-23.el7_9.1, emacs-filesystem-1:24.3-23.el7_9.1 +1
- Red Hat Enterprise Linux Workstation Optional (v. 7) emacs-el-1:24.3-23.el7_9.1, emacs-terminal-1:24.3-23.el7_9.1
- RHSA-2023:2626 Released 2023-05-09 · Red Hat rating Importantemacs security update
- Red Hat Enterprise Linux AppStream (v. 9) emacs-1:27.2-8.el9_2.1, emacs-common-1:27.2-8.el9_2.1, emacs-filesystem-1:27.2-8.el9_2.1 +2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2023:7083 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:2626 |
| Red Hat Enterprise Linux AppStream EUS (v.8.6) | Fixed | RHSA-2024:1103 |
| Red Hat Enterprise Linux AppStream EUS (v.8.8) | Fixed | RHSA-2024:1408 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2023:7083 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.6) | Fixed | RHSA-2024:1103 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.8) | Fixed | RHSA-2024:1408 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2023:3481 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2023:3481 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2023:3481 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2023:3481 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2023:3481 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2023:3481 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2023:3481 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-48339
- 2026-10-03 Alias added: GHSA-jwxq-f9vm-725g
References
More GNU Emacs vulnerabilities
- TI-2024-36089 In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke… CVSS 3.1HIGH 7.8
- TI-2023-12576 emacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to Emacs Lisp code… CVSS 3.1HIGH 7.8
- TI-2022-23951 GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in… CVSS 3.1CRITICAL 9.8
- TI-2024-26287 In Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev… CVSS 3.1CRITICAL 9.8
- TI-2007-05829 Stack-based buffer overflow in emacs allows user-assisted attackers to cause a denial of… CVSS 2.0HIGH 10.0
- TI-2017-10588 GNU Emacs before 25.3 allows remote attackers to execute arbitrary code via email with… CVSS 3.0HIGH 8.8
Sources
- CVE-2022-48339 · CVE Program
- CVE-2022-48339 · NVD
- FIRST EPSS
- GHSA-jwxq-f9vm-725g · GitHub Advisory Database · CC BY 4.0
- CVE-2022-48339 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences