cve.bz

CVE-2023-28617 gnu org mode: OS Command Injection

7.8 highEPSS 0.5%Fix available

High (7.8) in gnu org mode. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-28617 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-28617?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-28617?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-28617 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:org_modethrough 9.6.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10emacs1:26.1+1-3.2+deb10u4DLA-3416-1
Debian10org-mode9.1.14+dfsg-3+deb10u1DLA-3616-1
Debian11emacs1:27.1+1-3.1+deb11u6DLA-4069-1
Debian12, 13, 14emacs1:28.2+1-14DEBIAN-CVE-2023-28617
Debian12, 13, 14org-mode9.5.2+dfsh-5DEBIAN-CVE-2023-28617
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morexemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2023-28617
Ubuntu22.04:LTSemacs1:27.1+1-3ubuntu5.2UBUNTU-CVE-2023-28617 USN-7027-1
UbuntuPro:16.04:LTSemacs2424.5+1-6ubuntu1.1+esm3UBUNTU-CVE-2023-28617 USN-6003-1 USN-7027-1
UbuntuPro:16.04:LTSorg-mode8.3.3-2ubuntu0.1~esm1USN-7375-1
UbuntuPro:18.04:LTSemacs2525.2+1-6ubuntu0.1~esm2UBUNTU-CVE-2023-28617 USN-7027-1
UbuntuPro:18.04:LTSorg-mode9.1.6+dfsg-1ubuntu0.1~esm1USN-7375-1
UbuntuPro:20.04:LTSemacs1:26.3+1-1ubuntu2+esm1UBUNTU-CVE-2023-28617 USN-7027-1
UbuntuPro:20.04:LTSorg-mode9.3.1+dfsg-1ubuntu0.1~esm1USN-7375-1
UbuntuPro:22.04:LTSorg-mode9.5.2+dfsh-4ubuntu0.1~esm1UBUNTU-CVE-2023-28617 USN-7375-1
UbuntuPro:24.04:LTSemacs1:29.3+1-1ubuntu2+esm1USN-7027-1
UbuntuPro:24.04:LTSorg-mode9.6.10+dfsg-1ubuntu0.1~esm1USN-7375-1
Red Hatenterprise_linux:8::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-7.el8_7.1RHSA-2023:1930
Red Hatenterprise_linux:8::baseosemacs, emacs-filesystem1:26.1-7.el8_7.1RHSA-2023:1930
Red Hatenterprise_linux:9::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:27.2-6.el9_1.1RHSA-2023:2074
Red Hatrhel_aus:8.2::appstream, rhel_e4s:8.2::appstream, rhel_tus:8.2::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-5.el8_2.1RHSA-2023:1915
Red Hatrhel_aus:8.2::baseos, rhel_e4s:8.2::baseos, rhel_tus:8.2::baseosemacs, emacs-filesystem1:26.1-5.el8_2.1RHSA-2023:1915
Red Hatrhel_e4s:8.1::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-5.el8_1.1RHSA-2023:3189
Red Hatrhel_e4s:8.1::baseosemacs, emacs-filesystem1:26.1-5.el8_1.1RHSA-2023:3189
Red Hatrhel_eus:8.4::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-5.el8_4.1RHSA-2023:1958
Red Hatrhel_eus:8.4::baseosemacs, emacs-filesystem1:26.1-5.el8_4.1RHSA-2023:1958
Red Hatrhel_eus:8.6::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-7.el8_6.1RHSA-2023:1931
Red Hatrhel_eus:8.6::baseosemacs, emacs-filesystem1:26.1-7.el8_6.1RHSA-2023:1931
Red Hatrhel_eus:9.0::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:27.2-6.el9_0.1RHSA-2023:2010
AlmaLinux8emacs, emacs-nox, emacs-lucid and 3 more1:26.1-10.el8_8.2ALSA-2023:3104
AlmaLinux8emacs, emacs-nox, emacs-lucid and 3 more1:26.1-7.el8_7.1ALSA-2023:1930
AlmaLinux9emacs, emacs-nox, emacs-lucid and 2 more1:27.2-6.el9_1.1ALSA-2023:2074
AlmaLinux9emacs, emacs-nox, emacs-lucid and 2 more1:27.2-8.el9_2.1ALSA-2023:2626
Rocky Linux8emacs1:26.1-7.el8_7.1RLSA-2023:1930
Rocky Linux9emacs1:27.2-6.el9_1.1RLSA-2023:2074
Azure Linux2emacs28.2-5AZL-25707

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Do not evaluate untrusted Lisp or org-mode code.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8emacs-1:26.1-7.el8_7.1Fixed 2023-04-24RHSA-2023:1930
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsemacs-1:26.1-5.el8_1.1Fixed 2023-05-17RHSA-2023:3189
Red Hat Enterprise Linux 8.2 Advanced Update Supportemacs-1:26.1-5.el8_2.1Fixed 2023-04-20RHSA-2023:1915
Red Hat Enterprise Linux 8.2 Telecommunications Update Serviceemacs-1:26.1-5.el8_2.1Fixed 2023-04-20RHSA-2023:1915
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionsemacs-1:26.1-5.el8_2.1Fixed 2023-04-20RHSA-2023:1915
Red Hat Enterprise Linux 8.4 Extended Update Supportemacs-1:26.1-5.el8_4.1Fixed 2023-04-25RHSA-2023:1958
Red Hat Enterprise Linux 8.6 Extended Update Supportemacs-1:26.1-7.el8_6.1Fixed 2023-04-24RHSA-2023:1931
Red Hat Enterprise Linux 9emacs-1:27.2-6.el9_1.1Fixed 2023-05-02RHSA-2023:2074
Red Hat Enterprise Linux 9.0 Extended Update Supportemacs-1:27.2-6.el9_0.1Fixed 2023-04-25RHSA-2023:2010
Red Hat Enterprise Linux 6emacsNot affected
Red Hat Enterprise Linux 7emacsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-28617.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON