Read the docs
TI-2022-23951 Aliases CVE-2022-48337GHSA-8hw9-jqh3-h2rx

GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in…

Priority MEDIUM 52CWE-78Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01617 76th percentileScored 2026-11-07
Fix Partial Red Hat: 4 advisoriesRed Hat: 7 fixed, 2 without a fix

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

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*up to 28.2VulnerableGNU
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*11.0VulnerableDebian
  • cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:* Versions up to 28.2 Vulnerable ·GNU
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian

Remediation

Red Hat 4 advisories

  • RHSA-2024:1408 Released 2024-03-19 · Red Hat rating Moderate
    emacs 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 Moderate
    emacs 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 Moderate
    emacs 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 Important
    emacs 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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo 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

  1. 2026-10-02 Threatist record created from CVE-2022-48337
  2. 2026-10-03 Alias added: GHSA-8hw9-jqh3-h2rx

References

Sources