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/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
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | xemacs21 | Fix pending | UBUNTU-CVE-2022-48337 | |
| Ubuntu 26.10 | xemacs21-packages | Fix pending | UBUNTU-CVE-2022-48337 | |
| Ubuntu 26.04 | xemacs21 | Under investigation | UBUNTU-CVE-2022-48337 | |
| Ubuntu 26.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2022-48337 | |
| Ubuntu 25.10 | emacs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | xemacs21 | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 25.10 | xemacs21-packages | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 24.04 | xemacs21 | Under investigation | UBUNTU-CVE-2022-48337 | |
| Ubuntu 24.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2022-48337 | |
| Ubuntu 22.04 | emacs | Fixed | 1:27.1+1-3ubuntu5.2 | UBUNTU-CVE-2022-48337 |
| Ubuntu 22.04 | xemacs21 | Under investigation | UBUNTU-CVE-2022-48337 | |
| Ubuntu 22.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2022-48337 | |
| Ubuntu 20.04 | emacs | Fix pending | 1:26.3+1-1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-48337 |
| Ubuntu 20.04 | xemacs21 | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 20.04 | xemacs21-packages | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 18.04 | emacs25 | Fix pending | 25.2+1-6ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2022-48337 |
| Ubuntu 18.04 | xemacs21 | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 18.04 | xemacs21-packages | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 16.04 | emacs24 | Not affected vulnerable_code_not_present | 24.5+1-6ubuntu1.1+esm4 (Ubuntu Pro) | UBUNTU-CVE-2022-48337 |
| Ubuntu 16.04 | xemacs21 | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 16.04 | xemacs21-packages | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | UBUNTU-CVE-2022-48337 | |
| Ubuntu 14.04 | emacs23 | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | ||
| Ubuntu 14.04 | emacs24 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | xemacs21 | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | ||
| Ubuntu 14.04 | xemacs21-packages | Will not fix issue introduced in version 25.0.90, wit commit 1f83c3e5. the fix for this issue, in commit 01a4035c, can introduce a memory leak, the commit 0fde314f6 fixes… | ||
| Debian 14 | emacs | Fixed | 1:28.2+1-11 | DEBIAN-CVE-2022-48337 |
| Debian 13 | emacs | Fixed | 1:28.2+1-11 | DEBIAN-CVE-2022-48337 |
| Debian 12 | emacs | Fixed | 1:28.2+1-11 | DEBIAN-CVE-2022-48337 |
| Red Hat Enterprise Linux 9 | emacs | Fixed | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux 9 | emacs-common | Fixed | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux 9 | emacs-filesystem | Fixed | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux 9 | emacs-lucid | Fixed | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux 9 | emacs-nox | Fixed | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux 8 | emacs | Fixed | 1:26.1-11.el8 | RHSA-2023:7083 |
| Red Hat Enterprise Linux 8 | emacs-common | Fixed | 1:26.1-11.el8 | RHSA-2023:7083 |
| Red Hat Enterprise Linux 8 | emacs-filesystem | Fixed | 1:26.1-11.el8 | RHSA-2023:7083 |
| Red Hat Enterprise Linux 8 | emacs-lucid | Fixed | 1:26.1-11.el8 | RHSA-2023:7083 |
| Red Hat Enterprise Linux 8 | emacs-nox | Fixed | 1:26.1-11.el8 | RHSA-2023:7083 |
| Red Hat Enterprise Linux 8 | emacs-terminal | Fixed | 1:26.1-11.el8 | RHSA-2023:7083 |
| Red Hat Enterprise Linux 7 | emacs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | emacs-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | emacs-el | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | emacs-filesystem | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | emacs-nox | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | emacs-terminal | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | emacs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-el | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-nox | Will not fix Out of support scope | ||
| AlmaLinux 9 | emacs | Fixed | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux 9 | emacs-common | Fixed | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux 9 | emacs-filesystem | Fixed | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux 9 | emacs-lucid | Fixed | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux 9 | emacs-nox | Fixed | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux 8 | emacs | Fixed | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux 8 | emacs-common | Fixed | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux 8 | emacs-filesystem | Fixed | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux 8 | emacs-lucid | Fixed | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux 8 | emacs-nox | Fixed | 1:26.1-11.el8 | ALSA-2023:7083 |
| AlmaLinux 8 | emacs-terminal | Fixed | 1:26.1-11.el8 | ALSA-2023:7083 |
| Rocky Linux 8 | emacs | Fixed | 1:26.1-11.el8 | RLSA-2023:7083 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2023/dsa-5360 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c
- https://www.debian.org/security/2023/dsa-5360
- https://lists.debian.org/debian-lts-announce/2023/05/msg00008.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.