CVE-2021-29136 Improper input validation in umoci
Attackers can overwrite arbitrary host files via symlink traversal in umoci when unpacking crafted images, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-29136?
CVE-2021-29136 is a medium-severity path traversal vulnerability in n/a, published on 6 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Open Container Initiative umoci before 0.4.7 allows attackers to overwrite arbitrary host paths via a crafted image that causes symlink traversal when "umoci unpack" or "umoci raw unpack" is used.
Weakness: CWE-20
Which versions are affected by CVE-2021-29136?
3 open source packages ship an affected version, including github.com/opencontainers/umoci. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/opencontainers/umoci Go | All versions | 0.4.7 |
github.com/opencontainers/umoci Go | All versions | 0.4.7 |
github.com/opencontainers/umoci Go | All versions | 0.4.7 |
Linux distribution packages (27)
umoci SUSE:Enterprise Storage 6 | All versions | 0.4.6-3.9.1 |
umoci SUSE:Enterprise Storage 6 | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 0.4.6-3.9.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 0.4.6-3.9.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise Module for Containers 15 SP2 | All versions | 0.4.6-3.9.1 |
umoci SUSE:Linux Enterprise Module for Containers 15 SP2 | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise Module for Containers 15 SP3 | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 0.4.6-3.9.1 |
umoci SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 0.4.6-3.9.1 |
umoci SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 0.4.7-3.12.1 |
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 0.4.6-3.9.1 |
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 0.4.7-3.12.1 |
umoci SUSE:Manager Proxy 4.0 | All versions | 0.4.6-3.9.1 |
umoci SUSE:Manager Proxy 4.0 | All versions | 0.4.7-3.12.1 |
umoci SUSE:Manager Retail Branch Server 4.0 | All versions | 0.4.6-3.9.1 |
umoci SUSE:Manager Retail Branch Server 4.0 | All versions | 0.4.7-3.12.1 |
umoci SUSE:Manager Server 4.0 | All versions | 0.4.6-3.9.1 |
umoci SUSE:Manager Server 4.0 | All versions | 0.4.7-3.12.1 |
singularity SUSE:Package Hub 15 SP2 | All versions | 3.7.3-bp152.2.19.3 |
umoci openSUSE:Leap 15.2 | All versions | 0.4.6-lp152.2.3.1 |
umoci openSUSE:Leap 15.2 | All versions | 0.4.7-lp152.2.6.1 |
umoci openSUSE:Leap 15.3 | All versions | 0.4.7-3.12.1 |
umoci openSUSE:Tumbleweed | All versions | 0.4.7-2.3 |
Products include Linuxfoundation Umoci, Sylabs Singularity.
How do I fix CVE-2021-29136?
Upgrade github.com/opencontainers/umoci to 0.4.7 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-29136 being exploited?
There is no known exploitation of CVE-2021-29136 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2021-29136, GHSA-9m95-8hx6-7p9v, GO-2022-0815, OESA-2021-1151, SUSE-SU-2021:1116-1, SUSE-SU-2021:1863-1 and 7 more.