Bug 2265081 (CVE-2022-48624)

Summary: CVE-2022-48624 less: missing quoting of shell metacharacters in LESSCLOSE handling
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jsanemet
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
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:    
Bug Blocks: 2265082    

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