CVE-2016-3697: Github.com/opencontainers/runc Privilege Elevation Vulnerability
HIGHCVE-2016-3697 is a HIGH (CVSS 7.8) privilege elevation vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/opencontainers/runc libraries in the Go ecosystem. The issue involves privilege elevation in runc. Remediation is available by upgrading affected packages to version 0.1.0.
CVE-2016-3697 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-3697
To remediate this vulnerability, upgrade all affected Github.com/opencontainers/runc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/opencontainers/runc to 0.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/opencontainers/runc
How to Check if You Are Affected
To determine whether your application is affected by CVE-2016-3697, inspect your project dependencies for Github.com/opencontainers/runc:
inspect dependencies for github.com/opencontainers/runc
Analyze the terminal output to locate any version of Github.com/opencontainers/runc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Github.com/opencontainers/runc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-3697 Affected Github.com/opencontainers/runc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/opencontainers/runc
|
Go |
< 0.1.0
|
0.1.0
|
References
Frequently Asked Questions
What is CVE-2016-3697?
Which Github.com/opencontainers/runc versions are affected?
What version fixes CVE-2016-3697?
Is github.com/opencontainers/runc affected?
What is the CVSS score of CVE-2016-3697?
What CWE is associated with CVE-2016-3697?
How can I check Go dependencies for CVE-2016-3697?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q3j5-32m5-58c2",
"modified" : "2024-05-20T19:40:50Z",
"published" : "2021-12-20T18:21:34Z",
"aliases" : [ "CVE-2016-3697" ],
"summary" : "Privilege Elevation in runc",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/opencontainers/runc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-3697"
}, {
"type" : "WEB",
"url" : "https://github.com/docker/docker/issues/21436"
}, {
"type" : "WEB",
"url" : "https://github.com/opencontainers/runc/pull/708"
}, {
"type" : "WEB",
"url" : "https://github.com/opencontainers/runc/commit/69af385de62ea68e2e608335cffbb0f4aa3db091"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opencontainers/runc"
}, {
"type" : "WEB",
"url" : "https://github.com/opencontainers/runc/releases/tag/v0.1.0"
}, {
"type" : "WEB",
"url" : "https://lists.opensuse.org/opensuse-updates/2016-05/msg00111.html"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2021-0070"
}, {
"type" : "WEB",
"url" : "https://rhn.redhat.com/errata/RHSA-2016-1034.html"
}, {
"type" : "WEB",
"url" : "https://rhn.redhat.com/errata/RHSA-2016-2634.html"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201612-28"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-1034.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2634.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-20T18:53:49Z",
"nvd_published_at" : null
}
}