{"answers":{"affected":"3 open source packages ship an affected version, including ubi-reader. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-4572 in the wild and no public exploit code.","fix":"Upgrade ubi-reader to a fixed version for your release line: 0.8.2 or 0.8.5.","what":"CVE-2022-4572 is a medium-severity path traversal vulnerability in unspecified UBI Reader, published on 17 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-4572 and fix it if it is affected.\n\nWhat it is: CVE-2022-4572 is a medium-severity path traversal vulnerability in unspecified UBI Reader, published on 17 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-4572 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ubi-reader (PyPI): affected all versions; fixed in 0.8.2\n- ubi-reader (PyPI): affected all versions; fixed in 0.8.5\n- ubi-reader (PyPI): affected all versions; fixed in 0.8.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-4572/ (Markdown: https://insights.sbomify.com/CVE-2022-4572/index.md)","id":"CVE-2022-4572","markdown":"https://insights.sbomify.com/CVE-2022-4572/index.md","name":"CVE-2022-4572","record":{"aliases":["GHSA-hc37-84v3-8gmq","PYSEC-2022-43016"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python UBI Reader library","requires_auth":"none","summary":"Attackers can exploit a path traversal flaw in the UBI Reader library to read or write arbitrary files when processing malicious UBIFS images.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"ubi_reader","vendor":"ubi_reader_project"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"UBI Reader UBIFS File output.py ubireader_extract_files path traversal","id":"CVE-2022-4572","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":3,"n_references":4,"next":{"headline":"Other in ThinkPad X1 Fold Gen 1","id":"CVE-2022-4573"},"packages":[{"ecosystem":"PyPI","fixed":["0.8.2"],"introduced":["0"],"last_affected":[],"package":"ubi-reader","purl":"pkg:pypi/ubi-reader","source":"PYSEC-2022-43016"},{"ecosystem":"PyPI","fixed":["0.8.5"],"introduced":["0"],"last_affected":[],"package":"ubi-reader","purl":null,"source":"GHSA-hc37-84v3-8gmq"},{"ecosystem":"PyPI","fixed":["0.8.5"],"introduced":["0"],"last_affected":[],"package":"ubi-reader","purl":"pkg:pypi/ubi-reader","source":"GHSA-hc37-84v3-8gmq"}],"prev":{"headline":"Seriously Simple Podcasting \u003c 2.19.1 - Contributor+ Stored XSS","id":"CVE-2022-4571"},"products":["UBI Reader"],"published":"2022-12-17","related":[{"cvss_score":5.5,"headline":"Path Traversal in ubi_reader","id":"CVE-2023-0591","kev_date_added":null,"published":"2023-01-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-15","vendors":["unspecified"]},"summary":"Attackers can exploit a path traversal flaw in the UBI Reader library to read or write arbitrary files when processing malicious UBIFS images.","url":"https://insights.sbomify.com/CVE-2022-4572/"}