ADVISORIES

GitHub Advisory Database

GHSA-r5j5-q42h-fc93

Mautic is Vulnerable to SQL Injection through Contact Activity API Sorting

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 [[email protected]](mailto:[email protected])

Affected packages

EcosystemPackageAffected versions
Packagistmautic/core
From 2.10.0 before 5.2.10 (fixed in 5.2.10)
Packagistmautic/core
From 6.0.0-alpha before 6.0.8 (fixed in 6.0.8)
Packagistmautic/core
From 7.0.0-alpha before 7.0.1 (fixed in 7.0.1)

References