Miggo Logo

CVE-2020-8568:
Directory traversal in Kubernetes Secrets Store CSI Driver

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.62682%
Published
2/15/2022
Updated
10/2/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
sigs.k8s.io/secrets-store-csi-drivergo>= 0.0.15, < 0.0.170.0.17

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from: 1) Insecure path parsing in getPodUIDFromTargetPath() using a regex that didn't properly validate() full path structure 2) Missing validation in Reconcile/reconcile functions that allowed processing arbitrary targetPaths. The patch added critical validation checks (GetPodUIDFromTargetPath, GetVolumeNameFromTargetPath, SPCVolume) to ensure targetPath matches pod metadata, which were absent in vulnerable versions.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

Ku**rn*t*s S**r*ts Stor* *SI *riv*r v*rsions v*.*.** *n* v*.*.** *llow *n *tt**k*r w*o **n mo*i*y * `S**r*tProvi**r*l*ssPo*St*tus/St*tus` r*sour** t** **ility to writ* *ont*nt to t** *ost *il*syst*m *n* syn* *il* *ont*nts to Ku**rn*t*s S**r*ts. T*is

Reasoning

T** vuln*r**ility st*mm** *rom: *) Ins**ur* p*t* p*rsin* in `**tPo*UI**romT*r**tP*t*()` usin* * r***x t**t *i*n't prop*rly `v*li**t*()` *ull p*t* stru*tur* *) Missin* v*li**tion in `R**on*il*/r**on*il*` *un*tions t**t *llow** pro**ssin* *r*itr*ry `t*