CVE-2026-3105: Mautic/core SQL Injection Vulnerability

HIGH
Advisory Identifier: GHSA-r5j5-q42h-fc93
CVSS 7.6
CWE-89
Published
Advisory Summary

CVE-2026-3105 is a HIGH (CVSS 7.6) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Mautic/core libraries in the Packagist ecosystem. The issue involves mautic is vulnerable to sql injection through contact activity api sorting. Remediation is available by upgrading affected packages to version 5.2.10, 6.0.8, 7.0.1.

CVE-2026-3105 at a Glance

CVE Identifier CVE-2026-3105
GHSA Identifier GHSA-r5j5-q42h-fc93
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Mautic/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-3105

To remediate this vulnerability, upgrade all affected Mautic/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mautic/core fixed: 5.2.10
Upgrade mautic/core to 5.2.10
mautic/core fixed: 6.0.8
Upgrade mautic/core to 6.0.8
mautic/core fixed: 7.0.1
Upgrade mautic/core to 7.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mautic/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-3105, inspect your project dependencies for Mautic/core:

inspect dependencies for mautic/core

Analyze the terminal output to locate any version of Mautic/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.10), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Mautic/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 [security@mautic.org](mailto:security@mautic.org)

CVE-2026-3105 Affected Mautic/core Versions

3 component(s)
Fixed Versions:
5.2.106.0.87.0.1
Product / Package Ecosystem Affected Versions Fixed Version
mautic/core
Packagist
≥ 2.10.0
< 5.2.10
5.2.10
mautic/core
Packagist
≥ 6.0.0-alpha
< 6.0.8
6.0.8
mautic/core
Packagist
≥ 7.0.0-alpha
< 7.0.1
7.0.1

References

Frequently Asked Questions

What is CVE-2026-3105?
CVE-2026-3105 is a security vulnerability in Mautic/core involving Mautic is Vulnerable to SQL Injection through Contact Activity API Sorting under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Mautic/core versions are affected?
Affected versions include releases prior to 5.2.10, 6.0.8, 7.0.1 across affected packages: mautic/core.
What version fixes CVE-2026-3105?
Upgrading to 5.2.10, 6.0.8, 7.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mautic/core affected?
Yes, mautic/core is affected in releases prior to 5.2.10, 6.0.8, 7.0.1. Upgrade your dependency to 5.2.10, 6.0.8, 7.0.1 or later.
What is the CVSS score of CVE-2026-3105?
CVE-2026-3105 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L.
What CWE is associated with CVE-2026-3105?
CVE-2026-3105 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check Packagist dependencies for CVE-2026-3105?
Run the dependency tree command: 'inspect dependencies for mautic/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r5j5-q42h-fc93",
  "modified" : "2026-02-25T19:28:39Z",
  "published" : "2026-02-25T19:28:39Z",
  "aliases" : [ "CVE-2026-3105" ],
  "summary" : "Mautic is Vulnerable to SQL Injection through Contact Activity API Sorting",
  "details" : "### Summary\nThis 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.\n\n### Mitigation\n\nPlease update to **5.2.10**, **6.0.8**, **7.0.1** or later.\n\n### Workarounds\n\nNone.\n\n### References\n\nIf there are any questions or comments about this advisory:\n\nEmail Mautic at [security@mautic.org](mailto:security@mautic.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0"
      }, {
        "fixed" : "5.2.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0-alpha"
      }, {
        "fixed" : "6.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0-alpha"
      }, {
        "fixed" : "7.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/security/advisories/GHSA-r5j5-q42h-fc93"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-3105"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mautic/mautic"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/releases/tag/5.2.10"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/releases/tag/6.0.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/releases/tag/7.0.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-25T19:28:39Z",
    "nvd_published_at" : "2026-02-24T20:27:50Z"
  }
}