Vulnerability · Published Feb 5, 2024 · Assigned by GitHub_M
CVE-2023-52138Path traversal via crafted cpio archives in Engrampa archivers
High 8.2
In plain English
A high-severity security flaw in engrampa from mate-desktop. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | engrampa | 1.26.0-1+deb12u2 | DEBIAN-CVE-2023-52138 |
| Debian:12 | engrampa | 1.26.0-1+deb12u2 | DSA-5625-1 |
| Debian:13 | engrampa | 1.26.2-1 | DEBIAN-CVE-2023-52138 |
| Debian:14 | engrampa | 1.26.2-1 | DEBIAN-CVE-2023-52138 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mate-desktop | engrampa | < commit 63d5dfa |
Weakness: CWE-25 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
References
- https://github.com/mate-desktop/engrampa/security/advisories/GHSA-c98h-v39w-3r7v x_refsource_CONFIRM
- https://github.com/mate-desktop/engrampa/commit/63d5dfa9005c6b16d0f0ccd888cc859fca78f970 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4IOJ3QWXTZGCXFEHP72ELY22PZ4AX2CB/
- https://lists.debian.org/debian-lts-announce/2024/02/msg00011.html