PT-2021-18100 · Open Container Initiative+1 · Umoci+1

Robin Peraglie

·

Published

2021-04-06

·

Updated

2024-08-21

·

CVE-2021-29136

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions: Open Container Initiative umoci versions prior to 0.4.7
Description: The issue allows attackers to overwrite arbitrary host paths via a crafted image that causes symlink traversal when "umoci unpack" or "umoci raw unpack" is used. This is due to improper input validation in umoci. The vulnerability can be exploited by creating a malicious layer with a symlink, which can trick umoci into modifying host files. This affects both "umoci unpack" and "umoci raw unpack" commands.
Recommendations: For versions prior to 0.4.7, update to version 0.4.7 or later to resolve the issue. As a temporary workaround, consider running umoci under an LSM profile such as AppArmor or SELinux to restrict the level of access it has outside of container image directories. If using umoci as an unprivileged user with the --rootless flag, umoci will not be able to overwrite any files that the user doesn't have access to, which can serve as a mitigation.

Fix

RCE

Weakness Enumeration

Related Identifiers

CVE-2021-29136
GHSA-9M95-8HX6-7P9V
GO-2022-0815
MGASA-2022-0006
OESA-2021-1151
OPENSUSE-SU-2021:0548-1
OPENSUSE-SU-2021:0810-1
OPENSUSE-SU-2021:0846-1
OPENSUSE-SU-2021:1863-1
OPENSUSE-SU-2021_0548-1
OPENSUSE-SU-2021_0846-1
OPENSUSE-SU-2021_1863-1
OPENSUSE-SU-2024:11384-1
OPENSUSE-SU-2024:11482-1
SUSE-SU-2021:1116-1
SUSE-SU-2021:1863-1
SUSE-SU-2021:1863-2
SUSE-SU-2021_1116-1
SUSE-SU-2021_1863-1
SUSE-SU-2021_1863-2

Affected Products

Suse
Umoci