Algolia Search & Discovery for Magento 2 Has Untrusted Data Handling
Summary
The imported advisory is rated medium severity. It identifies 1 affected package; whether you are affected depends on your installed version. It is not listed in the imported CISA KEV data; that does not establish that exploitation has not occurred.
Summary by cve.new · CC BY 4.0Original source description
Impact
Versions of the Algolia Search & Discovery extension for Magento 2 prior to 3.17.2 and 3.16.2 contain a vulnerability where data read from the database was treated as a trusted source during job execution.
If an attacker is able to modify records used by the extension’s indexing queue, this could result in arbitrary PHP code execution when the affected job is processed.
Exploitation requires the ability to write malicious data to the Magento database and for the indexing queue to be enabled.
Patches
This vulnerability has been fixed in the following versions:
- 3.17.2
- 3.16.2
Merchants should upgrade to a supported patched version immediately.
Versions outside the supported maintenance window do not receive security updates and remain vulnerable.
Workarounds
Upgrading to a patched version is the only recommended remediation.
If an immediate upgrade is not possible, the following temporary risk mitigations may reduce exposure:
- Disable the Algolia indexing queue to prevent queued jobs from being executed.
- Restrict job execution logic to an explicit allowlist of permitted operations.
- Review the contents of the
algoliasearch_queuetable for unexpected or unrecognized entries. - If queue archiving is enabled, review historical records in
algoliasearch_queue_archive.
These mitigations are provided as guidance only and do not replace upgrading to a patched version.
References
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.
From 3.17.0-beta.1 before 3.17.2
Fixed in 3.17.2
4 explicitly affected versions
3.17.0, 3.17.0-beta.1, 3.17.0-beta.2, 3.17.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "3.17.0-beta.1"
},
{
"fixed": "3.17.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.17.0",
"3.17.0-beta.1",
"3.17.0-beta.2",
"3.17.1"
]
}Earlier releases before 3.16.2
Fixed in 3.16.2
104 explicitly affected versions
0.8.2, 0.8.3, 0.8.4, 0.9.0, 0.9.1, 1.0.0, 1.0.1, 1.0.10, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.8, 1.0.9, 1.1.0, 1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.2, 1.13.3, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.9.0, 1.9.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.10.0, 3.10.1, 3.10.2, 3.10.3, 3.10.4, 3.10.5, 3.10.6, 3.11.0, 3.11.0-beta, 3.11.1-beta, 3.12.0, 3.12.1, 3.13.0, 3.13.1, 3.13.2, 3.13.3, 3.13.4, 3.13.5, 3.13.6, 3.13.7, 3.13.8, 3.14.0, 3.14.0-beta.1, 3.14.0-beta.2, 3.14.1, 3.14.2, 3.14.3, 3.14.4, 3.14.5, 3.15.0, 3.15.0-beta.1, 3.15.0-beta.2, 3.15.1, 3.15.2, 3.15.3, 3.16.0, 3.16.0-beta.1, 3.16.0-beta.2, 3.16.1, 3.2.0, 3.3.0, 3.3.1, 3.4.0, 3.6.0, 3.6.1, 3.7.0, 3.7.0-p1, 3.7.0-p2, 3.8.0, 3.8.1, 3.9.0, 3.9.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.16.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.8.2",
"0.8.3",
"0.8.4",
"0.9.0",
"0.9.1",
"1.0.0",
"1.0.1",
"1.0.10",
"1.0.3",
"1.0.4",
"1.0.5",
"1.0.6",
"1.0.8",
"1.0.9",
"1.1.0",
"1.10.0",
"1.11.0",
"1.11.1",
"1.11.2",
"1.11.3",
"1.12.0",
"1.12.1",
"1.13.0",
"1.13.1",
"1.13.2",
"1.13.3",
"1.2.0",
"1.2.1",
"1.3.0",
"1.4.0",
"1.5.0",
"1.6.0",
"1.7.0",
"1.7.1",
"1.7.2",
"1.8.0",
"1.8.1",
"1.8.2",
"1.8.3",
"1.8.4",
"1.8.5",
"1.9.0",
"1.9.1",
"2.0.0",
"2.0.1",
"2.0.2",
"2.0.3",
"2.0.4",
"3.0.0",
"3.0.1",
"3.0.2",
"3.1.0",
"3.10.0",
"3.10.1",
"3.10.2",
"3.10.3",
"3.10.4",
"3.10.5",
"3.10.6",
"3.11.0",
"3.11.0-beta",
"3.11.1-beta",
"3.12.0",
"3.12.1",
"3.13.0",
"3.13.1",
"3.13.2",
"3.13.3",
"3.13.4",
"3.13.5",
"3.13.6",
"3.13.7",
"3.13.8",
"3.14.0",
"3.14.0-beta.1",
"3.14.0-beta.2",
"3.14.1",
"3.14.2",
"3.14.3",
"3.14.4",
"3.14.5",
"3.15.0",
"3.15.0-beta.1",
"3.15.0-beta.2",
"3.15.1",
"3.15.2",
"3.15.3",
"3.16.0",
"3.16.0-beta.1",
"3.16.0-beta.2",
"3.16.1",
"3.2.0",
"3.3.0",
"3.3.1",
"3.4.0",
"3.6.0",
"3.6.1",
"3.7.0",
"3.7.0-p1",
"3.7.0-p2",
"3.8.0",
"3.8.1",
"3.9.0",
"3.9.1"
]
}