CVE-2022-48337Gnu Emacs
Critical 9.8 No auth needed
Follow: this CVE · Gnu · Gnu Emacs We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Feb 20, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Emacs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gnu | emacs | ≤ 28.2 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- git.savannah.gnu.org Patch
- lists.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.debian.org Third Party Advisory