Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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