Miggo Logo

CVE-2023-0591: Path traversal in ubi-reader

5.5

CVSS Score
3.1

Basic Information

EPSS Score
0.47317%
Published
1/31/2023
Updated
11/18/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
ubi-readerpip< 0.8.50.8.5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from how dent_node.name was handled in extract_dents. The pre-patch code joined user-controlled node names (dent_node.name) with the output path without sanitization. The commit diff shows the vulnerability was fixed by adding an is_safe_path check specifically in extract_dents, confirming this was the vulnerable function. The CVE description explicitly cites node name handling as the root cause, and the patch modifies this function's logic to add security checks.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

u*ir****r_*xtr**t_*il*s is vuln*r**l* to p*t* tr*v*rs*l w**n run ***inst sp**i*i**lly *r**t** U*I*S *il*s, *llowin* t** *tt**k*r to ov*rwrit* *il*s outsi** o* t** *xtr**tion *ir**tory (provi*** t** pro**ss **s writ* ****ss to t**t *il* or *ir**tory).

Reasoning

T** vuln*r**ility st*ms *rom *ow **nt_no**.n*m* w*s **n*l** in *xtr**t_**nts. T** pr*-p*t** *o** join** us*r-*ontroll** no** n*m*s (**nt_no**.n*m*) wit* t** output p*t* wit*out s*nitiz*tion. T** *ommit *i** s*ows t** vuln*r**ility w*s *ix** *y ***in*