CVE-2026-54159: prestashop/ps_facetedsearch: PHP Object Injection in faceted search cache allows unauthenticated RCE
Impact
A PHP Object Injection vulnerability affects the PrestaShop module psfacetedsearch.
The module rebuilds the selected search filters from the request URL. The value of a slider filter (price or weight) is taken from the URL without sufficient validation, then stored in an internal filter-block cache where it is serialized and later read back with a raw native unserialize(). By crafting that value, an attacker can smuggle a malicious serialized PHP object into the cache. When it is deserialized, a gadget chain writes an arbitrary PHP file inside the module directory, which is then used as a webshell to run commands on the server.
Who is impacted
Any shop using a vulnerable version of psfacetedsearch that displays a filter template containing a slider filter (price or weight). Exploitation is remote and unauthenticated, a single crafted front-office request is enough, and leads to remote code execution and full compromise of the shop and its server.
Affected versions: 3.0.0 through 4.0.3 (all versions since 3.0.0, including the latest release).
Patches
Upgrade the psfacetedsearch module to the patched version. Upgrading the module is the best action that removes the vulnerability.
Otherwise, you can apply the fix manually in the file src/Filters/Block.php:
In the getFromCache() method, replace the native unserialize() call:
php // Before if (!empty($row)) { return unserialize(current($row)); }
// After if (!empty($row)) { return \Tools::unSerialize(current($row)); }
Until the module is upgraded:
- Remove price and weight slider filters from the filter templates that are exposed on the front office. - Clear the faceted-search filter cache, and audit the modules/psfacetedsearch/ directory for unexpected PHP files. - Monitor search requests for PHP serialization patterns (O:, ;i:, references to classes such as Monolog\…) and block them at the WAF level.
Resources
- Thank you to Frédéric Moreau (Antadis) and Gilles Caudal (Datalinx) for reporting this vulnerability.
Other sources
PrestaShop psfacetedsearch is a module that adds layered navigation filters. From 3.0.0 until 4.0.4, the psfacetedsearch module rebuilds selected search filters from the request URL, and the value of a slider filter, price or weight, is taken from the URL without sufficient validation and stored in an internal filter-block cache where it is serialized and later read back with a raw native unserialize() in src/Filters/Block.php. By crafting that value, an unauthenticated attacker can smuggle a malicious serialized PHP object into the cache, and when it is deserialized, a gadget chain writes an arbitrary PHP file inside the modules/psfacetedsearch/ directory, which is then used as a webshell to run commands on the server. This issue is fixed in version 4.0.4.
— MITRE
prestashop/psfacetedsearch: PHP Object Injection in faceted search cache allows unauthenticated RCE
— Packagist
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/prestashop/ps_facetedsearchto a version that resolves this vulnerability.Fixed in 4.0.4 - Upgrade
Upgrade
prestashop/ps_facetedsearchto a version that resolves this vulnerability.Fixed in 4.0.4 - Configuration
Remove price and weight slider filters from filter templates exposed on the front office until the module is upgraded.
PrestaShop ps_facetedsearch price and weight slider filters = removed - Compensating control
Monitor search requests for PHP serialization patterns such as O: and ;i: or references to classes such as Monolog\…, and block them at the WAF level.
- Operational
Clear the faceted-search filter cache and audit the modules/ps_facetedsearch/ directory for unexpected PHP files.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-54159?
The severity of CVE-2026-54159 is critical with a score of 10.
What software is affected by CVE-2026-54159?
CVE-2026-54159 affects the PrestaShop module `ps_facetedsearch`.
How does CVE-2026-54159 impact security?
CVE-2026-54159 allows PHP Object Injection due to insufficient validation of slider filter values.
How do I fix CVE-2026-54159?
To fix CVE-2026-54159, update the PrestaShop `ps_facetedsearch` module with the latest security patch.
What are the potential consequences of CVE-2026-54159?
Exploitation of CVE-2026-54159 can lead to unauthorized data access and manipulation.