Bug 2274980 (CVE-2024-32487)

Summary: CVE-2024-32487 less: OS command injection
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: gcovolo, mdogra, saroy
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An OS command injection flaw was found in Less. Since quoting is mishandled in filename.c, opening files with attacker-controlled file names can lead to OS command execution. Exploitation requires the LESSOPEN environment variable, which is set by default in many common cases.
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: 2274981    
Bug Blocks: 2274983    

Description ybuenos 2024-04-14 14:03:02 UTC
less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename.c. Exploitation typically requires use with attacker-controlled file names, such as the files extracted from an untrusted archive. Exploitation also requires the LESSOPEN environment variable, but this is set by default in many common cases.

https://github.com/gwsw/less/commit/007521ac3c95bc76e3d59c6dbfe75d06c8075c33
https://www.openwall.com/lists/oss-security/2024/04/12/5
https://www.openwall.com/lists/oss-security/2024/04/13/2

Comment 1 ybuenos 2024-04-14 14:03:17 UTC
Created less tracking bugs for this issue:

Affects: fedora-all [bug 2274981]

Comment 5 errata-xmlrpc 2024-05-30 14:34:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 6 errata-xmlrpc 2024-06-06 09:21:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 7 errata-xmlrpc 2024-07-02 15:25:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 11 errata-xmlrpc 2024-07-08 11:08:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

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

Comment 12 errata-xmlrpc 2024-07-08 11:37:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

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

Comment 13 errata-xmlrpc 2024-07-09 09:58:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service

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

Comment 14 errata-xmlrpc 2024-07-09 09:59:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

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

Comment 15 errata-xmlrpc 2024-07-15 01:03:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

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

Comment 16 errata-xmlrpc 2024-07-15 01:07:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

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