CVE-2025-58161
CVE-2025-58161 · MobSF Path Traversal in GET /download/<filename> using absolute filenames
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 1.3 · Low · EPSS 0.8% · Fix available
- Published
- Updated
Stack: python
Affected products and versions
mobile-security-framework-mobsf
- Versions
- = 4.4.0: Affected
No fix published
mobsf PyPI
- Versions
- 3.2.6
- 3.2.7
- 3.2.8
- 3.2.9
- 3.3.3
- 3.3.5
- 3.4.0
- 3.4.3
- 3.4.6
- 3.5.0
- 3.6.0
- 3.6.9
- 3.7.6
- 3.9.7
- 4.1.3
- 4.3.0
- 4.3.2
- 4.4.0
- Affected ranges
- ECOSYSTEM: < 4.4.1
Update to 4.4.1
Original sources
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1
- https://nvd.nist.gov/vuln/detail/CVE-2025-58161