Vulnerability · Published Mar 9, 2023 · Assigned by mitre
CVE-2023-27985
High 7.8
In plain English
A high-severity OS command injection in the emacs package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)1.1%top 34.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | emacs | 28.2-r5 | ALPINE-CVE-2023-27985 |
| Alpine:v3.21 | emacs | 28.2-r5 | ALPINE-CVE-2023-27985 |
| Alpine:v3.22 | emacs | 28.2-r5 | ALPINE-CVE-2023-27985 |
| Alpine:v3.23 | emacs | 28.2-r5 | ALPINE-CVE-2023-27985 |
| Alpine:v3.24 | emacs | 28.2-r5 | ALPINE-CVE-2023-27985 |
| Debian:12 | emacs | 1:28.2+1-13 | DEBIAN-CVE-2023-27985 |
| Debian:13 | emacs | 1:28.2+1-13 | DEBIAN-CVE-2023-27985 |
| Debian:14 | emacs | 1:28.2+1-13 | DEBIAN-CVE-2023-27985 |
| Ubuntu:22.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:24.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:25.10 | xemacs21 | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:26.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:26.10 | xemacs21 | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:22.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:24.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:25.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:26.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27985 |
| Ubuntu:26.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27985 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://www.openwall.com/lists/oss-security/2023/03/08/2
- http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=d32091199ae5de590a83f1542a01d75fba000467
- https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60204
- [oss-security] 20230309 Re: Shell command and Emacs Lisp code injection in emacsclient-mail.desktop mailing-list
- https://www.gabriel.urdhr.fr/2023/06/08/emacsclient-mail-shell-elisp-injections/