Miggo Logo

CVE-2024-24579: stereoscope vulnerable to tar path traversal when processing OCI tar archives

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.17291%
Published
1/31/2024
Updated
2/2/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/anchore/stereoscopego< 0.0.10.0.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly lists these three components as vulnerable entry points. The commit diff shows UntarToDirectory lacked path traversal checks (no 'strings.HasPrefix' validation) prior to patching. The TarballImageProvider and Image.Read functions are architectural parents that would utilize this vulnerable untarring logic when processing OCI archives, as indicated in both the advisory and CVE description.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t It is possi*l* to *r**t *n O*I t*r *r**iv* t**t, w**n st*r*os*op* *tt*mpts to un*r**iv* t** *ont*nts, will r*sult in writin* to p*t*s outsi** o* t** un*r**iv* t*mpor*ry *ir**tory. Sp**i*i**lly, us* o* `*it*u*.*om/*n**or*/st*r*os*op*/pk*/*i

Reasoning

T** vuln*r**ility **s*ription *xpli*itly lists t**s* t*r** *ompon*nts *s vuln*r**l* *ntry points. T** *ommit *i** s*ows Unt*rTo*ir**tory l**k** p*t* tr*v*rs*l ****ks (no 'strin*s.**sPr**ix' v*li**tion) prior to p*t**in*. T** T*r**llIm***Provi**r *n*