CVE-2016-3697
docker: privilege escalation via confusion of usernames and UIDs
Overview
Description
libcontainer/user/user.go in runC before 0.1.0, as used in Docker before 1.11.2, improperly treats a numeric UID as a potential username, which allows local users to gain privileges via a numeric username in the password file in a container.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-264
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Go | github.com/opencontainers/runc | <0.1.0 | 0.1.0 |
Open a package to see all its vulnerabilities.
Operating systems · 18 fixes
Oracle Linux 1 release · 1 package
fixed 1
docker-engine
| Release | Package | Fixed in |
|---|---|---|
| 7 | docker-engine +1 | 1.10.3-1.0.3.el7 |
Red Hat 1 release · 1 package
fixed 2
docker
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | docker +7 | 0:1.10.3-57.el7 | RHSA-2016:2634 |
| 7 | docker +4 | 0:1.9.1-40.el7 | RHSA-2016:1034 |
SUSE Linux Enterprise 5 releases · 1 package
fixed 5
docker-stable
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | docker-stable +1 | 24.0.9_ce-1.20.1 | SUSE-SU-2025:03540-1 |
| 15.4 | docker-stable +1 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
| 15.5 | docker-stable +1 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
| 15.6 | docker-stable +2 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
| 15.7 | docker-stable +2 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
debian 4 releases · 1 package
fixed 4
runc
| Release | Package | Fixed in |
|---|---|---|
| 11 | runc | 0.1.0+dfsg-1 |
| 12 | runc | 0.1.0+dfsg-1 |
| 13 | runc | 0.1.0+dfsg-1 |
| 14 | runc | 0.1.0+dfsg-1 |
echo 1 release · 1 package
fixed 1
runc
| Release | Package | Fixed in |
|---|---|---|
| runc | 0.1.0+dfsg-1 |
openSUSE 1 release · 3 packages
fixed 3
docker-stable-buildx
docker
docker-stable
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | docker-stable-buildx | 0.25.0-15.1 | openSUSE-SU-2025:15589-1 |
| Tumbleweed | docker +3 | 1.12.3-4.1 | openSUSE-SU-2024:10532-1 |
| Tumbleweed | docker-stable +4 | 24.0.9_ce-15.1 | openSUSE-SU-2025:15589-1 |
chainguard 1 release · 1 package
not affected 1
runc
| Release | Package | Fixed in |
|---|---|---|
| runc | not affected |
wolfi 1 release · 1 package
not affected 1
runc
| Release | Package | Fixed in |
|---|---|---|
| runc | not affected |
References
- lists.opensuse.org http://lists.opensuse.org/opensuse-updates/2016-05/msg00111.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2016-1034.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2016-2634.html
- access.redhat.com https://access.redhat.com/security/cve/CVE-2016-3697
- github.com https://github.com/docker/docker/commit/da38ac6c79fe902ed0687afc73d731c95c6d491a (docker)
- github.com https://github.com/docker/docker/issues/21436
- github.com https://github.com/opencontainers/runc
- github.com https://github.com/opencontainers/runc/commit/69af385de62ea68e2e608335cffbb0f4aa3db091
- github.com https://github.com/opencontainers/runc/commit/69af385de62ea68e2e608335cffbb0f4aa3db091 (runc, v0.1.0)
- github.com https://github.com/opencontainers/runc/pull/708
Show all 20 references
- github.com https://github.com/opencontainers/runc/releases/tag/v0.1.0
- linux.oracle.com https://linux.oracle.com/cve/CVE-2016-3697.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2016-3568.html
- lists.opensuse.org https://lists.opensuse.org/opensuse-updates/2016-05/msg00111.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2016-3697
- pkg.go.dev https://pkg.go.dev/vuln/GO-2021-0070
- rhn.redhat.com https://rhn.redhat.com/errata/RHSA-2016-1034.html
- rhn.redhat.com https://rhn.redhat.com/errata/RHSA-2016-2634.html
- security.gentoo.org https://security.gentoo.org/glsa/201612-28
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2016-3697
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.