CVE Catalog

CVE-2025-58161

MediumCVSS 4.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.82%

57th percentile - higher than 57% of all known CVEs

Summary

In MobSF version 4.4.0, the GET /download/ route uses os.path.commonprefix for path verification, allowing an authenticated user to download files outside the DWD_DIR download directory from neighboring directories whose absolute paths share the same prefix (e.g., downloads_bak, downloads.old). This is a directory traversal leading to data leakage. The issue is patched in version 4.4.1.

Risk Assessment

An authenticated user can read files outside the intended directory, potentially leaking sensitive data from the server.

Recommendation

Update MobSF to version 4.4.1 or later, which contains the fix for this issue.

Other vulnerabilities in MobSF

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS