Vulnerability · Published Mar 9, 2023 · Assigned by mitre
CVE-2023-27986
High 7.8
In plain English
A high-severity code injection in the emacs package (Alpine). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.5%top 59.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
emacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to Emacs Lisp code injections through a crafted mailto: URI with unescaped double-quote characters. It is fixed in 29.0.90.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | emacs | 28.2-r6 | ALPINE-CVE-2023-27986 |
| Alpine:v3.21 | emacs | 28.2-r6 | ALPINE-CVE-2023-27986 |
| Alpine:v3.22 | emacs | 28.2-r6 | ALPINE-CVE-2023-27986 |
| Alpine:v3.23 | emacs | 28.2-r6 | ALPINE-CVE-2023-27986 |
| Alpine:v3.24 | emacs | 28.2-r6 | ALPINE-CVE-2023-27986 |
| Debian:12 | emacs | 1:28.2+1-13 | DEBIAN-CVE-2023-27986 |
| Debian:13 | emacs | 1:28.2+1-13 | DEBIAN-CVE-2023-27986 |
| Debian:14 | emacs | 1:28.2+1-13 | DEBIAN-CVE-2023-27986 |
| Ubuntu:22.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:24.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:25.10 | xemacs21 | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:26.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:26.10 | xemacs21 | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:22.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:24.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:25.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:26.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27986 |
| Ubuntu:26.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2023-27986 |
Affected products (as reported)
Weakness: CWE-94 · 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=3c1693d08b0a71d40a77e7b40c0ebc42dca2d2cc
- [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/