# CVE-2022-4572: UBI Reader UBIFS File output.py ubireader_extract_files path traversal

- Severity: Medium 5.4 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2022-12-17T00:00:00.000Z
- Modified: 2026-06-17T05:21:14.237Z
- Also known as: GHSA-hc37-84v3-8gmq, PYSEC-2022-43016
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

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

(As written by CVE List.)

## Affected

- unspecified UBI Reader: 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8
- ubi-reader (PyPI): before 0.8.5; before d5d68e6b1b9f7070c29df5f67fc060f579ae9139; before 0.8.2
- ubi_reader_project ubi_reader: up to 0.8.0

## Every score

- VulDB: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 7.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://github.com/jrspruitt/ubi_reader/pull/57> (fix, issue-tracking, patch, report, third-party-advisory, web)
- <https://github.com/jrspruitt/ubi_reader/releases/tag/v0.8.5-master> (release-notes, third-party-advisory, web)
- <https://github.com/jrspruitt/ubi_reader/commit/d5d68e6b1b9f7070c29df5f67fc060f579ae9139> (fix, patch, third-party-advisory, web)
- <https://vuldb.com/?id.216146> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4572> (advisory)
- <https://github.com/jrspruitt/ubi_reader> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ubi-reader/PYSEC-2022-43016.yaml> (web)
- <https://github.com/advisories/GHSA-hc37-84v3-8gmq> (advisory)

## Sources

- CVE List: [CVE-2022-4572](https://www.cve.org/CVERecord?id=CVE-2022-4572), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-hc37-84v3-8gmq](https://github.com/advisories/GHSA-hc37-84v3-8gmq), CC-BY-4.0, modified 2024-11-18
- NVD: [CVE-2022-4572](https://nvd.nist.gov/vuln/detail/CVE-2022-4572), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43016](https://osv.dev/vulnerability/PYSEC-2022-43016), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2022-4572 · Whole record: https://cve.day/CVE-2022-4572.json · Rebuilt by cve.day 2026-11-25T22:58:17.653Z
