CVE-2025-58161 MobSF Path Traversal in GET /download/<filename> using absolute filenames
LowCVSS 1.3
EPSS 0.83%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi mobsf(PyPI) | < 4.4.1; <= 4.4.0; = 3.2.6; = 3.2.7 +16 more | 4.4.1 | Fixed |
| MobSF Mobile-Security-Framework-MobSF | = = 4.4.0 | No fix listed | Versions listed |
| opensecurity mobile security framework | = 4.4.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi mobsf(PyPI) | < 4.4.1 | 4.4.1 |
| pypi mobsf(PyPI) | = 3.2.6 | No fix listed |
| pypi mobsf(PyPI) | = 3.2.7 | No fix listed |
| pypi mobsf(PyPI) | = 3.2.8 | No fix listed |
| pypi mobsf(PyPI) | = 3.2.9 | No fix listed |
| pypi mobsf(PyPI) | = 3.3.3 | No fix listed |
| pypi mobsf(PyPI) | = 3.3.5 | No fix listed |
| pypi mobsf(PyPI) | = 3.4.0 | No fix listed |
| pypi mobsf(PyPI) | = 3.4.3 | No fix listed |
| pypi mobsf(PyPI) | = 3.4.6 | No fix listed |
| pypi mobsf(PyPI) | = 3.5.0 | No fix listed |
| pypi mobsf(PyPI) | = 3.6.0 | No fix listed |
| pypi mobsf(PyPI) | = 3.6.9 | No fix listed |
| pypi mobsf(PyPI) | = 3.7.6 | No fix listed |
| pypi mobsf(PyPI) | = 3.9.7 | No fix listed |
| pypi mobsf(PyPI) | = 4.1.3 | No fix listed |
| pypi mobsf(PyPI) | = 4.3.0 | No fix listed |
| pypi mobsf(PyPI) | = 4.3.2 | No fix listed |
| pypi mobsf(PyPI) | = 4.4.0 | No fix listed |
| pypi mobsf(PyPI) | <= 4.4.0 | No fix listed |
| MobSF Mobile-Security-Framework-MobSF | = = 4.4.0 | No fix listed |
| opensecurity mobile security framework | = 4.4.0 | No fix listed |
References
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v exploit third-party-advisory vendor-advisory
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9 patch
- github.com product
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1 release-notes
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory