# CVE-2022-48337: GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/eta…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.65%, higher than 77% of CVEs (2026-12-01)
- Published: 2023-02-20T00:00:00.000Z
- Modified: 2026-06-17T05:15:11.137Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu emacs: up to 28.2
- debian debian_linux: 11.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c> (patch)
- <https://www.debian.org/security/2023/dsa-5360> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/05/msg00008.html> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/> (vendor-advisory)

## Sources

- CVE List: [CVE-2022-48337](https://www.cve.org/CVERecord?id=CVE-2022-48337), CVE Terms of Use, modified 2025-03-18
- NVD: [CVE-2022-48337](https://nvd.nist.gov/vuln/detail/CVE-2022-48337), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48337 · Whole record: https://cve.day/CVE-2022-48337.json · Rebuilt by cve.day 2026-11-25T22:58:18.725Z
