{"id":"CVE-2026-54159","aliases":["GHSA-m5f5-28qr-9g9r"],"title":"prestashop/ps_facetedsearch: PHP Object Injection in faceted search cache allows unauthenticated RCE","summary":"prestashop/ps_facetedsearch: PHP Object Injection in faceted search cache allows unauthenticated RCE","severity":"critical","cvss":10,"cwe":["CWE-74"],"vendor":"prestashop","product":"prestashop/ps_facetedsearch","ecosystem":"composer","affected":["prestashop/ps_facetedsearch >= 3.0.0, < 4.0.4"],"patched":["prestashop/ps_facetedsearch 4.0.4"],"published":"2026-07-10","updated":"2026-07-10","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-m5f5-28qr-9g9r","references":[{"url":"https://github.com/PrestaShop/ps_facetedsearch/security/advisories/GHSA-m5f5-28qr-9g9r"},{"url":"https://github.com/advisories/GHSA-m5f5-28qr-9g9r"}],"tags":["ghsa","composer"],"ingestedAt":"2026-07-10T21:06:31.420Z","slug":"CVE-2026-54159","body":"## Overview\n\n### Impact\n\nA PHP Object Injection vulnerability affects the PrestaShop module `ps_facetedsearch`.\n\nThe 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()`.\nBy 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.\n\n### Who is impacted\n\nAny shop using a vulnerable version of `ps_facetedsearch` 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\nexecution and full compromise of the shop and its server.\n\n**Affected versions:** `3.0.0` through `4.0.3` (all versions since 3.0.0, including the latest release).\n\n\n### Patches\n\nUpgrade the `ps_facetedsearch` module to the patched version. Upgrading the module is the best action that removes the vulnerability.\n\nOtherwise, you can apply the fix manually in the file `src/Filters/Block.php`:\n\nIn the `getFromCache()` method, replace the native `unserialize()` call:\n\n```php\n// Before\nif (!empty($row)) {\n    return unserialize(current($row));\n}\n\n// After\nif (!empty($row)) {\n    return \\Tools::unSerialize(current($row));\n}\n```\n\n### Until the module is upgraded:\n\n- Remove price and weight slider filters from the filter templates that are exposed on the\n  front office.\n- Clear the faceted-search filter cache, and audit the `modules/ps_facetedsearch/` directory for\n  unexpected PHP files.\n- Monitor search requests for PHP serialization patterns (`O:`, `;i:`, references to classes such\n  as `Monolog\\…`) and block them at the WAF level.\n\n### Resources\n\n- Thank you to Frédéric Moreau (Antadis) and Gilles Caudal (Datalinx) for reporting this vulnerability.\n\n## Affected packages\n\n- `prestashop/ps_facetedsearch >= 3.0.0, < 4.0.4`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `prestashop/ps_facetedsearch 4.0.4`","depth":"midnight","depthScore":55,"depthScoreParts":{"impact":55,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}