CVE-2023-0591
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-03-26 |
Timeline
- 2023-01-31Published by the CNA09:18 UTC
- 2023-01-31GitHub advisory published (GHSA-vp2x-3mc3-3cj4)same day
- 2025-03-26CISA SSVC decision recorded785 days after publication
Exploit and advisory records
GitHub advisory GHSA-vp2x-3mc3-3cj4, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI ubi-reader | before 0.8.5 | 0.8.5 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| ubi_reader_project ubi_reader | before 0.8.5fixed in 0.8.5 | 0.8.5 |
References
- https://github.com/jrspruitt/ubi_reader/pull/57
- https://onekey.com/blog/security-advisory-remote-command-execution-in-binwalk/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2023-0591'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2023-0591'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2023-0591'curl 'https://api.contrastcyber.com/cve_products/CVE-2023-0591'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).