CVE-2026-54159: prestashop/ps_facetedsearch Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-m5f5-28qr-9g9r
CVSS 10.0
CWE-74
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-54159
GHSA Identifier GHSA-m5f5-28qr-9g9r
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product prestashop/ps_facetedsearch
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

prestashop/ps_facetedsearch fixed: 4.0.4
Upgrade prestashop/ps_facetedsearch to 4.0.4
Verify Direct and Transitive Dependencies

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

### Impact A PHP Object Injection vulnerability affects the PrestaShop module `ps_facetedsearch`. 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 `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 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 `ps_facetedsearch` 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/ps_facetedsearch/` 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.

CVE-2026-54159 Affected prestashop/ps_facetedsearch Versions

1 component(s)
Fixed Versions:
4.0.4
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?
CVE-2026-54159 is a security vulnerability in prestashop/ps_facetedsearch involving PHP Object Injection in faceted search cache allows unauthenticated RCE under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which prestashop/ps_facetedsearch versions are affected?
Affected versions include releases prior to 4.0.4 across affected packages: prestashop/ps_facetedsearch.
What version fixes CVE-2026-54159?
Upgrading to 4.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is prestashop/ps_facetedsearch affected?
Yes, prestashop/ps_facetedsearch is affected in releases prior to 4.0.4. Upgrade your dependency to 4.0.4 or later.
What is the CVSS score of CVE-2026-54159?
CVE-2026-54159 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-54159?
CVE-2026-54159 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (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.).
How can I check Packagist dependencies for CVE-2026-54159?
Run the dependency tree command: 'inspect dependencies for prestashop/ps_facetedsearch'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}