Bug 2171989 (CVE-2022-48339)

Summary: CVE-2022-48339 emacs: command injection vulnerability in htmlfontify.el
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
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 package. If a file name or directory name contains shell metacharacters, arbitrary code may be executed.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2171990, 2175177, 2175178, 2175179, 2184368    
Bug Blocks: 2171978    

Description TEJ RATHI 2023-02-21 06:23:43 UTC
An issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability. In the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed.

https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1b4dc4691c1f87fc970fbe568b43869a15ad0d4c

Comment 1 TEJ RATHI 2023-02-21 06:24:11 UTC
Created emacs tracking bugs for this issue:

Affects: fedora-all [bug 2171990]

Comment 3 errata-xmlrpc 2023-05-09 11:04:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2626 https://access.redhat.com/errata/RHSA-2023:2626

Comment 4 errata-xmlrpc 2023-06-06 13:10:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2023:3481 https://access.redhat.com/errata/RHSA-2023:3481

Comment 6 errata-xmlrpc 2023-11-14 15:21:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:7083 https://access.redhat.com/errata/RHSA-2023:7083

Comment 8 errata-xmlrpc 2024-03-05 17:05:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:1103 https://access.redhat.com/errata/RHSA-2024:1103

Comment 9 errata-xmlrpc 2024-03-19 17:29:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:1408 https://access.redhat.com/errata/RHSA-2024:1408