CVE-2022-45939

NameCVE-2022-45939
DescriptionGNU 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3257-1, DSA-5314-1, ELA-858-1
Debian Bugs1025009

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
emacs (PTS)buster (security), buster, buster (lts)1:26.1+1-3.2+deb10u6fixed
bullseye (security), bullseye1:27.1+1-3.1+deb11u5fixed
bookworm (security), bookworm1:28.2+1-15+deb12u3fixed
sid, trixie1:29.4+1-3fixed
emacs24 (PTS)jessie, jessie (lts)24.4+1-5+deb8u5vulnerable
stretch (security)24.5+1-11+deb9u1vulnerable
stretch (lts), stretch24.5+1-11+deb9u5vulnerable
emacs25 (PTS)stretch (security)25.1+1-4+deb9u1vulnerable
stretch (lts), stretch25.1+1-4+deb9u5fixed
xemacs21 (PTS)jessie21.4.22-14~deb8u1vulnerable
stretch21.4.24-4vulnerable
buster21.4.24-8vulnerable
bullseye21.4.24-9vulnerable
bookworm21.4.24-11fixed
sid21.4.24-12fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
emacssourcebuster1:26.1+1-3.2+deb10u3DLA-3257-1
emacssourcebullseye1:27.1+1-3.1+deb11u1DSA-5314-1
emacssource(unstable)1:28.2+1-81025009
emacs24source(unstable)(unfixed)
emacs25sourcestretch25.1+1-4+deb9u2ELA-858-1
emacs25source(unstable)(unfixed)
xemacs21sourcejessie(unfixed)end-of-life
xemacs21sourcestretch(unfixed)end-of-life
xemacs21source(unstable)21.4.24-11

Notes

[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)

Search for package or bug name: Reporting problems