GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

All vulnerabilities
GHSA-r5j5-q42h-fc93high7.6

Mautic is Vulnerable to SQL Injection through Contact Activity API Sorting

Check your stack

The advisory, in context

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

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

mautic/core Packagist
Ecosystem versions

From 2.10.0 before 5.2.10

Fixed in 5.2.10

124 explicitly affected versions

2.10.0, 2.10.1, 2.11.0, 2.11.0-beta, 2.12.0, 2.12.0-beta, 2.12.1, 2.12.1-beta, 2.12.2, 2.12.2-beta, 2.13.0, 2.13.0-beta, 2.13.1, 2.14.0, 2.14.0-beta, 2.14.1, 2.14.1-beta, 2.14.2, 2.14.2-beta, 2.15.0, 2.15.0-beta, 2.15.1, 2.15.1-beta, 2.15.2, 2.15.2-beta, 2.15.3, 2.15.3-beta, 2.16.0, 2.16.0-beta, 2.16.1, 2.16.1-beta, 2.16.2, 2.16.2-beta, 2.16.3, 2.16.3-beta, 2.16.4, 2.16.5, 3.0.0, 3.0.0-alpha, 3.0.0-beta, 3.0.0-beta2, 3.0.1, 3.0.2, 3.0.2-rc, 3.1.0, 3.1.0-rc, 3.1.1, 3.1.1-rc, 3.1.2, 3.1.2-rc, 3.2.0, 3.2.0-rc, 3.2.1, 3.2.2, 3.2.2-rc, 3.2.3, 3.2.4, 3.2.5, 3.2.5-rc, 3.3.0, 3.3.0-rc, 3.3.1, 3.3.2, 3.3.2-rc, 3.3.3, 3.3.3-rc, 3.3.4, 3.3.5, 4.0.0, 4.0.0-alpha1, 4.0.0-beta, 4.0.0-rc, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.0-rc, 4.2.0-rc1, 4.2.1, 4.2.2, 4.3.0, 4.3.0-beta, 4.3.0-rc, 4.3.1, 4.4.0, 4.4.0-beta, 4.4.1, 4.4.10, 4.4.11, 4.4.12, 4.4.13, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.4.6, 4.4.7, 4.4.8, 4.4.9, 5.0.0, 5.0.0-alpha, 5.0.0-alpha1, 5.0.0-beta1, 5.0.0-beta2, 5.0.0-rc1, 5.0.0-rc2, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.1.0, 5.1.1, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5, 5.2.6, 5.2.7, 5.2.8, 5.2.9

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "2.10.0"
        },
        {
          "fixed": "5.2.10"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "2.10.0",
    "2.10.1",
    "2.11.0",
    "2.11.0-beta",
    "2.12.0",
    "2.12.0-beta",
    "2.12.1",
    "2.12.1-beta",
    "2.12.2",
    "2.12.2-beta",
    "2.13.0",
    "2.13.0-beta",
    "2.13.1",
    "2.14.0",
    "2.14.0-beta",
    "2.14.1",
    "2.14.1-beta",
    "2.14.2",
    "2.14.2-beta",
    "2.15.0",
    "2.15.0-beta",
    "2.15.1",
    "2.15.1-beta",
    "2.15.2",
    "2.15.2-beta",
    "2.15.3",
    "2.15.3-beta",
    "2.16.0",
    "2.16.0-beta",
    "2.16.1",
    "2.16.1-beta",
    "2.16.2",
    "2.16.2-beta",
    "2.16.3",
    "2.16.3-beta",
    "2.16.4",
    "2.16.5",
    "3.0.0",
    "3.0.0-alpha",
    "3.0.0-beta",
    "3.0.0-beta2",
    "3.0.1",
    "3.0.2",
    "3.0.2-rc",
    "3.1.0",
    "3.1.0-rc",
    "3.1.1",
    "3.1.1-rc",
    "3.1.2",
    "3.1.2-rc",
    "3.2.0",
    "3.2.0-rc",
    "3.2.1",
    "3.2.2",
    "3.2.2-rc",
    "3.2.3",
    "3.2.4",
    "3.2.5",
    "3.2.5-rc",
    "3.3.0",
    "3.3.0-rc",
    "3.3.1",
    "3.3.2",
    "3.3.2-rc",
    "3.3.3",
    "3.3.3-rc",
    "3.3.4",
    "3.3.5",
    "4.0.0",
    "4.0.0-alpha1",
    "4.0.0-beta",
    "4.0.0-rc",
    "4.0.1",
    "4.0.2",
    "4.1.0",
    "4.1.1",
    "4.1.2",
    "4.2.0",
    "4.2.0-rc",
    "4.2.0-rc1",
    "4.2.1",
    "4.2.2",
    "4.3.0",
    "4.3.0-beta",
    "4.3.0-rc",
    "4.3.1",
    "4.4.0",
    "4.4.0-beta",
    "4.4.1",
    "4.4.10",
    "4.4.11",
    "4.4.12",
    "4.4.13",
    "4.4.2",
    "4.4.3",
    "4.4.4",
    "4.4.5",
    "4.4.6",
    "4.4.7",
    "4.4.8",
    "4.4.9",
    "5.0.0",
    "5.0.0-alpha",
    "5.0.0-alpha1",
    "5.0.0-beta1",
    "5.0.0-beta2",
    "5.0.0-rc1",
    "5.0.0-rc2",
    "5.0.1",
    "5.0.2",
    "5.0.3",
    "5.0.4",
    "5.1.0",
    "5.1.1",
    "5.2.0",
    "5.2.1",
    "5.2.2",
    "5.2.3",
    "5.2.4",
    "5.2.5",
    "5.2.6",
    "5.2.7",
    "5.2.8",
    "5.2.9"
  ]
}
mautic/core Packagist
Ecosystem versions

From 6.0.0-alpha before 6.0.8

Fixed in 6.0.8

11 explicitly affected versions

6.0.0, 6.0.0-alpha, 6.0.0-beta2, 6.0.0-rc, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "6.0.0-alpha"
        },
        {
          "fixed": "6.0.8"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "6.0.0",
    "6.0.0-alpha",
    "6.0.0-beta2",
    "6.0.0-rc",
    "6.0.1",
    "6.0.2",
    "6.0.3",
    "6.0.4",
    "6.0.5",
    "6.0.6",
    "6.0.7"
  ]
}
mautic/core Packagist
Ecosystem versions

From 7.0.0-alpha before 7.0.1

Fixed in 7.0.1

5 explicitly affected versions

7.0.0, 7.0.0-alpha, 7.0.0-beta, 7.0.0-rc, 7.0.0-rc2

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "7.0.0-alpha"
        },
        {
          "fixed": "7.0.1"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "7.0.0",
    "7.0.0-alpha",
    "7.0.0-beta",
    "7.0.0-rc",
    "7.0.0-rc2"
  ]
}

References