Bug 2171989 (CVE-2022-48339) - CVE-2022-48339 emacs: command injection vulnerability in htmlfontify.el
Summary: CVE-2022-48339 emacs: command injection vulnerability in htmlfontify.el
Keywords:
Status: NEW
Alias: CVE-2022-48339
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2171990 2175177 2175178 2175179 2184368
Blocks: 2171978
TreeView+ depends on / blocked
 
Reported: 2023-02-21 06:23 UTC by TEJ RATHI
Modified: 2023-12-07 15:57 UTC (History)
1 user (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2626 0 None None None 2023-05-09 11:04:11 UTC
Red Hat Product Errata RHSA-2023:3481 0 None None None 2023-06-06 13:10:33 UTC
Red Hat Product Errata RHSA-2023:7083 0 None None None 2023-11-14 15:21:38 UTC

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


Note You need to log in before you can comment on or make changes to this bug.