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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 52, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-hc37-84v3-8gmq, PYSEC-2022-43016
- **Published:** 2022-12-17T00:00:00.000Z
- **Modified:** 2026-06-17T05:21:14.237Z

## Who should check

- Projects that depend on PyPI package ubi-reader (\< 0.8.5)
- Anyone running unspecified UBI Reader 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8

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

## Affected and fixed versions

- PyPI `ubi-reader`: affected \< 0.8.5; fixed 0.8.5, 0.8.2 (osv)
- unspecified UBI Reader: 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8 (cvelist)

## Mitigation

- Upgrade ubi-reader to one of 0.8.5, 0.8.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-4572. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-4572.md
Affected: ubi-reader < 0.8.5
Fixed in: 0.8.5, 0.8.2

Steps:
1. Search this machine and project for ubi-reader (PyPI), unspecified 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.
```

## FAQ

### Is CVE-2022-4572 being exploited?

There is no confirmed exploitation: CVE-2022-4572 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-4572?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-4572?

ubi-reader \< 0.8.5.

### Is there a fix for CVE-2022-4572?

Yes. Fixed in 0.8.5, 0.8.2. Upgrade ubi-reader to one of 0.8.5, 0.8.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-4572?

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.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-4572>
- vendor: <https://github.com/advisories/GHSA-hc37-84v3-8gmq>
- patch: <https://github.com/jrspruitt/ubi_reader/pull/57>
- patch: <https://github.com/jrspruitt/ubi_reader/commit/d5d68e6b1b9f7070c29df5f67fc060f579ae9139>
- other: <https://github.com/jrspruitt/ubi_reader/releases/tag/v0.8.5-master>
- other: <https://vuldb.com/?id.216146>
- other: <https://github.com/jrspruitt/ubi_reader>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/ubi-reader/PYSEC-2022-43016.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-4572>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hc37-84v3-8gmq> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2022-43016> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-4572> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-4572>
