CVE-2026-54159: prestashop/ps_facetedsearch Remote Code Execution Vulnerability
CRITICALCVE-2026-54159 is a CRITICAL (CVSS 10.0) remote code execution vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting prestashop/ps_facetedsearch libraries in the Packagist ecosystem. The issue involves php object injection in faceted search cache allows unauthenticated rce. Remediation is available by upgrading affected packages to version 4.0.4.
CVE-2026-54159 at a Glance
Security Impact
CVSS: 10.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-54159
To remediate this vulnerability, upgrade all affected prestashop/ps_facetedsearch dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade prestashop/ps_facetedsearch to 4.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for prestashop/ps_facetedsearch
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-54159, inspect your project dependencies for prestashop/ps_facetedsearch:
inspect dependencies for prestashop/ps_facetedsearch
Analyze the terminal output to locate any version of prestashop/ps_facetedsearch in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In prestashop/ps_facetedsearch, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54159 Affected prestashop/ps_facetedsearch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
prestashop/ps_facetedsearch
|
Packagist |
≥ 3.0.0
< 4.0.4
|
4.0.4
|
References
Frequently Asked Questions
What is CVE-2026-54159?
Which prestashop/ps_facetedsearch versions are affected?
What version fixes CVE-2026-54159?
Is prestashop/ps_facetedsearch affected?
What is the CVSS score of CVE-2026-54159?
What CWE is associated with CVE-2026-54159?
How can I check Packagist dependencies for CVE-2026-54159?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m5f5-28qr-9g9r",
"modified" : "2026-07-10T20:36:56Z",
"published" : "2026-07-10T20:36:56Z",
"aliases" : [ "CVE-2026-54159" ],
"summary" : "prestashop/ps_facetedsearch: PHP Object Injection in faceted search cache allows unauthenticated RCE",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "prestashop/ps_facetedsearch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "4.0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/PrestaShop/ps_facetedsearch/security/advisories/GHSA-m5f5-28qr-9g9r"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PrestaShop/ps_facetedsearch"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-10T20:36:56Z",
"nvd_published_at" : null
}
}