CVE-2023-0591

Public Exploit
Path Traversal in ubi_reader

Description

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.

Remediation

Solution:

  • Upgrade to version 0.8.5

Category

5.5
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.23%
Third-Party Advisory github.com Third-Party Advisory onekey.com
Affected: jrspruitt ubi_reader
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-0591?
CVE-2023-0591 has been scored as a medium severity vulnerability.
How to fix CVE-2023-0591?
To fix CVE-2023-0591: Upgrade to version 0.8.5
Is CVE-2023-0591 being actively exploited in the wild?
It is possible that CVE-2023-0591 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-0591?
CVE-2023-0591 affects jrspruitt ubi_reader.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.