Vulnerability Description
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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Opensecurity | Mobile Security Framework | 4.4.0 |
Related Weaknesses (CWE)
References
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b5Patch
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1Release Notes
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSExploitThird Party Advisory
FAQ
What is CVE-2025-58161?
CVE-2025-58161 is a vulnerability with a CVSS score of 4.3 (MEDIUM). 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 downl...
How severe is CVE-2025-58161?
CVE-2025-58161 has been rated MEDIUM with a CVSS base score of 4.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-58161?
Check the references section above for vendor advisories and patch information. Affected products include: Opensecurity Mobile Security Framework.