Vulnerability · Published Sep 2, 2025 · Assigned by GitHub_M
CVE-2025-58161MobSF Path Traversal in GET /download/<filename> using absolute filenames
Low 1.3
In plain English
A low-severity path traversal in Mobile-Security-Framework-MobSF from MobSF. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | mobsf | 4.4.1 | GHSA-ccc3-fvfx-mw3v |
| PyPI | mobsf | 4.4.1 | PYSEC-2026-1672 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MobSF | Mobile-Security-Framework-MobSF | = 4.4.0 |
Weakness: CWE-22 · 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
References
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v x_refsource_CONFIRM
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9 x_refsource_MISC
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1 x_refsource_MISC