{"cve":"CVE-2023-0591","nvd":{"published":"2023-01-31T10:15:10.253","modified":"2026-06-17T05:25:53.177","status":"Modified","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).\n\nThis 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.\n\n\n\nThis issue affects ubi-reader before 0.8.5.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5},"cwes":["CWE-22"],"references":["https://github.com/jrspruitt/ubi_reader/pull/57","https://onekey.com/blog/security-advisory-remote-command-execution-in-binwalk/","https://github.com/jrspruitt/ubi_reader/pull/57","https://onekey.com/blog/security-advisory-remote-command-execution-in-binwalk/"],"products":["ubi_reader_project:ubi_reader"],"source":"nvd","synced_at":"2026-10-19T21:37:38.595364862+00:00"},"epss":{"cve":"CVE-2023-0591","score":0.00394,"percentile":0.33575,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vp2x-3mc3-3cj4","url":"https://osv.dev/vulnerability/GHSA-vp2x-3mc3-3cj4","summary":"Path traversal in ubi-reader","modified":"2024-11-18T23:22:44.551816Z","packages":[{"ecosystem":"PyPI","name":"ubi-reader","purl":"pkg:pypi/ubi-reader","ranges":["<0.8.5"],"fixed":["0.8.5"]}]},{"id":"PYSEC-2023-51","url":"https://osv.dev/vulnerability/PYSEC-2023-51","summary":"","modified":"2026-06-10T17:02:47.934398306Z","packages":[{"ecosystem":"PyPI","name":"ubi-reader","purl":"pkg:pypi/ubi-reader","ranges":["<0.8.5"],"fixed":["0.8.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}