CVE-2019-5736

high
Published 2019-05-07 ยท Modified 2019-05-07
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
9.0

Description

RHSA-2019:0975: container-tools:rhel8 security and bug fix update (Important)

Predictions

Exploit likelihood
55%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-46359 local linux text ยท 1 KB
feexd ยท 2019-02-12

runc < 1.0-rc6 (Docker < 18.09.2) - Container Breakout (1)

text exploit Source: Exploit-DB
# Usage
Edit HOST inside `payload.c`, compile with `make`. Start `nc` and run `pwn.sh` inside the container.

# Notes
- This exploit is destructive: it'll overwrite `/usr/bin/docker-runc` binary *on the host* with the
payload. It'll also overwrite `/bin/sh` inside the container.
- Tested only on Debian 9.
- No attempts were made to make it stable or reliable, it's only tested to work when a `docker exec
<id> /bin/sh` is issued on the host.

More complete explanation [here](https://github.com/lxc/lxc/commit/6400238d08cdf1ca20d49bafb85f4e224348bf9d).

Download: https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/46359.zip
EDB-46369 local linux
embargo ยท 2019-02-13

runc < 1.0-rc6 (Docker < 18.09.2) - Container Breakout (2)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Docker Container Escape Via runC Overwrite
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 1:18.09.2-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 1:3.1.0+really3.0.3-4
sid Fixed 1:3.1.0+really3.0.3-4
forky Fixed 1:3.1.0+really3.0.3-4
bullseye Fixed 1:3.1.0+really3.0.3-4
bookworm Fixed 1:3.1.0+really3.0.3-4
redhat Red Hat Fixed 1 release
VersionStatusFixed in
8 Fixed โ€”
rockylinux Rocky Linux Fixed 1 release
VersionStatusFixed in
8 Fixed โ€”

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.