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
| Vector | AV: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
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Suse
Umoci