Path Traversal in Mobsf Mobile-Security-Framework-Mobsf

CVE-2025-58161

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 class: Path Traversal (Directory Traversal)

EPSS: 0.007 (50.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-58161?
CVE-2025-58161 is a medium-severity vulnerability in Mobsf Mobile-Security-Framework-Mobsf, classified under Path Traversal. CVSS score: 4.3/10. Published 2025-09-02.
How severe is CVE-2025-58161?
Medium severity. CVSS v3 base score is 4.3 out of 10.