Bug 2265081 (CVE-2022-48624) - CVE-2022-48624 less: missing quoting of shell metacharacters in LESSCLOSE handling
Summary: CVE-2022-48624 less: missing quoting of shell metacharacters in LESSCLOSE han...
Keywords:
Status: NEW
Alias: CVE-2022-48624
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2265082
TreeView+ depends on / blocked
 
Reported: 2024-02-20 09:18 UTC by Mauro Matteo Cascella
Modified: 2024-04-23 13:57 UTC (History)
1 user (show)

Fixed In Version: less 606
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in less. The close_altfile() function in filename.c omits shell_quote calls for LESSCLOSE, a command line to invoke the optional input postprocessor. This issue could lead to an OS command injection vulnerability and arbitrary command execution on the host operating system.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:1610 0 None None None 2024-04-02 15:56:31 UTC
Red Hat Product Errata RHSA-2024:1692 0 None None None 2024-04-08 09:23:31 UTC
Red Hat Product Errata RHSA-2024:1875 0 None None None 2024-04-18 01:52:28 UTC
Red Hat Product Errata RHSA-2024:1989 0 None None None 2024-04-23 13:57:52 UTC

Description Mauro Matteo Cascella 2024-02-20 09:18:58 UTC
The close_altfile() function in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Upstream fix:
https://github.com/gwsw/less/commit/c6ac6de49698be84d264a0c4c0c40bb870b10144

Comment 3 errata-xmlrpc 2024-04-02 15:56:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 4 errata-xmlrpc 2024-04-08 09:23:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 5 errata-xmlrpc 2024-04-18 01:52:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

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

Comment 6 errata-xmlrpc 2024-04-23 13:57:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

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


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