# 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...

Advisory record · `GHSA-vp2x-3mc3-3cj4`

- **Identifiers:** `GHSA-vp2x-3mc3-3cj4` · `CVE-2023-0591` · `PYSEC-2023-51`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 31 Jan 2023
- **Updated:** 10 Jun 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 31 Jan 2023, 10:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `ubi-reader` (PyPI): affected `<0.8.5`; fixed in `0.8.5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> ubi-reader versions before 0.8.5 are vulnerable to path traversal in ubireader_extract_files. A user who extracts a specially crafted UBIFS file can have node names used to write files outside the extraction directory, overwriting files the process has write access to. Upgrade to ubi-reader 0.8.5 or later.

Written 10 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`, from CNA (ONEKEY)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0040, the 35th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 31 Jan 2023. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-vp2x-3mc3-3cj4](https://github.com/advisories/GHSA-vp2x-3mc3-3cj4)
- [OSV: GHSA-vp2x-3mc3-3cj4](https://osv.dev/vulnerability/GHSA-vp2x-3mc3-3cj4)
- <https://onekey.com/blog/security-advisory-remote-command-execution-in-binwalk/>
- <https://github.com/jrspruitt/ubi_reader/pull/57>
- <https://github.com/advisories/GHSA-vp2x-3mc3-3cj4>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-vp2x-3mc3-3cj4>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-vp2x-3mc3-3cj4/>. Everything for agents: <https://agentprime.io/llms.txt>.
