Miggo Logo

CVE-2020-26312: dotmesh arbitrary file read and/or write

8.1

CVSS Score
3.1

Basic Information

EPSS Score
0.43004%
Published
5/14/2024
Updated
5/14/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/dotmesh-io/dotmeshgo<= 0.8.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from how untarFile handles symbolic links. While it uses filepath.Clean and checks for absolute paths, it fails to properly resolve nested relative symlink chains. The proof-of-concept demonstrates that creating a symlink to '..' within the archive root (allowed) followed by another symlink using that path as a base can escape the extraction directory. The function's validation logic in the tar.TypeSymlink case (lines 255-260 in tar.go) doesn't account for cumulative path traversal through multiple symlink layers, making it vulnerable to directory escape attacks.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*otm*s* is * *it-lik* *omm*n*-lin* int*r**** *or **pturin*, or**nizin* *n* s**rin* *ppli**tion st*t*s. In v*rsions *.*.* *n* prior, t** uns*** **n*lin* o* sym*oli* links in *n unp**kin* routin* m*y *n**l* *tt**k*rs to r*** *n*/or writ* to *r*itr*ry l

Reasoning

T** vuln*r**ility st*ms *rom *ow `unt*r*il*` **n*l*s sym*oli* links. W*il* it us*s `*il*p*t*.*l**n` *n* ****ks *or **solut* p*t*s, it **ils to prop*rly r*solv* n*st** r*l*tiv* symlink ***ins. T** proo*-o*-*on**pt **monstr*t*s t**t *r**tin* * symlink