Name | CVE-2022-45939 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3257-1, DSA-5314-1, ELA-858-1 |
Debian Bugs | 1025009 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
emacs (PTS) | buster (security), buster, buster (lts) | 1:26.1+1-3.2+deb10u6 | fixed |
bullseye (security), bullseye | 1:27.1+1-3.1+deb11u5 | fixed | |
bookworm (security), bookworm | 1:28.2+1-15+deb12u3 | fixed | |
sid, trixie | 1:29.4+1-3 | fixed | |
emacs24 (PTS) | jessie, jessie (lts) | 24.4+1-5+deb8u5 | vulnerable |
stretch (security) | 24.5+1-11+deb9u1 | vulnerable | |
stretch (lts), stretch | 24.5+1-11+deb9u5 | vulnerable | |
emacs25 (PTS) | stretch (security) | 25.1+1-4+deb9u1 | vulnerable |
stretch (lts), stretch | 25.1+1-4+deb9u5 | fixed | |
xemacs21 (PTS) | jessie | 21.4.22-14~deb8u1 | vulnerable |
stretch | 21.4.24-4 | vulnerable | |
buster | 21.4.24-8 | vulnerable | |
bullseye | 21.4.24-9 | vulnerable | |
bookworm | 21.4.24-11 | fixed | |
sid | 21.4.24-12 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
emacs | source | buster | 1:26.1+1-3.2+deb10u3 | DLA-3257-1 | ||
emacs | source | bullseye | 1:27.1+1-3.1+deb11u1 | DSA-5314-1 | ||
emacs | source | (unstable) | 1:28.2+1-8 | 1025009 | ||
emacs24 | source | (unstable) | (unfixed) | |||
emacs25 | source | stretch | 25.1+1-4+deb9u2 | ELA-858-1 | ||
emacs25 | source | (unstable) | (unfixed) | |||
xemacs21 | source | jessie | (unfixed) | end-of-life | ||
xemacs21 | source | stretch | (unfixed) | end-of-life | ||
xemacs21 | source | (unstable) | 21.4.24-11 |
[bullseye] - xemacs21 <no-dsa> (Minor issue)
[buster] - xemacs21 <no-dsa> (Minor issue)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51
[stretch] - emacs24 <no-dsa> (Minor issue)
[jessie] - emacs24 <no-dsa> (Minor issue)