Bug 2241004 (CVE-2023-31102)

Summary: CVE-2023-31102 p7zip: 7Z File Parsing Integer Underflow Remote Code Execution Vulnerability
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: kaycoth, rtillery
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 integer underflow flaw is present in p7zip due to the improper validation of user-supplied data, which leads to remote code execution. This flaw allows an attacker to use a specially crafted file to trigger code execution, leading to a complete compromise of the 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: 2241102, 2241103    
Bug Blocks: 2241005    

Description Guilherme de Almeida Suckevicz 2023-09-27 16:33:51 UTC
This vulnerability allows remote attackers to execute arbitrary code on affected installations of 7-Zip. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the parsing of 7Z files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer underflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the current process.

References:
https://www.zerodayinitiative.com/advisories/ZDI-23-1165/
https://github.com/p7zip-project/p7zip/issues/224

Comment 2 Avinash Hanwate 2023-09-28 05:42:06 UTC
Created p7zip tracking bugs for this issue:

Affects: epel-all [bug 2241102]
Affects: fedora-all [bug 2241103]