{"id":"CVE-2025-58161","summary":"MobSF Path Traversal in GET /download/\u003cfilename\u003e using absolute filenames","details":"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.","aliases":["GHSA-ccc3-fvfx-mw3v","PYSEC-2026-1672"],"modified":"2026-08-12T03:51:18.164761499Z","published":"2025-09-02T00:45:49.996Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58161.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"= 4.4.0"},{"last_affected":"= 4.4.0"}]}],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58161.json"},{"type":"ADVISORY","url":"https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58161"},{"type":"FIX","url":"https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mobsf/mobile-security-framework-mobsf","events":[{"introduced":"0"},{"fixed":"7f3bc086c028c1b50889cab8a15f7b59b7abdaf9"}],"database_specific":{"source":"REFERENCES"}}],"versions":["v4.3.2","v4.3.0","v4.1.3","v4.0.7","v3.9.7","v3.7.6","v3.6.9","v3.6.0","v3.5.0","v3.4.6","v3.4.3","v3.4.0","v3.3.5","v3.3.3","v3.2.9","v3.2.8","v3.2.6","v3.1.1","v3.0.5","v3.0.1","v3.0.0","v2.0.0","v1.1.6","v1.1.5","v1.0.3Beta","v0.9.5.5","v0.9.5.4","v0.9.5.2","v0.9.5","v0.9.4.2","v0.9.4.1","v0.9.4","v0.9.3.7","v0.9.3.6","v0.9.3.5","v0.9.3.3","v0.9.3.2","v0.9.3.1","v0.9.3","v0.9.2","0.9.1","0.9","0.8.8.2","0.8.8.1","0.8.8","0.8.7","0.8.6","0.8.5","0.8.4","0.8.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58161.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}