CVE-2016-3697 · redhat
CVE-2016-3697
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.
Published 2016-06-01, last changed 2026-06-17. Weakness: CWE-264.
How to fix
Upgrade to a fixed version: github.com/opencontainers/runc 0.1.0 (Go). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in opencontainers/runc by pull request #708, 69af385de6, 8e129e0972. Functions changed by the fix: GetExecUserPath, GetExecUser, parseLine, ParsePasswdFilter, ParseGroupFilter. Regression tests: libcontainer/user/user_test.go. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2016-06-01 | Published |
| 2021-04-14 | Package advisory GO-2021-0070 |
| 2021-12-20 | Package advisory GHSA-q3j5-32m5-58c2 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.42% |
| 2026-12-05 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-q3j5-32m5-58c2 | github.com/opencontainers/runc (Go) | 0.1.0 |
| GO-2021-0070 | github.com/opencontainers/runc (Go) | 0.1.0 |
Also known as: GHSA-q3j5-32m5-58c2, GO-2021-0070
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-41579 | 2026-07-01 | 3.3 | runc: Malicious image with /dev symlink can trigger limited host filesystem integrity violations |
| CVE-2025-52881 | 2025-11-06 | 7.5 | runc: LSM labels can be bypassed with malicious config using dummy procfs files |
| CVE-2025-52565 | 2025-11-06 | 7.5 | container escape due to /dev/console mount and related races |
| CVE-2025-31133 | 2025-11-06 | 7.8 | runc container escape via "masked path" abuse due to mount race conditions |
| CVE-2025-27612 | 2025-03-21 | 5.9 | Libcontainer is affected by capabilities elevation |
| CVE-2024-45310 | 2024-09-03 | 3.6 | runc can be confused to create empty files/directories on the host |
| CVE-2024-21626 | 2024-01-31 | 8.6 | runc container breakout through process.cwd trickery and leaked fds |
| CVE-2023-28642 | 2023-03-29 | 7.8 | AppArmor bypass with symlinked /proc in runc |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-3697, or call /api/v1/vulnerabilities/CVE-2016-3697. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.