CVE-2025-31116: Mobile Security Framework (MobSF) has a SSRF Vulnerability fix bypass on assetlinks_check with DNS Rebinding

CVE-2025-31116 · Severity: low · CVSS 3.1 · Published 2025-03-31

Mobile Security Framework (MobSF) is a pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. The mitigation for CVE-2024-29190 in valid_host() uses socket.gethostbyname(), which is vulnerable to SSRF abuse using DNS rebinding technique. This vulnerability is fixed in 4.3.2.

Technologies: mobsf (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2025-31116 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-31116 being exploited in the wild.
How severe is CVE-2025-31116?
Low severity, with a CVSS score of 3.1, published 31 March 2025.
Which products and versions are affected?
mobsf (PyPI) ECOSYSTEM:introduced=0,fixed=4.3.2, GIT:introduced=0,fixed=4b8bab5a9858c69fe13be4631b82d82186e0d3bd|ECOSYSTEM:introduced=0,fixed=4.3.2.
Is there a fix for CVE-2025-31116?
Yes. mobsf (PyPI): upgrade to 4.3.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-31116?
Check whether you run mobsf (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • mobsf (PyPI): upgrade to 4.3.2 or later
    pip install "mobsf>=4.3.2"

Affected products

  • mobsf (PyPI) ECOSYSTEM:introduced=0,fixed=4.3.2, GIT:introduced=0,fixed=4b8bab5a9858c69fe13be4631b82d82186e0d3bd|ECOSYSTEM:introduced=0,fixed=4.3.2

Identifiers

  • CVE-2025-31116
  • GHSA-fcfq-m8p6-gw56
  • PYSEC-2025-48

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.