CVE-2019-11251: K8s.io/kubernetes Kubernetes Kubectl Cp Vulnerable To Vulnerability
MODERATECVE-2019-11251 is a MODERATE (CVSS 5.7) kubernetes kubectl cp vulnerable to vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting K8s.io/kubernetes libraries in the Go ecosystem. The issue involves kubernetes kubectl cp vulnerable to symlink attack. Remediation is available by upgrading affected packages to version 1.13.11, 1.14.7, 1.16.0.
CVE-2019-11251 at a Glance
Security Impact
CVSS: 5.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2019-11251
To remediate this vulnerability, upgrade all affected K8s.io/kubernetes 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 k8s.io/kubernetes to 1.13.11
Upgrade k8s.io/kubernetes to 1.14.7
Upgrade k8s.io/kubernetes to 1.16.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for k8s.io/kubernetes
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-11251, inspect your project dependencies for K8s.io/kubernetes:
inspect dependencies for k8s.io/kubernetes
Analyze the terminal output to locate any version of K8s.io/kubernetes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.11), 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-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In K8s.io/kubernetes, 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-2019-11251 Affected K8s.io/kubernetes Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
k8s.io/kubernetes
|
Go |
≥ 1.13.10
< 1.13.11
|
1.13.11
|
|
k8s.io/kubernetes
|
Go |
≥ 1.14.6
< 1.14.7
|
1.14.7
|
|
k8s.io/kubernetes
|
Go |
≥ 1.15.3
< 1.16.0
|
1.16.0
|
References
Frequently Asked Questions
What is CVE-2019-11251?
Which K8s.io/kubernetes versions are affected?
What version fixes CVE-2019-11251?
Is k8s.io/kubernetes affected?
What is the CVSS score of CVE-2019-11251?
What CWE is associated with CVE-2019-11251?
How can I check Go dependencies for CVE-2019-11251?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6qfg-8799-r575",
"modified" : "2023-09-18T20:30:39Z",
"published" : "2021-05-18T15:30:07Z",
"aliases" : [ "CVE-2019-11251" ],
"summary" : "Kubernetes kubectl cp Vulnerable to Symlink Attack",
"details" : "The Kubernetes kubectl cp command in versions 1.1-1.12, and versions prior to 1.13.11, 1.14.7, and 1.15.4 allows a combination of two symlinks provided by tar output of a malicious container to place a file outside of the destination directory specified in the kubectl cp invocation. This could be used to allow an attacker to place a nefarious file using a symlink, outside of the destination tree.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "k8s.io/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.13.10"
}, {
"fixed" : "1.13.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "k8s.io/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.14.6"
}, {
"fixed" : "1.14.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "k8s.io/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.15.3"
}, {
"fixed" : "1.16.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11251"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/issues/87773"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/pull/82143"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/d/msg/kubernetes-announce/YYtEFdFimZ4/nZnOezZuBgAJ"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59", "CWE-61" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-17T21:58:06Z",
"nvd_published_at" : null
}
}