CVE-2024-39331

NameCVE-2024-39331
DescriptionIn Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an unsafe function, such as shell-command-to-string. This affects Org Mode before 9.7.5.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3848-1, DLA-3849-1, DSA-5718-1, DSA-5719-1, ELA-1122-1, ELA-1123-1
Debian Bugs1074136, 1074137

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+deb8u5fixed
stretch (security)24.5+1-11+deb9u1vulnerable
stretch (lts), stretch24.5+1-11+deb9u5fixed
emacs25 (PTS)stretch (security)25.1+1-4+deb9u1vulnerable
stretch (lts), stretch25.1+1-4+deb9u5fixed
org-mode (PTS)jessie8.2.10-1vulnerable
stretch9.0.3-2vulnerable
buster (security), buster, buster (lts)9.1.14+dfsg-3+deb10u3fixed
bullseye (security), bullseye9.4.0+dfsg-1+deb11u3fixed
bookworm9.5.2+dfsh-5vulnerable
sid, trixie9.7.6+dfsg-2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
emacssourcebuster1:26.1+1-3.2+deb10u6DLA-3849-1
emacssourcebullseye1:27.1+1-3.1+deb11u5DSA-5719-1
emacssourcebookworm1:28.2+1-15+deb12u3DSA-5719-1
emacssource(unstable)1:29.4+1-11074137
emacs24sourcejessie24.4+1-5+deb8u5ELA-1122-1
emacs24sourcestretch24.5+1-11+deb9u5ELA-1122-1
emacs25sourcestretch25.1+1-4+deb9u5ELA-1123-1
org-modesourcejessie(unfixed)end-of-life
org-modesourcestretch(unfixed)end-of-life
org-modesourcebuster9.1.14+dfsg-3+deb10u3DLA-3848-1
org-modesourcebullseye9.4.0+dfsg-1+deb11u3DSA-5718-1
org-modesource(unstable)9.7.5+dfsg-11074136

Notes

[bookworm] - org-mode <ignored> (Produces only a dependency binary package)
https://www.openwall.com/lists/oss-security/2024/06/23/1
Fixed by: https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29.4&id=c645e1d8205f0f0663ec4a2d27575b238c646c7c (emacs-29.4)
Fixed by: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 (release_9.7.5)

Search for package or bug name: Reporting problems