CVE-2026-54390: Server-Side Template Injection in JTL Shop Smarty Engine
CVE-2026-54390 is a critical server-side template injection (SSTI) vulnerability in JTL Shop versions 5.2.0 through 5.7.1. The flaw is caused by unsanitized user-supplied input being passed to the Smarty template engine, allowing unauthenticated remote attackers to inject and evaluate malicious template syntax on the server. Successful exploitation can disclose sensitive server-side data, including database credentials and encryption keys. In JTL Shop versions 5.4.0 through 5.7.1, the impact is more severe because attackers can abuse registered Smarty modifiers, including unserialize and file_get_contents, to write a webshell into the web root and achieve arbitrary command execution as the web server user.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The vulnerability enables unauthenticated remote compromise of affected JTL Shop instances. Across versions 5.2.0 through 5.7.1, attackers can read sensitive server-side values exposed through template evaluation, including database credentials and encryption keys, resulting in severe confidentiality impact. On versions 5.4.0 through 5.7.1, attackers can escalate from information disclosure to arbitrary command execution by writing a webshell to the web root and executing commands as the web server user, creating high confidentiality, integrity, and availability impact.
Mitigation
If you can’t patch tonight, do this now.
Sanitize and strictly validate all user-controlled input processed by the Smarty template engine. Prevent untrusted data from being interpreted as template syntax. As a defense-in-depth measure, review and restrict dangerous registered Smarty modifiers and template capabilities where possible, especially functionality that can enable file access, deserialization, or file writes.
Remediation
Patch, then assume compromise.
Upgrade JTL Shop to a patched version newer than 5.7.1 or the latest vendor-fixed release. Apply all vendor patches addressing this SSTI issue. Review and correct the vulnerable code path so that untrusted user input is not passed directly into the Smarty template engine for evaluation.
Exploits
1 exploit validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2026-54390 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-54390 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-54390?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-54390, the earliest disclosed Jul 10, 2026.
- Is there a patch for CVE-2026-54390?
- Upgrade JTL Shop to a patched version newer than 5.7.1 or the latest vendor-fixed release. Apply all vendor patches addressing this SSTI issue.
- How severe is CVE-2026-54390?
- CVE-2026-54390 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 0.60% (43rd percentile) as of Sep 25, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.