{"schemaVersion":4,"id":"CVE-2022-4572","aliases":["GHSA-hc37-84v3-8gmq","PYSEC-2022-43016"],"status":"published","duplicateOf":null,"title":"UBI Reader UBIFS File output.py ubireader_extract_files path traversal","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.","dates":{"published":"2022-12-17T00:00:00.000Z","modified":"2025-04-15T13:01:40.705Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.9,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","exploitability":4.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00588,"percentile":0.49571,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00588},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00588,"percentile":0.49571}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00583,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00776,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00588,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00588,"percentile":0.49571}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"PyPI","product":"ubi-reader","name":"ubi-reader","label":"ubi-reader","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/ubi-reader","purlType":"pypi","versions":[{"text":"< 0.8.5","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.8.5","endInclusive":false}},{"text":"< d5d68e6b1b9f7070c29df5f67fc060f579ae9139","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"d5d68e6b1b9f7070c29df5f67fc060f579ae9139","endInclusive":false}},{"text":"< 0.8.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.8.2","endInclusive":false}}],"versionsText":"< 0.8.5 | < d5d68e6b1b9f7070c29df5f67fc060f579ae9139 | < 0.8.2","eol":null,"hubHref":null},{"vendor":"ubi_reader_project","product":"ubi_reader","name":"ubi reader","label":"ubi_reader","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.8.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.8.0","endInclusive":true}}],"versionsText":"≤ 0.8.0","eol":null,"hubHref":"/vendor/ubi_reader_project/ubi_reader"},{"vendor":"unspecified","product":"ubi reader","name":"UBI Reader","label":"ubi reader","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.1","startInclusive":true,"end":"0.1","endInclusive":true}},{"text":"0.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.2","startInclusive":true,"end":"0.2","endInclusive":true}},{"text":"0.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.3","startInclusive":true,"end":"0.3","endInclusive":true}},{"text":"0.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.4","startInclusive":true,"end":"0.4","endInclusive":true}},{"text":"0.5","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.5","startInclusive":true,"end":"0.5","endInclusive":true}},{"text":"0.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.6","startInclusive":true,"end":"0.6","endInclusive":true}},{"text":"0.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.7","startInclusive":true,"end":"0.7","endInclusive":true}},{"text":"0.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.8","startInclusive":true,"end":"0.8","endInclusive":true}}],"versionsText":"0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8","eol":null,"hubHref":"/vendor/unspecified/ubi_reader"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/jrspruitt/ubi_reader/pull/57","label":"github.com/jrspruitt/ubi_reader/pull/57","hostname":"github.com","tags":["WEB","REPORT","FIX","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/jrspruitt/ubi_reader/releases/tag/v0.8.5-master","label":"github.com/jrspruitt/ubi_reader/releases/tag/v0.8.5-master","hostname":"github.com","tags":["WEB","Release Notes","Third Party Advisory"]},{"url":"https://github.com/jrspruitt/ubi_reader/commit/d5d68e6b1b9f7070c29df5f67fc060f579ae9139","label":"github.com/jrspruitt/ubi_reader/commit/d5d68e6b1b9f7070c29df5f67fc060f579ae9139","hostname":"github.com","tags":["WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://vuldb.com/?id.216146","label":"vuldb.com?id.216146","hostname":"vuldb.com","tags":["WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4572","label":"nvd.nist.gov/vuln/detail/CVE-2022-4572","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jrspruitt/ubi_reader","label":"github.com/jrspruitt/ubi_reader","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ubi-reader/PYSEC-2022-43016.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/ubi-reader/PYSEC-2022-43016.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-hc37-84v3-8gmq","label":"github.com/advisories/GHSA-hc37-84v3-8gmq","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-12-17T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-15T13:01:40.705Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,54],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00588,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-04-15T13:01:40.705Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_pypi","date":"2025-04-15T13:01:40.705Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.9,"vector":"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","version":"4.0"},{"type":"cvss","source":"osv_pypi","date":"2025-04-15T13:01:40.705Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-04-15T13:01:40.705Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-04-14T17:03:00.399Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00588,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:10:07.921Z","stale":false,"partial":false}}