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

- Severity: Low 1.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-02T00:45:49.996Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-ccc3-fvfx-mw3v, PYSEC-2026-1672
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- MobSF Mobile-Security-Framework-MobSF: = 4.4.0
- mobsf (PyPI): before 4.4.1
- opensecurity mobile_security_framework: 4.4.0

## Every score

- GitHub_M: CVSS:4.0 1.3 Low `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`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v> (exploit, third-party-advisory, web)
- <https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9> (patch, web)
- <https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1> (release-notes, web)
- <https://github.com/MobSF/Mobile-Security-Framework-MobSF> (package)
- <https://pypi.org/project/mobsf> (package)
- <https://github.com/advisories/GHSA-ccc3-fvfx-mw3v> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58161> (advisory)

## Sources

- CVE List: [CVE-2025-58161](https://www.cve.org/CVERecord?id=CVE-2025-58161), CVE Terms of Use, modified 2025-09-02
- GitHub Advisory Database: [GHSA-ccc3-fvfx-mw3v](https://github.com/advisories/GHSA-ccc3-fvfx-mw3v), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-58161](https://nvd.nist.gov/vuln/detail/CVE-2025-58161), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1672](https://osv.dev/vulnerability/PYSEC-2026-1672), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-58161 · Whole record: https://cve.day/CVE-2025-58161.json · Rebuilt by cve.day 2026-11-25T22:59:03.981Z
