Bug 2262839 (CVE-2023-52138)

Summary: CVE-2023-52138 engrampa: remote command execution via path traversal vulnerability
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was discovered in the Engrampa archive manager. By default, cpio will follow stored symlinks during extraction and Engrampa does not check the symlink location. An attacker can craft a malicious cpio or ISO archive that, when extracted by a user, can exploit the vulnerability to write files on locations such as ~/.ssh, ~/.bashrc, ~/.config/autostart/ etc., to achieve full remote command execution on the target/victim 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: 2262840, 2262841    
Bug Blocks:    

Description Robb Gatica 2024-02-05 17:35:37 UTC
Engrampa is an archive manager for the MATE environment. Engrampa is found to be vulnerable to a Path Traversal vulnerability that can be leveraged to achieve full Remote Command Execution (RCE) on the target. While handling CPIO archives, the Engrampa Archive manager follows symlink, cpio by default will follow stored symlinks while extracting and the Archiver will not check the symlink location, which leads to arbitrary file writes to unintended locations. When the victim extracts the archive, the attacker can craft a malicious cpio or ISO archive to achieve RCE on the target system. This vulnerability was fixed in commit 63d5dfa.

https://github.com/mate-desktop/engrampa/commit/63d5dfa9005c6b16d0f0ccd888cc859fca78f970
https://github.com/mate-desktop/engrampa/security/advisories/GHSA-c98h-v39w-3r7v

Comment 1 Robb Gatica 2024-02-05 17:35:54 UTC
Created engrampa tracking bugs for this issue:

Affects: epel-all [bug 2262841]
Affects: fedora-all [bug 2262840]