Docker cp container escape via untrusted libnss load (CVE-2019-14271)
The docker cp helper chroots into the container, then a routine archive walk resolves file owners and glibc's NSS facility lazily loads libnss modules from inside that container filesystem, so a trojaned libnss runs as root on the host.
- Product
- Docker Engine (docker cp / docker-tar helper), linked against glibc
- Vendor
- Docker, Inc. (moby)
- Affected
- 19.03.x before 19.03.1 (the Go-based docker cp helper, introduced in 19.03.0)
- Fixed in
- 19.03.1
- Weakness
- CWE-665
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 29 Jul 2019
Classified as
References
Related CVEs
- CVE-2022-0847high 7.82022
Dirty Pipe: uninitialized pipe-buffer flag overwrites read-only pages
A newly populated pipe buffer never resets its flags field, so a stale merge flag lets a later write land directly in a read-only file's page cache.
- CVE-2024-2961high 8.82024
glibc iconv ISO-2022-CN-EXT out-of-bounds write
Converting to a multibyte charset, one escape-sequence path skips its output-bounds check, writing up to 3 fixed bytes past the buffer.
- CVE-2023-4911high 7.82023
Looney Tunables: glibc ld.so GLIBC_TUNABLES buffer overflow
The loader's tunables parser copies each recognized name=value pair into a fixed-size buffer, but a malformed name=name=value string is parsed and appended twice, overflowing the buffer during setuid startup.
- CVE-2020-27950medium 5.52020
Mach trailer invalid-combination memory disclosure
An invalid combination of requested Mach message trailer elements produced a size mismatch that left four allocated bytes uninitialized before the kernel copied the trailer to userspace.