Bug 2176823 (CVE-2023-27985)

Summary: CVE-2023-27985 emacs: Shell command 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. When opened with emacsclient-mail.desktop, a crafted mailto URI can result in shell command injection due to lack of compliance with the Desktop Entry Specification.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-09 16:25:16 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: 2176826    
Bug Blocks: 2176475    

Description Pedro Sampaio 2023-03-09 12:18:48 UTC
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.

References:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60204
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=d32091199ae5de590a83f1542a01d75fba000467

Comment 1 Guilherme de Almeida Suckevicz 2023-03-09 12:32:03 UTC
Created emacs tracking bugs for this issue:

Affects: fedora-all [bug 2176826]

Comment 2 Product Security DevOps Team 2023-03-09 16:25:14 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-27985