Bug 2176473 (CVE-2023-27986)

Summary: CVE-2023-27986 emacs: Emacs Lisp code injection via a crafted mailto URI
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jmigacz
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Emacs text editor. A crafted mailto URI, when opened with emacsclient-mail.desktop, can result in Emacs Lisp code injection.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-08 20:24:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2176474    
Bug Blocks: 2176475    

Description Pedro Sampaio 2023-03-08 13:25:21 UTC
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.

References:
https://www.openwall.com/lists/oss-security/2023/03/08/2
http://www.openwall.com/lists/oss-security/2023/03/09/1

Upstream patch:
http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=3c1693d08b0a71d40a77e7b40c0ebc42dca2d2cc

Comment 1 Pedro Sampaio 2023-03-08 13:25:37 UTC
Created emacs tracking bugs for this issue:

Affects: fedora-all [bug 2176474]