An SQL injection vulnerability exists in Mautic's API contact filtering mechanism. Due to insufficient recursive sanitization of nested query parameters, an authenticated API user can bypass input filtering and inject arbitrary SQL commands.
An authenticated user with API access can exploit this vulnerability to execute arbitrary SQL queries against the underlying database. This allows unauthorized retrieval of sensitive database contents—including user credentials, system configurations, and personal identifiable information (PII) of contacts—bypassing standard data access permissions.
This security issue has been fixed in the following releases: * 7.1.2 * 6.0.9 * 5.2.11 * 4.4.20 ELTS
We strongly recommend upgrading to the latest version corresponding to your release branch.
There are no official workarounds. To mitigate this issue without upgrading, you may temporarily disable API access or restrict API permissions to highly trusted accounts.
{
"github_reviewed_at": "2026-07-02T19:25:18Z",
"nvd_published_at": "2026-05-29T08:16:19Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-89"
],
"severity": "HIGH"
}