# CVE-2022-45939: 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: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2022-11-28T00:00:00.000Z
- Modified: 2026-06-17T05:11:03.737Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, 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 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu emacs: up to 28.2
- debian debian_linux: 10.0; 11.0
- fedoraproject fedora: 36; 37

## Every score

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

## References

- <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51> (patch)
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00046.html> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GOXIH2FDEQJEAARE52C3GHTLGQFBYPIB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FOSK3J7BBAEI4IITW2DRUKLQYUZYKH6Y/> (vendor-advisory)
- <https://www.debian.org/security/2023/dsa-5314> (third-party-advisory, vendor-advisory)

## Sources

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

---

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