{"id":"CVE-2021-29136","aliases":["ALPINE-CVE-2021-29136","DEBIAN-CVE-2021-29136","EUVD-2022-0942","GHSA-9m95-8hx6-7p9v","GO-2022-0815","MGASA-2022-0006","OESA-2021-1151","SUSE-SU-2021:1116-1","SUSE-SU-2021:1863-1","SUSE-SU-2021:1863-2","UBUNTU-CVE-2021-29136","openSUSE-SU-2021:0548-1","openSUSE-SU-2021:0810-1","openSUSE-SU-2021:0846-1","openSUSE-SU-2021:1863-1","openSUSE-SU-2024:11384-1","openSUSE-SU-2024:11482-1"],"status":"published","title":"Improper input validation in umoci","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.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00344,"percentile":0.28141,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2021-04-06T15:57:49Z","modified":"2026-11-03T06:32:38Z","fixes":[{"ecosystem":"Go","package":"github.com/opencontainers/umoci","fixed_in":["0.4.7"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.19","package":"singularity","fixed_in":["3.7.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"singularity","fixed_in":["3.7.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"singularity","fixed_in":["3.7.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"singularity","fixed_in":["3.7.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"singularity","fixed_in":["3.7.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"singularity","fixed_in":["3.7.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"umoci","fixed_in":["0.4.7-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"umoci","fixed_in":["0.4.7+ds-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"umoci","fixed_in":["0.4.7+ds-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"umoci","fixed_in":["0.4.7+ds-1"],"sources":["osv"]},{"ecosystem":"openEuler:20.03-LTS-SP1","package":"umoci","fixed_in":["0.4.5-4.oe1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP2","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Manager Proxy 4.0","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Manager Retail Branch Server 4.0","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Manager Server 4.0","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Enterprise Storage 6","package":"umoci","fixed_in":["0.4.6-3.9.1","0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP3","package":"umoci","fixed_in":["0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","package":"umoci","fixed_in":["0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.2","package":"umoci","fixed_in":["0.4.6-lp152.2.3.1","0.4.7-lp152.2.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP2","package":"singularity","fixed_in":["3.7.3-bp152.2.19.3"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.3","package":"umoci","fixed_in":["0.4.7-3.12.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"umoci","fixed_in":["0.4.7-2.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/opencontainers/umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7+ds-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7+ds-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7+ds-1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/opencontainers/umoci","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.7"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/opencontainers/umoci","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.7"}]}]},{"source":"osv","ecosystem":"Mageia:8","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.5-1.mga8"}]}],"bundled":3},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP1","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.5-4.oe1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP2","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Proxy 4.0","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Retail Branch Server 4.0","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Server 4.0","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Enterprise Storage 6","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-3.9.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP2","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP3","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Proxy 4.0","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Retail Branch Server 4.0","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Manager Server 4.0","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Enterprise Storage 6","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.4+dfsg-1","0.4.4+dfsg-5","0.4.5+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.7+ds-2","0.4.7+ds-2build1","0.4.7+ds-2ubuntu0.1"]},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-lp152.2.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP2","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-bp152.2.19.3"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-lp152.2.6.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.3","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-3.12.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"singularity","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.3-1.2"}]}],"bundled":12},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"umoci","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-2.3"}]}]}],"products":[{"vendor":"linuxfoundation","product":"umoci"},{"vendor":"sylabs","product":"singularity"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2021/04/06/2","tags":["x_refsource_MISC","x_transferred","Mailing List","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/opencontainers/umoci/security/advisories/GHSA-9m95-8hx6-7p9v","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/opencontainers/umoci/commit/d9efc31daf2206f7d3fdb839863cf7a576a2eb57","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29136","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9m95-8hx6-7p9v"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-29136","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-29136","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0006.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29027","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/BMX7XV7YNNNOVKKIOOPNENIXY64H4ZEY/","tags":["web"]},{"url":"https://github.com/sylabs/singularity/releases/tag/v3.7.4","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/U5WJLLGD3LSUWRS73C4NPIWYTMST4QO5/","tags":["web","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/D2IU6GJMCV5CQKUQZLHBP6EHSIZZXC3X/","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/L3AGIEOXZIUUEYYMWKJCJCQI7V235UTR/","tags":["web"]},{"url":"https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1151","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211116-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1184147","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2021-29136","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211863-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211863-2/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-29136","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29136","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/4ZLXPXB6GF4EU34RGTCCDHJKHSDEN5AN/","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/W5VF4ZLSQMAQ4QKWGENIWTALPCPOZDSV/","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/32XRLICOS7YBFMQSQOIJWZLGKXA56ZCP/","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2018-12021","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-19295","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-11328","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19724","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13845","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13846","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13847","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-15229","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-25039","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-25040","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-32635","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-29136","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.","status":"published","published":"2021-04-06T15:57:49Z","modified":"2024-08-03T22:02:50.955Z","updated_at":"2026-11-02T14:33:06.658806Z"}],"euvd":[{"id":"EUVD-2022-0942","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.","status":"published","published":"2021-04-06T15:57:49Z","modified":"2024-08-03T22:02:50Z","updated_at":"2026-11-03T03:24:45.541615Z"}],"ghsa":[{"id":"GHSA-9m95-8hx6-7p9v","title":"Improper input validation in umoci","description":"### Impact\n\numoci 0.4.6 and earlier can be tricked into modifying host files by\ncreating a malicious layer that has a symlink with the name \".\" (or\n\"/\"). Because umoci deletes inodes if they change types, this results in\nthe rootfs directory being replaced with an attacker-controlled symlink.\nSubsequent image layers will then be applied on top of the target of the\nsymlink (which could be any directory on the host filesystem the user\nrunning umoci has access to).\n\nWhile umoci does have defences against symlink-based attacks, they are\nall implemented by resolving things relative to the rootfs directory --\nif the rootfs itself is a symlink, umoci resolves it first.\n\nThis vulnerability affects both \"umoci unpack\" and \"umoci raw unpack\".\n\n### Patches\nThis issue has been patched in umoci 0.4.7, see the references section\nfor the specific commit which fixed this vulnerability.\n\n### Workarounds\nNote that if you use umoci as an unprivileged user (using the --rootless\nflag) then umoci will not be able to overwrite any files that your user\ndoesn't have access to. Other possible mitigations are to run umoci\nunder an LSM profile such as AppArmor or SELinux to restrict the level\nof access it has outside of container image directories.\n\n### References\n* [oss-security public disclosure](https://www.openwall.com/lists/oss-security/2021/04/06/2)\n* [patch](https://github.com/opencontainers/umoci/commit/d9efc31daf2206f7d3fdb839863cf7a576a2eb57)\n\n### Credits\nThanks to Robin Peraglie from Cure53 for discovering and reporting this\nvulnerability.\n\n### For more information\n\nIf you have any questions or comments about this advisory\n* Open an issue in \u003chttps://github.com/opencontainers/umoci\u003e.\n* Email us at \u003csecurity@opencontainers.org\u003e.","status":"published","published":"2022-02-15T01:17:37Z","modified":"2023-01-09T05:05:16Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:11.367194Z"}],"nvd":[{"id":"CVE-2021-29136","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.","status":"published","published":"2021-04-06T16:15:16.52Z","modified":"2026-06-17T03:47:20.523Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:06:51.610648Z"}],"osv":[{"id":"ALPINE-CVE-2021-29136","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.","status":"published","published":"2021-04-06T16:15:16.52Z","modified":"2026-11-03T06:32:38.92631461Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-03T07:17:20.312441Z"},{"id":"CVE-2021-29136","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.","status":"published","published":"2021-04-06T16:15:16.52Z","modified":"2026-10-24T10:50:12.365028521Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:19.129331Z"},{"id":"DEBIAN-CVE-2021-29136","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.","status":"published","published":"2021-04-06T16:15:16.52Z","modified":"2026-10-23T18:02:30.468156717Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"GHSA-9m95-8hx6-7p9v","title":"Improper input validation in umoci","description":"### Impact\n\numoci 0.4.6 and earlier can be tricked into modifying host files by\ncreating a malicious layer that has a symlink with the name \".\" (or\n\"/\"). Because umoci deletes inodes if they change types, this results in\nthe rootfs directory being replaced with an attacker-controlled symlink.\nSubsequent image layers will then be applied on top of the target of the\nsymlink (which could be any directory on the host filesystem the user\nrunning umoci has access to).\n\nWhile umoci does have defences against symlink-based attacks, they are\nall implemented by resolving things relative to the rootfs directory --\nif the rootfs itself is a symlink, umoci resolves it first.\n\nThis vulnerability affects both \"umoci unpack\" and \"umoci raw unpack\".\n\n### Patches\nThis issue has been patched in umoci 0.4.7, see the references section\nfor the specific commit which fixed this vulnerability.\n\n### Workarounds\nNote that if you use umoci as an unprivileged user (using the --rootless\nflag) then umoci will not be able to overwrite any files that your user\ndoesn't have access to. Other possible mitigations are to run umoci\nunder an LSM profile such as AppArmor or SELinux to restrict the level\nof access it has outside of container image directories.\n\n### References\n* [oss-security public disclosure](https://www.openwall.com/lists/oss-security/2021/04/06/2)\n* [patch](https://github.com/opencontainers/umoci/commit/d9efc31daf2206f7d3fdb839863cf7a576a2eb57)\n\n### Credits\nThanks to Robin Peraglie from Cure53 for discovering and reporting this\nvulnerability.\n\n### For more information\n\nIf you have any questions or comments about this advisory\n* Open an issue in \u003chttps://github.com/opencontainers/umoci\u003e.\n* Email us at \u003csecurity@opencontainers.org\u003e.","status":"published","published":"2022-02-15T01:17:37Z","modified":"2026-07-08T06:28:59.258005536Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:43.875515Z"},{"id":"OESA-2021-1151","title":"umoci security update","description":"Umoci modifies Open Container images. Umoci intends to be a complete manipulation tool for OCI images. In particular, it should be seen as a more end-user-focused version of the oci-image-tools provided by the OCI.\r\n\r\nSecurity Fix(es):\r\n\r\nOpen Container Initiative umoci before 0.4.7 allows attackers to overwrite arbitrary host paths via a crafted image that causes symlink traversal when \u0026quot;umoci unpack\u0026quot; or \u0026quot;umoci raw unpack\u0026quot; is used.(CVE-2021-29136)","status":"published","published":"2021-05-06T11:04:23Z","modified":"2026-08-18T01:15:29.647767928Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:38.987987Z"},{"id":"UBUNTU-CVE-2021-29136","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.","status":"published","published":"2021-04-06T16:15:00Z","modified":"2025-10-24T04:50:15Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"GO-2022-0815","title":"Improper input validation in umoci in github.com/opencontainers/umoci","description":"Improper input validation in umoci in github.com/opencontainers/umoci","status":"published","published":"2024-08-21T15:29:02Z","modified":"2026-03-03T04:50:56.673388Z","updated_at":"2026-11-02T15:47:00.918515Z"},{"id":"MGASA-2022-0006","title":"Updated singularity packages fix security vulnerability","description":"A dependency used to extract docker/OCI image layers can be tricked into\nmodifying host files by creating a malicious layer that has a symlink with\nthe name \".\" (or \"/\"), when running as root. (CVE-2021-29136)\nDde to incorrect use of a default URL, `singularity` action commands\n(`run`/`shell`/`exec`) specifying a container using a `library://` URI\nwill always attempt to retrieve the container from the default remote\nendpoint (`cloud.sylabs.io`) rather than the configured remote endpoint.\nAn attacker may be able to push a malicious container to the default\nremote endpoint with a URI that is identical to the URI used by a victim\nwith a non-default remote endpoint, thus executing the malicious container.\nOnly action commands (`run`/`shell`/`exec`) against `library://` URIs are\naffected. Other commands such as `pull` / `push` respect the configured\nremote endpoint. (CVE-2021-32635)\nIf a Content-Type header changed between two pulls of the same digest, a\nclient may interpret the resulting content differently. (CVE-2021-41190)\n","status":"published","published":"2022-01-05T22:45:33Z","modified":"2026-04-16T04:41:44.323902955Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"openSUSE-SU-2021:0548-1","title":"Security update for umoci","description":"This update for umoci fixes the following issues:\n\n- Update to umoci v0.4.6.\n- CVE-2021-29136: malicious layer allows overwriting of host files (bsc#1184147)\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2021-04-13T08:23:04Z","modified":"2026-02-04T03:46:20.448867Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:0810-1","title":"Security update for singularity","description":"This update for singularity fixes the following issues:\n\nsingularity was updated to version 3.7.3:\n\n- Fix for CVE-2021-29136:\n  A dependency used to extract docker/OCI image layers can be\n  tricked into modifying host files by creating a malicious layer\n  that has a symlink with the name '.' (or '/'), when running as root.\n","status":"published","published":"2021-05-30T12:05:05Z","modified":"2026-02-04T03:58:12.658217Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:0846-1","title":"Security update for umoci","description":"This update for umoci fixes the following issues:\n\nUpdate to v0.4.7 (bsc#1184147).\n\n- CVE-2021-29136: Fixed overwriting of host files via malicious layer (bsc#1184147).\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2021-06-07T05:03:00Z","modified":"2026-02-04T03:34:37.183377Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:1863-1","title":"Security update for umoci","description":"This update for umoci fixes the following issues:\n\nUpdate to v0.4.7 (bsc#1184147).\n\n- CVE-2021-29136: Fixed overwriting of host files via malicious layer (bsc#1184147).\n","status":"published","published":"2021-07-27T14:23:32Z","modified":"2026-02-04T02:35:58.849841Z","updated_at":"2026-11-02T16:58:32.266854Z"},{"id":"openSUSE-SU-2024:11384-1","title":"singularity-3.8.3-1.2 on GA media","description":"These are all security issues fixed in the singularity-3.8.3-1.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:36:28.928556Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"openSUSE-SU-2024:11482-1","title":"umoci-0.4.7-2.3 on GA media","description":"These are all security issues fixed in the umoci-0.4.7-2.3 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:27:44.57649Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2021:1116-1","title":"Security update for umoci","description":"This update for umoci fixes the following issues:\n\n- Update to umoci v0.4.6.\n- CVE-2021-29136: malicious layer allows overwriting of host files (bsc#1184147)\n","status":"published","published":"2021-04-09T08:57:18Z","modified":"2026-02-04T03:25:22.256721Z","updated_at":"2026-11-02T15:53:49.138643Z"},{"id":"SUSE-SU-2021:1863-1","title":"Security update for umoci","description":"This update for umoci fixes the following issues:\n\nUpdate to v0.4.7 (bsc#1184147).\n\n- CVE-2021-29136: Fixed overwriting of host files via malicious layer (bsc#1184147).\n","status":"published","published":"2021-06-04T09:16:48Z","modified":"2026-02-04T04:15:23.182946Z","updated_at":"2026-11-02T15:53:49.138643Z"},{"id":"SUSE-SU-2021:1863-2","title":"Security update for umoci","description":"This update for umoci fixes the following issues:\n\nUpdate to v0.4.7 (bsc#1184147).\n\n- CVE-2021-29136: Fixed overwriting of host files via malicious layer (bsc#1184147).\n","status":"published","published":"2021-07-27T14:23:30Z","modified":"2026-02-04T02:53:53.995608Z","updated_at":"2026-11-02T15:53:49.138643Z"}]}}
