VDB
Sign up
HIGH7.6

GHSA-r5j5-q42h-fc93

Mautic is Vulnerable to SQL Injection through Contact Activity API Sorting

Quick fix

GHSA-r5j5-q42h-fc93 — mautic/core: upgrade to the fixed version with the command below.

composer require mautic/core:^5.2.10

Details

### 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)

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/mautic/core
Introduced in: 2.10.0Fixed in: 5.2.10
Fixcomposer require mautic/core:^5.2.10
Packagist/mautic/core
Introduced in: 6.0.0-alphaFixed in: 6.0.8
Fixcomposer require mautic/core:^6.0.8
Packagist/mautic/core
Introduced in: 7.0.0-alphaFixed in: 7.0.1
Fixcomposer require mautic/core:^7.0.1

References