CVE-2026-3105: Mautic is Vulnerable to SQL Injection through Contact Activity API Sorting
Summary This advisory addresses a SQL Injection vulnerability in the API endpoint used for retrieving contact activities. A vulnerability exists in the query construction for the Contact Activity timeline where the parameter responsible for determining the sort direction was not strictly validated against an allowlist, potentially allowing authenticated users to inject arbitrary SQL commands via the API.
Published Feb 25, 2026 · Updated Mar 4, 2026
Affected packages
mautic/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.10.0, < 5.2.10
- Fixed in
- 5.2.10
- Check
composer show mautic/core
mautic/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.0.0-alpha, < 6.0.8
- Fixed in
- 6.0.8
- Check
composer show mautic/core
mautic/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0.0-alpha, < 7.0.1
- Fixed in
- 7.0.1
- Check
composer show mautic/core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
This advisory addresses a SQL Injection vulnerability in the API endpoint used for retrieving contact activities. A vulnerability exists in the query construction for the Contact Activity timeline where the parameter responsible for determining the sort direction was not strictly validated against an allowlist, potentially allowing authenticated users to inject arbitrary SQL commands via the API.
Mitigation
Please update to 5.2.10, 6.0.8, 7.0.1 or later.
Workarounds
None.
References
If there are any questions or comments about this advisory:
Email Mautic at [[email protected]](mailto:[email protected])
Credited to q1uf3ng, patrykgruszka, escopecz.
References
- https://github.com/mautic/mautic/security/advisories/GHSA-r5j5-q42h-fc93
- https://nvd.nist.gov/vuln/detail/CVE-2026-3105
- https://github.com/mautic/mautic/releases/tag/5.2.10
- https://github.com/mautic/mautic/releases/tag/6.0.8
- https://github.com/mautic/mautic/releases/tag/7.0.1
- https://github.com/advisories/GHSA-r5j5-q42h-fc93
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-4776
Mautic has SQL Injection in API Contact Filtering
high7.1No fixJul 2, 2026CVE-2026-9557
Mautic Focus component Vulnerable to SSRF
medium6.4No fixJul 2, 2026CVE-2026-9558
Mautic has Server-Side Template Injection (SSTI) in Theme Templates
critical9.9No fixJul 2, 2026CVE-2026-9559
Mautic vulnerable to Path Traversal via Campaign Import
critical9.9Jul 2, 2026CVE-2026-9808
Mautic has an Authorization Bypass in API v2 Endpoints
high7.1Jul 2, 2026CVE-2026-9809
Mautic has Stored Cross-Site Scripting (XSS) in Projects Component
high7.6Jul 2, 2026
