CVE-2023-28617 json
org-babel-execute:latex in ob-latex.el in Org Mode through 9.6.1 for GNU Emacs allows attackers to execute arbitrary commands via a file na…
published 2023-03-19 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-32285
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 40%
- public exploits
- 0
- none known
Summary
org-babel-execute:latex in ob-latex.el in Org Mode through 9.6.1 for GNU Emacs allows attackers to execute arbitrary commands via a file name or directory name that contains shell metacharacters.
Patch / fix
- emacs Debian 14, Debian 13, Debian 12 1:28.2+1-14
- org-mode Debian 14, Debian 13, Debian 12 9.5.2+dfsh-5
debian advisories DEBIAN-CVE-2023-28617
- emacs Ubuntu 22.04 LTS 1:27.1+1-3ubuntu5.2
- emacs Ubuntu Pro 20.04 LTS 1:26.3+1-1ubuntu2+esm1
- emacs24 Ubuntu Pro 16.04 LTS 24.5+1-6ubuntu1.1+esm3
- emacs25 Ubuntu Pro 18.04 LTS 25.2+1-6ubuntu0.1~esm2
- org-mode Ubuntu Pro 22.04 LTS 9.5.2+dfsh-4ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2023-28617
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- emacs RHEL 9 1:27.2-6.el9_1.1
- emacs-nox RHEL 9 1:27.2-6.el9_1.1
- emacs-lucid RHEL 9 1:27.2-6.el9_1.1
- emacs-common RHEL 9 1:27.2-6.el9_1.1
- emacs-filesystem RHEL 9 1:27.2-6.el9_1.1
- emacs RHEL 8 1:26.1-7.el8_7.1
- emacs-nox RHEL 8 1:26.1-7.el8_7.1
- emacs-lucid RHEL 8 1:26.1-7.el8_7.1
red hat advisories RHSA-2023:3189RHSA-2023:2074RHSA-2023:2010RHSA-2023:1958RHSA-2023:1931RHSA-2023:1930
- emacs AlmaLinux 8 1:26.1-10.el8_8.2
- emacs-nox AlmaLinux 8 1:26.1-10.el8_8.2
- emacs-lucid AlmaLinux 8 1:26.1-10.el8_8.2
- emacs-common AlmaLinux 8 1:26.1-10.el8_8.2
- emacs-terminal AlmaLinux 8 1:26.1-10.el8_8.2
- emacs-filesystem AlmaLinux 8 1:26.1-10.el8_8.2
- emacs AlmaLinux 9 1:27.2-8.el9_2.1
- emacs-nox AlmaLinux 9 1:27.2-8.el9_2.1
almalinux advisories ALSA-2023:3104ALSA-2023:2626ALSA-2023:2074ALSA-2023:1930
- emacs Rocky Linux 9 1:27.2-6.el9_1.1
- emacs Rocky Linux 8 1:26.1-7.el8_7.1
rocky linux advisories RLSA-2023:2074RLSA-2023:1930
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-28617 updated cvss 7.8
emacs: command injection vulnerability in org-mode
-
Red Hat Enterprise Linux AppStream (v. 8) emacs 26.1-7.el8_7.1, emacs-nox 26.1-7.el8_7.1, emacs-lucid 26.1-7.el8_7.1, emacs-common 26.1-7.el8_7.1, emacs-terminal 26.1-7.el8_7.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1930
-
Red Hat Enterprise Linux AppStream (v. 9) emacs 27.2-6.el9_1.1, emacs-nox 27.2-6.el9_1.1, emacs-lucid 27.2-6.el9_1.1, emacs-common 27.2-6.el9_1.1, emacs-filesystem 27.2-6.el9_1.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:2074
-
Red Hat Enterprise Linux AppStream AUS (v. 8.2) emacs 26.1-5.el8_2.1, emacs-nox 26.1-5.el8_2.1, emacs-lucid 26.1-5.el8_2.1, emacs-common 26.1-5.el8_2.1, emacs-terminal 26.1-5.el8_2.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1915
-
Red Hat Enterprise Linux AppStream E4S (v. 8.1) emacs 26.1-5.el8_1.1, emacs-nox 26.1-5.el8_1.1, emacs-lucid 26.1-5.el8_1.1, emacs-common 26.1-5.el8_1.1, emacs-terminal 26.1-5.el8_1.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:3189
-
Red Hat Enterprise Linux AppStream E4S (v. 8.2) emacs 26.1-5.el8_2.1, emacs-nox 26.1-5.el8_2.1, emacs-lucid 26.1-5.el8_2.1, emacs-common 26.1-5.el8_2.1, emacs-terminal 26.1-5.el8_2.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1915
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) emacs 26.1-5.el8_4.1, emacs-nox 26.1-5.el8_4.1, emacs-lucid 26.1-5.el8_4.1, emacs-common 26.1-5.el8_4.1, emacs-terminal 26.1-5.el8_4.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1958
-
Red Hat Enterprise Linux AppStream EUS (v.8.6) emacs 26.1-7.el8_6.1, emacs-nox 26.1-7.el8_6.1, emacs-lucid 26.1-7.el8_6.1, emacs-common 26.1-7.el8_6.1, emacs-terminal 26.1-7.el8_6.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1931
-
Red Hat Enterprise Linux AppStream EUS (v.9.0) emacs 27.2-6.el9_0.1, emacs-nox 27.2-6.el9_0.1, emacs-lucid 27.2-6.el9_0.1, emacs-common 27.2-6.el9_0.1, emacs-filesystem 27.2-6.el9_0.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:2010
show 9 moreshow fewer
-
Red Hat Enterprise Linux AppStream TUS (v. 8.2) emacs 26.1-5.el8_2.1, emacs-nox 26.1-5.el8_2.1, emacs-lucid 26.1-5.el8_2.1, emacs-common 26.1-5.el8_2.1, emacs-terminal 26.1-5.el8_2.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1915
-
Red Hat Enterprise Linux BaseOS (v. 8) emacs 26.1-7.el8_7.1, emacs-filesystem 26.1-7.el8_7.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1930
-
Red Hat Enterprise Linux BaseOS AUS (v. 8.2) emacs 26.1-5.el8_2.1, emacs-filesystem 26.1-5.el8_2.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1915
-
Red Hat Enterprise Linux BaseOS E4S (v. 8.1) emacs 26.1-5.el8_1.1, emacs-filesystem 26.1-5.el8_1.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:3189
-
Red Hat Enterprise Linux BaseOS E4S (v. 8.2) emacs 26.1-5.el8_2.1, emacs-filesystem 26.1-5.el8_2.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1915
-
Red Hat Enterprise Linux BaseOS EUS (v.8.4) emacs 26.1-5.el8_4.1, emacs-filesystem 26.1-5.el8_4.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1958
-
Red Hat Enterprise Linux BaseOS EUS (v.8.6) emacs 26.1-7.el8_6.1, emacs-filesystem 26.1-7.el8_6.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1931
-
Red Hat Enterprise Linux BaseOS TUS (v. 8.2) emacs 26.1-5.el8_2.1, emacs-filesystem 26.1-5.el8_2.1fixed: vendor fix “Do not evaluate untrusted Lisp or org-mode code.” RHSA-2023:1915
-
Red Hat Enterprise Linux 6 emacs, emacs-el, emacs-nox, emacs-common Red Hat Enterprise Linux 7 emacs, emacs-el, emacs-nox, emacs-common, emacs-terminal, emacs-filesystemnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
0.47% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
git.savannah.gnu.org
/cgit/emacs/org-mode.git/commit/?id=8f8ec2ccf3f5ef8f38d68ec84a7e4739c45db485
mailing-list, patch
-
git.savannah.gnu.org
/cgit/emacs/org-mode.git/commit/?id=a8006ea580ed74f27f974d60b598143b04ad1741
mailing-list, patch
- list.orgmode.org /tencent_04CF842704737012CCBCD63CD654DD41CA0A%40qq.com/T/#m6ef8e7d34b25fe17b4cbb655b161edce18c6655e
-
lists.debian.org
/debian-lts-announce/2023/05/msg00008.html
mailing-list
-
lists.debian.org
/debian-lts-announce/2023/10/msg00019.html
mailing-list
- lists.debian.org /debian-lts-announce/2025/02/msg00033.html
Sources
- CVE List CVE-2023-28617
- NVD CVE-2023-28617
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.