Path Traversal in Jrspruitt Ubi Reader
CVE-2023-0591
ubireader_extract_files is vulnerable to path traversal when run against specifically crafted UBIFS files, allowing the attacker to overwrite files outside of the extraction directory (provided the process has write access to that file or directory). This is due to the fact that a node name (dent_node.name) is considered trusted and joined to the extraction directory path during processing, then the node content is written to that joined path. By crafting a malicious UBIFS file with node names holding path traversal payloads (e.g. ../../tmp/outside.txt), it's possible to force ubi_reader to write outside of the extraction directory. This issue affects ubi-reader before 0.8.5.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS: 0.004 (31.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 31st percentile — 31.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Jrspruitt Ubi Reader — versions 0
- Ubi Reader Project
Weakness classification (CWE)
References
- github.com/jrspruitt/ubi_reader/pull/57 (Patch, Third Party Advisory)
- onekey.com/blog/security-advisory-remote-command-execution-in-binwalk/ (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2023-0591?
- CVE-2023-0591 is a medium-severity vulnerability in Jrspruitt Ubi Reader, classified under Path Traversal. CVSS score: 5.5/10. Published 2023-01-31.
- How severe is CVE-2023-0591?
- Medium severity. CVSS v3 base score is 5.5 out of 10.