CVE-2026-54159: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in PrestaShop ps_facetedsearch
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.
AI Analysis
Technical Summary
The PrestaShop ps_facetedsearch module suffers from a PHP Object Injection vulnerability due to unsafe unserialization of user-controlled slider filter values taken from the URL and stored in a cache. The native PHP unserialize() function is used without validation, allowing attackers to inject a malicious serialized object. This object triggers a gadget chain that writes an arbitrary PHP file into the module directory, which can be used as a webshell to execute commands remotely. The vulnerability affects all versions from 3.0.0 up to but not including 4.0.4. Exploitation is unauthenticated and remote, requiring only a crafted request to the front office. The vendor recommends upgrading the module to a patched version or applying a manual code fix replacing native unserialize() with a safer alternative. Additional mitigations include removing slider filters from templates, clearing the cache, auditing for unexpected PHP files, and blocking suspicious serialized payloads at the WAF.
Potential Impact
Successful exploitation results in unauthenticated remote code execution on the affected PrestaShop server, allowing full compromise of the shop and underlying system. Attackers can write arbitrary PHP files and execute commands, leading to complete loss of confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
A patch is available by upgrading the ps_facetedsearch module to version 4.0.4 or later, which removes the vulnerability. Alternatively, apply the manual fix by replacing the native unserialize() call in src/Filters/Block.php's getFromCache() method with \Tools::unSerialize(). Until patched, remove price and weight slider filters from front-office filter templates, clear the faceted-search filter cache, audit the module directory for unexpected PHP files, and monitor/block serialized PHP payloads at the WAF level. These steps reduce exposure but upgrading is the recommended remediation.
CVE-2026-54159: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in PrestaShop ps_facetedsearch
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.
CVSS v3.1
Score 10.0critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The PrestaShop ps_facetedsearch module suffers from a PHP Object Injection vulnerability due to unsafe unserialization of user-controlled slider filter values taken from the URL and stored in a cache. The native PHP unserialize() function is used without validation, allowing attackers to inject a malicious serialized object. This object triggers a gadget chain that writes an arbitrary PHP file into the module directory, which can be used as a webshell to execute commands remotely. The vulnerability affects all versions from 3.0.0 up to but not including 4.0.4. Exploitation is unauthenticated and remote, requiring only a crafted request to the front office. The vendor recommends upgrading the module to a patched version or applying a manual code fix replacing native unserialize() with a safer alternative. Additional mitigations include removing slider filters from templates, clearing the cache, auditing for unexpected PHP files, and blocking suspicious serialized payloads at the WAF.
Potential Impact
Successful exploitation results in unauthenticated remote code execution on the affected PrestaShop server, allowing full compromise of the shop and underlying system. Attackers can write arbitrary PHP files and execute commands, leading to complete loss of confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
A patch is available by upgrading the ps_facetedsearch module to version 4.0.4 or later, which removes the vulnerability. Alternatively, apply the manual fix by replacing the native unserialize() call in src/Filters/Block.php's getFromCache() method with \Tools::unSerialize(). Until patched, remove price and weight slider filters from front-office filter templates, clear the faceted-search filter cache, audit the module directory for unexpected PHP files, and monitor/block serialized PHP payloads at the WAF level. These steps reduce exposure but upgrading is the recommended remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-m5f5-28qr-9g9r
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-54159"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a520eb368715ace438f514a
Added to database: 07/11/2026, 09:36:51 UTC
Last enriched: 07/18/2026, 11:18:05 UTC
Last updated: 07/21/2026, 09:28:05 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.