CVE-2023-2491
A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the ...
A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the "org-babel-execute:latex" function in ob-latex.el can result in arbitrary command execution. This CVE exists because of a CVE-2023-28617 security regression for the emacs package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the "org-babel-execute:latex" function in ob-latex.el can result in arbitrary command execution. This CVE exists because of a CVE-2023-28617 security regression for the emacs package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.
- Record
CVE-2023-2491- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
CVE List
7.8
A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the "org-babel-execute:latex" function in ob-latex.el can result in arbitrary command execution. This CVE exists because of a CVE-2023-28617 security regression for the emacs package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.
- Record
CVE-2023-2491- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
EUVDEUVD-2023-33975
7.8
A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the "org-babel-execute:latex" function in ob-latex.el can result in arbitrary command execution. This CVE exists because of a CVE-2023-28617 security regression for the emacs package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.
- Record
EUVD-2023-33975- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2hj6-9wp7-hvmh
7.8
A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the ...
A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the "org-babel-execute:latex" function in ob-latex.el can result in arbitrary command execution. This CVE exists because of a CVE-2023-28617 security regression for the emacs package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.
- Record
GHSA-2hj6-9wp7-hvmh- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
OSVRHSA-2023:2626
7.8
Red Hat Security Advisory: emacs security update
- Record
RHSA-2023:2626- 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 - Updated
- 2026-11-02
OSVRHSA-2023:3104
7.8
Red Hat Security Advisory: emacs security update
- Record
RHSA-2023:3104- 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 - Updated
- 2026-11-02
OSVALSA-2023:2626 No score
Important: emacs security update
GNU Emacs is a powerful, customizable, self-documenting text editor. It provides special code editing features, a scripting language (elisp), and the capability to read e-mail and news.
Security Fix(es):
- emacs: Regression of CVE-2023-28617 fixes in the AlmaLinux (CVE-2023-2491)
- emacs: command execution via shell metacharacters (CVE-2022-48337)
- emacs: local command injection in ruby-mode.el (CVE-2022-48338)
- emacs: command injection vulnerability in htmlfontify.el (CVE-2022-48339)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2023:2626- Updated
- 2026-11-02
OSVALSA-2023:3104 No score
Important: emacs security update
GNU Emacs is a powerful, customizable, self-documenting text editor. It provides special code editing features, a scripting language (elisp), and the capability to read e-mail and news.
Security Fix(es):
- emacs: Regression of CVE-2023-28617 fixes in the AlmaLinux (CVE-2023-2491)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2023:3104- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
emacsAlmaLinux:9 |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-commonAlmaLinux:9 |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-filesystemAlmaLinux:9 |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-lucidAlmaLinux:9 |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-noxAlmaLinux:9 |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacsAlmaLinux:8 |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-commonAlmaLinux:8 |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-filesystemAlmaLinux:8 |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-lucidAlmaLinux:8 |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-noxAlmaLinux:8 |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
emacs-terminalAlmaLinux:8 |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacsRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-commonRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-common-debuginfoRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-debuginfoRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-debugsourceRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-filesystemRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-lucidRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-lucid-debuginfoRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-noxRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacs-nox-debuginfoRed Hat:enterprise_linux:9::appstream |
before 1:27.2-8.el9_2.1 | 1:27.2-8.el9_2.1 |
emacsRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-commonRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-common-debuginfoRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-debuginfoRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-debugsourceRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-lucidRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-lucid-debuginfoRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-noxRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-nox-debuginfoRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-terminalRed Hat:enterprise_linux:8::appstream |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacsRed Hat:enterprise_linux:8::baseos |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
emacs-filesystemRed Hat:enterprise_linux:8::baseos |
before 1:26.1-10.el8_8.2 | 1:26.1-10.el8_8.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-2491 is a high vulnerability (CVSS 7.8) in Gnu Emacs, published May 9, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.46%, the 39th percentile. Fixed in emacs 1:27.2-8.el9_2.1.
References
bugzilla.redhat.com/show_bug.cgi?id=2192873
access.redhat.com/security/cve/CVE-2023-2491
access.redhat.com/errata/RHSA-2023:3104
access.redhat.com/errata/RHSA-2023:2626
nvd.nist.gov/vuln/detail/CVE-2023-2491
github.com/advisories/GHSA-2hj6-9wp7-hvmh
Show 22 moreShow less
access.redhat.com/security/cve/CVE-2022-48337
access.redhat.com/security/cve/CVE-2022-48338
access.redhat.com/security/cve/CVE-2022-48339
bugzilla.redhat.com/2171987
bugzilla.redhat.com/2171988
bugzilla.redhat.com/2171989
bugzilla.redhat.com/2192873
errata.almalinux.org/9/ALSA-2023-2626.html
errata.almalinux.org/8/ALSA-2023-3104.html
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2171987
bugzilla.redhat.com/show_bug.cgi?id=2171988
bugzilla.redhat.com/show_bug.cgi?id=2171989
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_2626.json
cve.org/CVERecord?id=CVE-2022-48337
nvd.nist.gov/vuln/detail/CVE-2022-48337
cve.org/CVERecord?id=CVE-2022-48338
nvd.nist.gov/vuln/detail/CVE-2022-48338
cve.org/CVERecord?id=CVE-2022-48339
nvd.nist.gov/vuln/detail/CVE-2022-48339
cve.org/CVERecord?id=CVE-2023-2491
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_3104.json