Miggo Logo

CVE-2024-25620: Helm dependency management path traversal

6.4

CVSS Score
3.1

Basic Information

EPSS Score
0.38508%
Published
2/15/2024
Updated
2/15/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
helm.sh/helm/v3go<= 3.14.03.14.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from multiple functions handling chart names without proper path sanitization. Key issues were:

  1. SaveDir/writeTarContents used chart names directly in path construction
  2. Metadata validation didn't check for path components
  3. Linting rules allowed invalid names All were patched by adding filepath.Base() checks and name validation, as seen in the commit diffs. The functions directly processing chart names without sanitization were the root cause.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* **lm *ontri*utor *is*ov*r** * p*t* tr*v*rs*l vuln*r**ility w**n **lm s*v*s * ***rt in*lu*in* *t *ownlo** tim*. ### Imp**t W**n *it**r t** **lm *li*nt or S*K is us** to s*v* * ***rt w*os* n*m* wit*in t** `***rt.y*ml` *il* in*lu**s * r*l*tiv* p*t*

Reasoning

T** vuln*r**ility st*mm** *rom multipl* *un*tions **n*lin* ***rt n*m*s wit*out prop*r p*t* s*nitiz*tion. K*y issu*s w*r*: *. S*v**ir/writ*T*r*ont*nts us** ***rt n*m*s *ir**tly in p*t* *onstru*tion *. M*t***t* v*li**tion *i*n't ****k *or p*t* *ompon*n