{"id":"CVE-2025-58161","published":"2025-09-02T00:45:49Z","modified":"2025-09-02T19:25:49Z","title":"MobSF Path Traversal in GET /download/<filename> using absolute filenames","vendor":"MobSF","product":"Mobile-Security-Framework-MobSF","tier":"tail","description":{"text":"MobSF is a mobile application security testing tool used. In version 4.4.0, the GET /download/ route uses string path verification via os.path.commonprefix, which allows an authenticated user to download files outside the DWD_DIR download directory from \"neighboring\" directories whose absolute paths begin with the same prefix as DWD_DIR (e.g., .../downloads_bak, .../downloads.old). This is a Directory Traversal (escape) leading to a data leak. This issue has been patched in version 4.4.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.3,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0083,"percentile":0.58489,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9","tags":["x_refsource_MISC"]},{"url":"https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":11.7},{"name":"CVSS severity","points":0.91}]},"vendorSlug":"mobsf","affectedVersions":[{"vendor":"MobSF","product":"Mobile-Security-Framework-MobSF","versions":["= 4.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-02T19:21:44.960996Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mobsf","vulnerableRanges":["<4.4.1"],"patched":["4.4.1"],"from":["GHSA-ccc3-fvfx-mw3v","PYSEC-2026-1672"],"provenance":"source"}],"summary":{"text":"The Mobile-Security-Framework-MobSF product, in the GET /download/ route of its web interface, verifies download paths using a string-prefix check that fails to confine requests to the intended download directory. An attacker with network access and a valid user account can request files from sibling directories whose absolute paths share the download directory's prefix, such as those with names like downloads_bak or downloads.old, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:20Z"},"euvd":{"id":"EUVD-2025-26369","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mobsf-mobile-security-framework-mobsf-cve-2025-24803","parents":[{"from":"CVE-2025-24803","to":"CVE-2025-58161","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["mobsf/StaticAnalyzer/views/android/views/view_source.py"],"commits":["https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/05206e72cae35b311615a70e51e1a946955c5e83","https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9"],"basis":"shared function","functions":["run"]}]},{"from":"CVE-2025-24804","to":"CVE-2025-58161","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["mobsf/StaticAnalyzer/views/android/views/view_source.py"],"commits":["https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/05206e72cae35b311615a70e51e1a946955c5e83","https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9"],"basis":"shared function","functions":["run"]}]},{"from":"CVE-2025-24805","to":"CVE-2025-58161","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["mobsf/StaticAnalyzer/views/android/views/view_source.py"],"commits":["https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/05206e72cae35b311615a70e51e1a946955c5e83","https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9"],"basis":"shared function","functions":["run"]}]}],"packageHistory":[{"cve":"CVE-2025-31116","published":"2025-03-31","fixed":"4.3.2","kev":false},{"cve":"CVE-2025-46335","published":"2025-05-05","fixed":"4.3.3","kev":false},{"cve":"CVE-2025-46730","published":"2025-05-05","fixed":"4.4.0","kev":false,"link":{"from":"CVE-2025-46730","to":"CVE-2025-58161","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mobsf","fromFixed":"4.4.0","toFixed":"4.4.1","daysApart":120},{"kind":"same-code","provenance":"machine","files":["mobsf/MobSF/views/home.py","mobsf/StaticAnalyzer/views/common/shared_func.py"],"commits":["https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/6987a946485a795f4fd38cebdb4860b368a1995d","https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9"],"basis":"shared file"}]}},{"cve":"CVE-2025-58161","published":"2025-09-02","fixed":"4.4.1","kev":false},{"cve":"CVE-2025-58162","published":"2025-09-02","fixed":"4.4.1","kev":false},{"cve":"CVE-2026-24490","published":"2026-01-27","fixed":"4.4.5","kev":false},{"cve":"CVE-2026-33545","published":"2026-03-26","fixed":"4.4.6","kev":false}],"package":"PyPI:mobsf"}}