# CVE-2022-45939

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-11-28 · Modified: 2025-04-28
- Aliases: MGASA-2022-0457, SUSE-SU-2022:4304-1, SUSE-SU-2022:4305-1, SUSE-SU-2022:4310-1, RHSA-2023:2366, RHSA-2023:3042, UBUNTU-CVE-2022-45939, USN-5781-1, DEBIAN-CVE-2022-45939, DLA-3257-1, DSA-5314-1, openSUSE-SU-2024:12541-1, ALPINE-CVE-2022-45939
- Record: https://cvemate.com/vulnerability/CVE-2022-45939 · JSON: https://cvemate.com/vulnerability/CVE-2022-45939/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.701%, percentile 54.589%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 57)

- alpine emacs (Alpine Linux): \< 28.2-r1 \| \< 28.2-r3
- debian emacs (Debian): \< 1:26.1+1-3.2+deb10u3 \| \< 1:27.1+1-3.1+deb11u1 \| \< 1:28.2+1-8
- debian xemacs21 (Debian): \< 21.4.24-11
- ubuntu emacs (Ubuntu): \< 1:26.3+1-1ubuntu2+esm1 \| \< 1:27.1+1-3ubuntu5.2
- ubuntu emacs24 (Ubuntu): \< 24.5+1-6ubuntu1.1+esm1
- ubuntu emacs25 (Ubuntu): \< 25.2+1-6ubuntu0.1~esm2
- ubuntu xemacs21 (Ubuntu): All versions (No fix recorded)
- ubuntu xemacs21-packages (Ubuntu): All versions (No fix recorded)
- debian debian\_linux: 10.0 \| 11.0
- fedoraproject fedora: 36 \| 37
- gnu emacs: ≤ 28.2
- mageia emacs (Mageia): \< 27.1-1.2.mga8
- opensuse emacs&distro=openSUSE Leap 15.3 (openSUSE): \< 25.3-150000.3.12.1
- opensuse emacs&distro=openSUSE Leap 15.4 (openSUSE): \< 27.2-150400.3.3.1
- opensuse emacs&distro=openSUSE Tumbleweed (openSUSE): \< 28.2-1.1
- redhat emacs (Red Hat): \< 1:27.2-8.el9 \| \< 1:26.1-9.el8
- redhat emacs-common (Red Hat): \< 1:27.2-8.el9 \| \< 1:26.1-9.el8
- redhat emacs-common-debuginfo (Red Hat): \< 1:27.2-8.el9 \| \< 1:26.1-9.el8
- redhat emacs-debuginfo (Red Hat): \< 1:27.2-8.el9 \| \< 1:26.1-9.el8
- redhat emacs-debugsource (Red Hat): \< 1:27.2-8.el9 \| \< 1:26.1-9.el8

## References (first 20 of 33)

- <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51>
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00046.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GOXIH2FDEQJEAARE52C3GHTLGQFBYPIB/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FOSK3J7BBAEI4IITW2DRUKLQYUZYKH6Y/>
- <https://www.debian.org/security/2023/dsa-5314>
- <https://advisories.mageia.org/MGASA-2022-0457.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31211>
- <https://lists.suse.com/pipermail/sle-security-updates/2022-December/013180.html>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/MU2KN46JJ6TL6CR5QN3O4AZXDYE35Z7A/>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20224304-1/>
- <https://bugzilla.suse.com/1205822>
- <https://www.suse.com/security/cve/CVE-2022-45939>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20224305-1/>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20224310-1/>
- <https://access.redhat.com/errata/RHSA-2023:2366>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.2_release_notes/index>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1979804>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2006856>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2149380>

---

Data as of 2026-12-05T05:21:13.735Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
