MobSF Path Traversal in GET /download/<filename> using absolute filenames
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MobSF | Mobile-Security-Framework-MobSF | = 4.4.0 | — | No fix listed | CNA |
| — | mobsf (PyPI) | before 4.4.1 | 4.4.1 | Patch available | GHSA-ccc3-fvfx-mw3v |
- Mobile-Security-Framework-MobSF VendorMobSF Affected = 4.4.0 Fixed in — No fix listed CNA
- mobsf (PyPI) Vendor— Affected before 4.4.1 Fixed in 4.4.1 Patch available GHSA-ccc3-fvfx-mw3v
Remediation
- Fix · GHSA-ccc3-fvfx-mw3v mobsf (PyPI) Fixed in 4.4.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58161
- 2026-10-03 Alias added: GHSA-ccc3-fvfx-mw3v
References
Exploit 1
More MobSF Mobile Security Framework vulnerabilities
- TI-2024-29048 Mobile Security Framework (MobSF) has a Zip Slip Vulnerability in .a Static Library Files CVSS 3.1CRITICAL 9.8
- TI-2025-22377 Mobile Security Framework (MobSF) has a SSRF Vulnerability fix bypass on assetlinks_check with DNS Rebinding CVSS 3.1CRITICAL 9.8
- TI-2025-29076 Mobile Security Framework (MobSF) Allows Stored Cross Site Scripting (XSS) via malicious SVG Icon Upload CVSS 4.0HIGH 8.6
- TI-2025-18522 Local Privilege Escalation in MobSF CVSS 4.0HIGH 8.5
- TI-2025-18520 Stored Cross-Site Scripting (XSS) in MobSF CVSS 4.0HIGH 8.4
- TI-2024-36155 Mobile Security Framework (MobSF) bypass of SSRF fix CVSS 3.1HIGH 7.5
Sources
- CVE-2025-58161 · CVE Program
- CVE-2025-58161 · NVD
- FIRST EPSS
- GHSA-ccc3-fvfx-mw3v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences