# CVE-2016-3697: Privilege Elevation in runc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-264
- **Aliases:** GHSA-q3j5-32m5-58c2, GO-2021-0070
- **Published:** 2016-06-01T20:00:00.000Z
- **Modified:** 2026-09-10T03:49:10.275Z

## Who should check

- Projects that depend on Go package github.com/opencontainers/runc (\< 0.1.0)
- Anyone running n/a (versions: see the vendor advisory)

## 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.

## Affected and fixed versions

- Go `github.com/opencontainers/runc`: affected \< 0.1.0; fixed 0.1.0 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade github.com/opencontainers/runc to 0.1.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2016-3697. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2016-3697.md
Affected: github.com/opencontainers/runc < 0.1.0
Fixed in: 0.1.0

Steps:
1. Search this machine and project for github.com/opencontainers/runc (Go), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2016-3697 being exploited?

There is no confirmed exploitation: CVE-2016-3697 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2016-3697?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2016-3697?

github.com/opencontainers/runc \< 0.1.0.

### Is there a fix for CVE-2016-3697?

Yes. Fixed in 0.1.0. Upgrade github.com/opencontainers/runc to 0.1.0 or later.

### How do I check if I'm affected by CVE-2016-3697?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <http://rhn.redhat.com/errata/RHSA-2016-1034.html>
- vendor: <http://lists.opensuse.org/opensuse-updates/2016-05/msg00111.html>
- vendor: <http://rhn.redhat.com/errata/RHSA-2016-2634.html>
- vendor: <https://security.gentoo.org/glsa/201612-28>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2016-3697>
- patch: <https://github.com/opencontainers/runc/releases/tag/v0.1.0>
- patch: <https://github.com/docker/docker/issues/21436>
- patch: <https://github.com/opencontainers/runc/pull/708>
- patch: <https://github.com/opencontainers/runc/commit/69af385de62ea68e2e608335cffbb0f4aa3db091>
- other: <https://github.com/opencontainers/runc>
- other: <https://lists.opensuse.org/opensuse-updates/2016-05/msg00111.html>
- other: <https://pkg.go.dev/vuln/GO-2021-0070>
- other: <https://rhn.redhat.com/errata/RHSA-2016-1034.html>
- other: <https://rhn.redhat.com/errata/RHSA-2016-2634.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2016-3697>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q3j5-32m5-58c2> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2021-0070> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2016-3697> · JSON: <https://flawdb.com/api/v1/entries/CVE-2016-3697>
