CVE-2020-8568: Sigs.k8s.io/secrets store csi driver Path Traversal Vulnerability
MODERATECVE-2020-8568 is a MODERATE (CVSS 6.5) path traversal vulnerability (CWE-24: Path Traversal: '../filedir') affecting Sigs.k8s.io/secrets store csi driver libraries in the Go ecosystem. The issue involves directory traversal in kubernetes secrets store csi driver. Remediation is available by upgrading affected packages to version 0.0.17.
CVE-2020-8568 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2020-8568
To remediate this vulnerability, upgrade all affected Sigs.k8s.io/secrets store csi driver 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 sigs.k8s.io/secrets-store-csi-driver to 0.0.17
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sigs.k8s.io/secrets-store-csi-driver
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-8568, inspect your project dependencies for Sigs.k8s.io/secrets store csi driver:
inspect dependencies for sigs.k8s.io/secrets-store-csi-driver
Analyze the terminal output to locate any version of Sigs.k8s.io/secrets store csi driver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.17), 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-24: Path Traversal: '../filedir', where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "../" sequences that can resolve to a location that is outside of that directory. In Sigs.k8s.io/secrets store csi driver, 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-8568 Affected Sigs.k8s.io/secrets store csi driver Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sigs.k8s.io/secrets-store-csi-driver
|
Go |
≥ 0.0.15
< 0.0.17
|
0.0.17
|
References
Frequently Asked Questions
What is CVE-2020-8568?
Which Sigs.k8s.io/secrets store csi driver versions are affected?
What version fixes CVE-2020-8568?
Is sigs.k8s.io/secrets-store-csi-driver affected?
What is the CVSS score of CVE-2020-8568?
What CWE is associated with CVE-2020-8568?
How can I check Go dependencies for CVE-2020-8568?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5cgx-vhfp-6cf9",
"modified" : "2023-10-02T11:38:19Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2020-8568" ],
"summary" : "Directory traversal in Kubernetes Secrets Store CSI Driver",
"details" : "Kubernetes Secrets Store CSI Driver versions v0.0.15 and v0.0.16 allow an attacker who can modify a `SecretProviderClassPodStatus/Status` resource the ability to write content to the host filesystem and sync file contents to Kubernetes Secrets. This includes paths under `var/lib/kubelet/pods` that contain other Kubernetes Secrets.\n\n### Specific Go Packages Affected\nsigs.k8s.io/secrets-store-csi-driver/controllers\nsigs.k8s.io/secrets-store-csi-driver/pkg/rotation\nsigs.k8s.io/secrets-store-csi-driver/pkg/secrets-store",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "sigs.k8s.io/secrets-store-csi-driver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.15"
}, {
"fixed" : "0.0.17"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8568"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes-sigs/secrets-store-csi-driver/issues/378"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes-sigs/secrets-store-csi-driver/pull/371"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes-sigs/secrets-store-csi-driver/commit/c2cbb19e2eef16638fa0523383788a4bc22231fd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kubernetes-sigs/secrets-store-csi-driver"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/kubernetes-secrets-store-csi-driver/c/Cb9cvymTzl4"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0629"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-22", "CWE-24" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-12T21:44:15Z",
"nvd_published_at" : null
}
}