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 |
Debian Bugs | 1025009 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
emacs (PTS) | bullseye | 1:27.1+1-3.1+deb11u5 | fixed |
bullseye (security) | 1:27.1+1-3.1+deb11u6 | fixed | |
bookworm, bookworm (security) | 1:28.2+1-15+deb12u4 | fixed | |
trixie | 1:30.1+1-4 | fixed | |
sid | 1:30.1+1-5 | fixed | |
xemacs21 (PTS) | 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 | ||
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