CVE-2020-8570: Client java Path Traversal Vulnerability
HIGHCVE-2020-8570 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Client java libraries in the Maven ecosystem. The issue involves path traversal in the java kubernetes client. Remediation is available by upgrading affected packages to version 9.0.2, 10.0.1.
CVE-2020-8570 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2020-8570
To remediate this vulnerability, upgrade all affected Client java dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.kubernetes</groupId>
<artifactId>client-java</artifactId>
<version>9.0.2</version>
</dependency>
<dependency>
<groupId>io.kubernetes</groupId>
<artifactId>client-java</artifactId>
<version>10.0.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.kubernetes
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-8570, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.kubernetes
Analyze the terminal output to locate any version of Client java in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.0.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.kubernetes command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Client java, 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-2020-8570 Affected Client java Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.kubernetes:client-java
|
Maven |
< 9.0.2
|
9.0.2
|
|
io.kubernetes:client-java
|
Maven |
≥ 10.0.0
< 10.0.1
All 1 versions
10.0.0
|
10.0.1
|
References
Frequently Asked Questions
What is CVE-2020-8570?
Which Client java versions are affected?
What version fixes CVE-2020-8570?
Is client-java affected?
What is the CVSS score of CVE-2020-8570?
What CWE is associated with CVE-2020-8570?
How can I check Maven dependencies for CVE-2020-8570?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cghx-9gcr-r42x",
"modified" : "2022-10-07T20:36:09Z",
"published" : "2021-01-29T18:12:54Z",
"aliases" : [ "CVE-2020-8570" ],
"summary" : "Path Traversal in the Java Kubernetes Client",
"details" : "Kubernetes Java client libraries in version 10.0.0 and versions prior to 9.0.1 allow writes to paths outside of the current directory when copying multiple files from a remote pod which sends a maliciously crafted archive. This can potentially overwrite any files on the system of the process executing the client code.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.kubernetes:client-java"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.kubernetes:client-java"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0"
}, {
"fixed" : "10.0.1"
} ]
} ],
"versions" : [ "10.0.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8570"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes-client/java/issues/1491"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes-client/java/pull/1450"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes-client/java/commit/858316ae8bc1145005a0310e1f65f95d2389a589"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kubernetes-client/java"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/kubernetes-security-announce/c/sd5h73sFPrg"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r0c76b3d0be348f788cd947054141de0229af00c540564711e828fd40@%3Ccommits.druid.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r1975078e44d96f2a199aa90aa874b57a202eaf7f25f2fde6d1c44942@%3Ccommits.druid.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rcafa485d63550657f068775801aeb706b7a07140a8ebbdef822b3bb3@%3Ccommits.druid.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rdb223e1b82e3d7d8e4eaddce8dd1ab87252e3935cc41c859f49767b6@%3Ccommits.druid.apache.org%3E"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-01-22T18:25:27Z",
"nvd_published_at" : "2021-01-21T17:15:00Z"
}
}