CVE-2023-27985
published high CVSS 3.1 · 7.8emacs: Shell command injection via a crafted mailto URI
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-134 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | emacs | Fixed | 28.2-r5 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacsaarch64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| Amazon Linux | AL2023 | emacsaarch64 | Listed in advisory | Not stated | ALAS2023-2023-134 |
| Alpine Linux | v3.17 | emacs | Fixed | 28.2-r2 | Package fix record |
| Alpine Linux | v3.18 | emacs | Fixed | 28.2-r5 | Package fix record |
Show 36 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.19 | emacs | Fixed | 28.2-r5 | Package fix record |
| Alpine Linux | v3.20 | emacs | Fixed | 28.2-r5 | Package fix record |
| Alpine Linux | v3.21 | emacs | Fixed | 28.2-r5 | Package fix record |
| Alpine Linux | v3.22 | emacs | Fixed | 28.2-r5 | Package fix record |
| Alpine Linux | v3.23 | emacs | Fixed | 28.2-r5 | Package fix record |
| Alpine Linux | v3.24 | emacs | Fixed | 28.2-r5 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacsppc64le | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacss390x | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacsx86_64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-elaarch64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-elppc64le | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-els390x | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-elx86_64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-elnaarch64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-elnppc64le | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-elns390x | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-elnx86_64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-infoaarch64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-infoppc64le | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-infos390x | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-infox86_64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-noxaarch64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-noxppc64le | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-noxs390x | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-noxx86_64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-x11aarch64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-x11ppc64le | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-x11s390x | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacs-x11x86_64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | etagsaarch64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | etagsppc64le | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | etagss390x | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | etagsx86_64 | Advisory build | 28.2-3.1 | OPENSUSE-SU-2024:12777-1 |
| Amazon Linux | AL2023 | emacsnoarch | Listed in advisory | Not stated | ALAS2023-2023-134 |
| Amazon Linux | AL2023 | emacssrc | Listed in advisory | Not stated | ALAS2023-2023-134 |
| Amazon Linux | AL2023 | emacsx86_64 | Listed in advisory | Not stated | ALAS2023-2023-134 |
Description
emacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to shell command injections through a crafted mailto: URI. This is related to lack of compliance with the Desktop Entry Specification. It is fixed in 29.0.90
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
5- http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=d32091199ae5de590a83f1542a01d75fba000467
- [oss-security] 20230309 Re: Shell command and Emacs Lisp code injection in emacsclient-mail.desktop http://www.openwall.com/lists/oss-security/2023/03/09/1
- https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60204
- https://www.gabriel.urdhr.fr/2023/06/08/emacsclient-mail-shell-elisp-injections/
- https://www.openwall.com/lists/oss-security/2023/03/08/2
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e8bfc94ae7abcadf0bfdaafd4b96cdd9016623f10d2ad280723cf7852d47c721
- Ingested
- 23 Sep 2026, 08:07:35 UTC
- Source record
- Official CVE record