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
Debian Bugs1025009

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
emacs (PTS)buster1:26.1+1-3.2+deb10u2vulnerable
buster (security)1:26.1+1-3.2+deb10u4fixed
bullseye1:27.1+1-3.1+deb11u1fixed
bullseye (security)1:27.1+1-3.1+deb11u2fixed
bookworm1:28.2+1-15fixed
trixie1:29.2+1-2fixed
sid1:29.3+1-1fixed
xemacs21 (PTS)buster21.4.24-8vulnerable
bullseye21.4.24-9vulnerable
bookworm21.4.24-11fixed
sid, trixie21.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
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

Search for package or bug name: Reporting problems