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)
EPSS: 0.004 (31.7th percentile) — read the EPSS interpretation.
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.
Affected products
- Jrspruitt Ubi_reader — versions 0
- Ubi_reader_project Ubi_reader
Weakness classification (CWE)
References
- research@onekey.com (Patch, Third Party Advisory)
- research@onekey.com (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.