CVE-2025-58162 MobSF Vulnerable to Arbitrary File Write (AR-Slip) via Absolute Path in .a Extraction
An authenticated user can write arbitrary files to any writable directory via a malicious archive, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-58162?
CVE-2025-58162 is a medium-severity path traversal vulnerability in Mobile-Security-Framework-MobSF, published on 2 Sep 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
MobSF is a mobile application security testing tool used. In version 4.4.0, an authenticated user who uploaded a specially prepared one.a, can write arbitrary files to any directory writable by the user of the MobSF process. This issue has been patched in version 4.4.1.
Weakness: CWE-22
Which versions are affected by CVE-2025-58162?
3 open source packages ship an affected version, including mobsf. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mobsf PyPI | All versions | 4.4.1 |
mobsf PyPI | All versions | 4.4.1 |
mobsf PyPI | All versions | 4.4.1 |
Products include Opensecurity Mobile Security Framework.
How do I fix CVE-2025-58162?
Upgrade mobsf to 4.4.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-58162 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58162 exists.
Other vulnerabilities in Mobile-Security-Framework-MobSF
- CVE-2025-46335 Mobile Security Framework (MobSF) Allows Stored Cross Site Scripting (XSS) via malicious SVG Icon Upload
- CVE-2025-24805 Local Privilege Escalation in MobSF
- CVE-2025-24803 Stored Cross-Site Scripting (XSS) in MobSF
- CVE-2026-24490 MobSF has Stored XSS via Manifest Analysis - Dialer Code Host Field
- CVE-2024-53999 Mobile Security Framework (MobSF) Stored Cross-Site Scripting Vulnerability in "Diff or Compare" Functionality
Sources
Also known as GHSA-9gh8-9r95-3fc3, PYSEC-2026-1670.