CVE-2020-8568: Sigs.k8s.io/secrets store csi driver Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-5cgx-vhfp-6cf9
CVSS 6.5
CWE-24 CWE-20 CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-8568
GHSA Identifier GHSA-5cgx-vhfp-6cf9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-24: Path Traversal: '../filedir'
Affected Product Sigs.k8s.io/secrets store csi driver
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

sigs.k8s.io/secrets-store-csi-driver fixed: 0.0.17
Upgrade sigs.k8s.io/secrets-store-csi-driver to 0.0.17
Verify Direct and Transitive Dependencies

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

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. ### Specific Go Packages Affected sigs.k8s.io/secrets-store-csi-driver/controllers sigs.k8s.io/secrets-store-csi-driver/pkg/rotation sigs.k8s.io/secrets-store-csi-driver/pkg/secrets-store

CVE-2020-8568 Affected Sigs.k8s.io/secrets store csi driver Versions

1 component(s)
Fixed Versions:
0.0.17
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?
CVE-2020-8568 is a security vulnerability in Sigs.k8s.io/secrets store csi driver involving Directory traversal in Kubernetes Secrets Store CSI Driver under CWE-24: Path Traversal: '../filedir'.
Which Sigs.k8s.io/secrets store csi driver versions are affected?
Affected versions include releases prior to 0.0.17 across affected packages: sigs.k8s.io/secrets-store-csi-driver.
What version fixes CVE-2020-8568?
Upgrading to 0.0.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sigs.k8s.io/secrets-store-csi-driver affected?
Yes, sigs.k8s.io/secrets-store-csi-driver is affected in releases prior to 0.0.17. Upgrade your dependency to 0.0.17 or later.
What is the CVSS score of CVE-2020-8568?
CVE-2020-8568 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2020-8568?
CVE-2020-8568 is classified under CWE-24: Path Traversal: '../filedir' (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.).
How can I check Go dependencies for CVE-2020-8568?
Run the dependency tree command: 'inspect dependencies for sigs.k8s.io/secrets-store-csi-driver'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}