SecurityContext

CVE-2025-58161: MobSF - Directory Traversal

  • Cve: CVE-2025-58161
  • Name: MobSF - Directory Traversal
  • 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.
  • Impact: Authenticated users can download arbitrary files outside the intended directory, leading to data leakage.
  • Remediation: Upgrade to version 4.4.1.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure, file_system_read
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
  • Epss score: 0.0083
  • Epss percentile: 0.58489
  • Assignee: [email protected]
  • Published at: 2025-09-02T01:15:30Z
  • Age in days: 448
  • Modified at: 2026-10-19T17:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-58161
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3vnvd2025-09-02

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/7f3bc086c028c1b50889cab8a15f7b59b7abdaf9Patch
https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-ccc3-fvfx-mw3vExploit, Third Party Advisory
https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.1Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
opensecurity:mobile_security_framework= 4.4.0nonvd/v1/products/opensecurity/mobile_security_framework

Projects

RepositoryLink kindsIndexedUrl
MobSF/Mobile-Security-Framework-MobSFcommit, fix, package, releases, security_advisoryyes/v1/repositories/MobSF/Mobile-Security-Framework-MobSF

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-09-02
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts