Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mobsf
  4. ›
  5. CVE-2025-58161

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

September 2, 2025 (updated November 10, 2025)

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.

References

  • github.com/MobSF/Mobile-Security-Framework-MobSF
  • github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9
  • github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1
  • github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3v
  • github.com/advisories/GHSA-ccc3-fvfx-mw3v
  • nvd.nist.gov/vuln/detail/CVE-2025-58161

Code Behaviors & Features

Detect and mitigate CVE-2025-58161 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.4.1

Fixed versions

  • 4.4.1

Solution

Upgrade to version 4.4.1 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/mobsf/CVE-2025-58161.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.