CVE-2026-54159
JSON

10.0critical

ps_facetedsearch: PHP Object Injection in faceted search cache allows unauthenticated RCE

Severity
10.0critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.51% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m5f5-28qr-9g9r

Description

PrestaShop ps_facetedsearch is a module that adds layered navigation filters. From 3.0.0 until 4.0.4, the ps_facetedsearch 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/ps_facetedsearch/ directory, which is then used as a webshell to run commands on the server. This issue is fixed in version 4.0.4.

Affected

Product or packageVersionsReported by
PrestaShop ps_facetedsearch>= 3.0.0, < 4.0.4CVE List
prestashop/ps_facetedsearch (Packagist)from 3.0.0 before 4.0.4GitHub Advisory Database

All scores

GitHub_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-74

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

PrestaShop ps_facetedsearch is a module that adds layered navigation filters. From 3.0.0 until 4.0.4, the ps_facetedsearch 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/ps_facetedsearch/ directory, which is then used as a webshell to run commands on the server. This issue is fixed in version 4.0.4.

GitHub Advisory Database
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:

// 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.
NVD (es)

PrestaShop ps_facetedsearch es un módulo que añade filtros de navegación por capas. Desde la versión 3.0.0 hasta la 4.0.4, el módulo ps_facetedsearch reconstruye los filtros de búsqueda seleccionados a partir de la URL de la solicitud, y el valor de un filtro deslizante, precio o peso, se toma de la URL sin validación suficiente y se almacena en una caché interna de bloques de filtro donde se serializa y luego se vuelve a leer con una función unserialize() nativa en bruto en src/Filters/Block.php. Al manipular ese valor, un atacante no autenticado puede introducir un objeto PHP serializado malicioso en la caché, y cuando se deserializa, una cadena de gadgets escribe un archivo PHP arbitrario dentro del directorio modules/ps_facetedsearch/, que luego se utiliza como una webshell para ejecutar comandos en el servidor. Este problema se corrige en la versión 4.0.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54159 changed 2026-07-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-m5f5-28qr-9g9r changed 2026-07-10CC-BY-4.0
NVDCVE-2026-54159 changed 2026-10-24Public domain