Container escape via chrooted NSS library loading
Published Oct 29, 2023 · Updated Sep 9, 2024
Container escape in openEuler iSulad allows local users controlling a container to execute host code by invoking isula cp to copy files from it. The archive_chroot_tar path enters the container root filesystem while preparing an archive, allowing glibc name-service lookup to load attacker-supplied NSS libraries from that chroot. The attacker must control the source container and invoke the host-side copy operation; successful exploitation crosses the container boundary with the copy process's privileges.
Summary
What happened
Container escape in openEuler iSulad allows local users controlling a container to execute host code by invoking isula cp to copy files from it. The archive_chroot_tar path enters the container root filesystem while preparing an archive, allowing glibc name-service lookup to load attacker-supplied NSS libraries from that chroot. The attacker must control the source container and invoke the host-side copy operation; successful exploitation crosses the container boundary with the copy process's privileges.
The record
- CVE
- CVE-2021-33638
- Published
- Oct 29, 2023
- Updated
- Sep 9, 2024
- Vendor
- openEuler
- Product
- iSulad
- Classifications
- CWE-665, CAPEC-480, T1611
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 29, 2023CVE publishedPublication date reported by the CVE source.
- Sep 9, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=2.0.8-20210518.144540.git5288ed93,2.0.18-10,2.1.2 changes=[{"at":"0102-fix-loading-of-nsswitch-based-config-inside-chr.patch","status":"unaffected"},{"at":"0106-fix-loading-of-nsswitch-based-config-inside-chroot-u.patch","status":"unaffected"}]
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo