CVE-2022-48337

emacs: command execution via shell metacharacters

Published Feb 20, 2023 CVSS 3.1 · 9.8 Critical EPSS 1.6% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3416-1 emacs security update
Debian DSA Debian DSA DSA-5360-1 emacs security update
EUVD EUVD EUVD-2022-51037 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.
Ubuntu USN Ubuntu USN USN-7027-1 Emacs vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 18, 2025, 3:30 PM
Reserved
Feb 20, 2023, 12:00 AM
Status
Modified
Published
Feb 20, 2023, 11:15 PM
Modified
Jun 17, 2026, 5:15 AM
Severity
Moderate
Public date
Feb 21, 2023, 12:00 AM