Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-54390: Server-Side Template Injection in JTL Shop Smarty Engine

Published Jun 18, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.3Critical · v4
EPSS0.60%43rd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2026-54390CWE-1336 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2026-54390This repository is a small standalone Python exploit/scan tool for CVE-2026-54390 affecting JTL Shop. The repo contains four files: a README with vulnerability background and usage instructions, a single main Python script (cve_2026_54390.py), requirements.txt, and .gitignore. The Python script is the operational core and appears intended for both single-target and mass-target assessment. Main capabilities visible from the code and README: (1) detect whether a host is likely running JTL Shop by requesting the homepage and checking for JTL markers, version strings, static asset paths, and JTL-specific files; (2) attempt both HTTPS and HTTP; (3) probe common contact form paths such as /Kontakt, /kontakt, /contact, and /Kontaktformular; (4) optionally submit a Smarty SSTI payload through the contact form using attacker-controlled fields; and (5) support bulk scanning with threading and optional output file handling. The exploit path described is pre-auth web exploitation: user-supplied contact form fields are inserted into an email subject and then rendered as a Smarty template via fetch('string:' . $subject). The payloads shown include a simple arithmetic probe ({7*7}), local file read using file_get_contents on /etc/passwd, and an OOB callback payload using file_get_contents against an attacker-controlled URL. The README claims full RCE is possible on newer vulnerable branches via gadget abuse/unserialize, but the visible script excerpt mainly automates reconnaissance and SSTI probe submission rather than delivering a complete interactive RCE chain. Operationally, this is best classified as an exploit-oriented scanner with exploitation support. It is not just a detector because it includes explicit exploit payloads and a code path to submit them. However, based on the visible content, the payloading is fairly basic and hardcoded, so OPERATIONAL is the best maturity fit rather than WEAPONIZED.shinthink · Disclosed Jul 10, 2026 · python · markdown · web · networkOperational
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.