CVE-2026-33545: MobSF has SQL Injection in its SQLite Database Viewer Utils
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:
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.
Achieve SQL Injection – The
SELECT * FROMquery on line 557 is provably injectable viaUNION SELECT, allowing attacker-controlled data to be returned in query results. The current code structure (aPRAGMAstatement 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 →