CVE-2023-27985: Emacs - Command Injection
- Cve: CVE-2023-27985
- Name: Emacs - Command Injection
- 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
- Impact: Attackers can execute arbitrary shell commands on the system, potentially leading to full system compromise.
- Remediation: Update to version 29.0.90 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs to craft a malicious mailto: URI
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01079
- Epss percentile: 0.65959
- Assignee: [email protected]
- Published at: 2023-03-09T06:15:32Z
- Age in days: 1356
- Modified at: 2026-06-17T05:46:18Z
- Patch available: yes
- References total: 5
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-27985
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=d32091199ae5de590a83f1542a01d75fba000467 | Issue Tracking, Patch |
| https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60204 | Issue Tracking, Patch |
| http://www.openwall.com/lists/oss-security/2023/03/09/1 | Mailing List, Patch |
| https://www.openwall.com/lists/oss-security/2023/03/08/2 | Mailing List, Patch |
| https://www.gabriel.urdhr.fr/2023/06/08/emacsclient-mail-shell-elisp-injections/ |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gnu:emacs | >= 28.1, <= 28.2 | no | nvd | /v1/products/gnu/emacs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts