CVE-2022-45939

emacs: ctags local command execution vulnerability

Published Nov 28, 2022 CVSS 3.1 · 7.8 High EPSS < 1% 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 ctags program. For example, a victim may use the "ctags *" command (suggested in the ctags 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-3257-1 emacs security update
Debian DSA Debian DSA DSA-5314-1 emacs security update
EUVD EUVD EUVD-2022-48781 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 ctags program. For example, a victim may use the "ctags *" command (suggested in the ctags documentation) in a situation where the current working directory has contents that depend on untrusted input.
Ubuntu USN Ubuntu USN USN-5781-1 Emacs vulnerability
Ubuntu USN Ubuntu USN USN-7027-1 Emacs vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 28, 2025, 6:12 PM
Reserved
Nov 28, 2022, 12:00 AM
Status
Modified
Published
Nov 28, 2022, 6:15 AM
Modified
Jun 17, 2026, 5:11 AM
Severity
Moderate
Public date
Nov 27, 2022, 12:00 AM