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

CVE-2026-33545: MobSF has SQL Injection in its SQLite Database Viewer Utils

March 24, 2026

MobSF’s read_sqlite() function in mobsf/MobSF/utils.py (lines 542-566) uses Python string formatting (%) to construct SQL queries with table names read from a SQLite database’s sqlite_master table. When a security analyst uses MobSF to analyze a malicious mobile application containing a crafted SQLite database, attacker-controlled table names are interpolated directly into SQL queries without parameterization or escaping.

This allows an attacker to:

  1. Cause Denial of Service – A malicious table name causes the database viewer to crash, preventing the analyst from viewing ANY data in the SQLite database. A malicious app can use this to hide sensitive data (C2 server URLs, stolen credentials, API keys) from MobSF’s analysis.

  2. Achieve SQL Injection – The SELECT * FROM query on line 557 is provably injectable via UNION SELECT, allowing attacker-controlled data to be returned in query results. The current code structure (a PRAGMA statement that runs first on line 553) limits the full exploitation chain, but the underlying code is verifiably injectable.

References

  • github.com/MobSF/Mobile-Security-Framework-MobSF
  • github.com/MobSF/Mobile-Security-Framework-MobSF/commit/6f8a43c1b78d21cfbd7186aaafa7f622d990e0f1
  • github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.4.6
  • github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-hqjr-43r5-9q58
  • github.com/advisories/GHSA-hqjr-43r5-9q58
  • nvd.nist.gov/vuln/detail/CVE-2026-33545

Code Behaviors & Features

Detect and mitigate CVE-2026-33545 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.4.6

Fixed versions

  • 4.4.6

Solution

Upgrade to version 4.4.6 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/mobsf/CVE-2026-33545.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 25 Mar 2026 00:17:47 +0000.