Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-0591

MEDIUM 5.5PoCEPSS 23%

Path Traversal in ubi_reader

Also known as GHSA-vp2x-3mc3-3cj4, PYSEC-2023-51

Mitigation

  • Upgrade ubi-reader to 0.8.5 or later.

Who should check

  • Projects that depend on PyPI package ubi-reader (< 0.8.5)
  • Anyone running jrspruitt ubi_reader < 0.8.5

Vulnerability facts

Affected
ubi-reader < 0.8.5
Fixed in
0.8.5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
EPSS
0.36% chance of exploitation in 30 days (percentile 23, 2026-11-26)
CWE
CWE-22
Published
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). 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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI ubi-reader< 0.8.50.8.5osv
jrspruitt ubi_reader< 0.8.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-0591. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-0591.md
Affected: ubi-reader < 0.8.5
Fixed in: 0.8.5

Steps:
1. Search this machine and project for ubi-reader (PyPI), jrspruitt ubi_reader: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-0591 being exploited?

There is no confirmed exploitation: CVE-2023-0591 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.36% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-0591?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2023-0591?

ubi-reader < 0.8.5.

Is there a fix for CVE-2023-0591?

Yes. Fixed in 0.8.5. Upgrade ubi-reader to 0.8.5 or later.

How do I check if I'm affected by CVE-2023-0591?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors