GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 7 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- 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 4 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 1 more Red Hat advisories
- 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 7 | Affected | No fix planned: Will not fix |
| 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 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-48337
- 2026-10-03 Alias added: GHSA-8hw9-jqh3-h2rx
References
Sources
- CVE-2022-48337 · CVE Program
- CVE-2022-48337 · NVD
- FIRST EPSS
- GHSA-8hw9-jqh3-h2rx · GitHub Advisory Database · CC BY 4.0
- CVE-2022-48337 · 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