CVE-2025-58162 MobSF Vulnerable to Arbitrary File Write (AR-Slip) via Absolute Path in .a Extraction

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
mobsf PyPIAll versions4.4.1
mobsf PyPIAll versions4.4.1
mobsf PyPIAll versions4.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.

Sources

Also known as GHSA-9gh8-9r95-3fc3, PYSEC-2026-1670.

Is CVE-2025-58162 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free