Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege credentials
-
DeliveryAuthenticate to PublicCMS
-
ExploitSend crafted templateContent payload to templateResult API
-
ExecutionTemplate engine processes malicious directives
-
PersistExecute arbitrary code or access sensitive data
-
ImpactExfiltrate information or establish persistence
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Requires authenticated access with low-privilege credentials (PR:L from CVSS vector) to the PublicCMS application, specifically an account with permissions to invoke the templateResult API endpoint. The vulnerability is in the publiccms-core component's TemplateResultDirective.java, meaning exploitation depends on this API being accessible to authenticated users and the templateContent parameter being controllable. No special non-default configuration is required - the vulnerability exists in standard PublicCMS 5.202506.d installations where the templateResult directive is enabled (typical CMS deployment for content preview/rendering features). Exploitation is network-based (AV:N) with low attack complexity (AC:L), requiring no user interaction (UI:N), making it exploitable via direct API requests from any network location where the attacker can authenticate. Limiting factors: The PR:L requirement means attackers must first obtain valid credentials through phishing, credential stuffing, insider access, or chaining with separate authentication vulnerabilities. The confined scope (S:U) suggests exploitation impact is limited to the application's security context rather than underlying operating system or adjacent systems, though SSTI vulnerabilities can sometimes escalate privileges beyond initial sandbox assumptions. |
| Impact | Real-world risk is MODERATE-HIGH despite the 6.3 CVSS score. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L) indicates network-exploitable vulnerability with low complexity requiring only low-privileged authentication and no user interaction, affecting confidentiality, integrity, and availability at low impact levels. However, SSTI vulnerabilities frequently escalate beyond their initial CVSS ratings because template engines often have access to application internals, filesystem operations, and code execution primitives. The E:P (Proof-of-Concept Exploit exists) temporal metric confirms weaponized exploit code is publicly available via VulnPlus, significantly lowering the skill barrier for exploitation. The RL:X (Remediation Level: Unknown) reflects vendor non-responsiveness, meaning no official patch exists and users lack vendor-supported mitigation paths. The attack requires authentication (PR:L), which reduces exposure compared to unauthenticated vulnerabilities, but CMS platforms often have legitimate user accounts (content editors, contributors) whose credentials could be compromised or abused by malicious insiders. The confined scope (S:U) limits blast radius to the vulnerable component's security context, but SSTI can often break out of intended sandboxes. EPSS data not provided, so mass exploitation probability cannot be assessed. Not listed in CISA KEV, suggesting targeted rather than widespread active exploitation. Decision priority: Organizations running PublicCMS 5.202506.d with authenticated users should treat this as HIGH priority given public exploit availability, vendor silence, and SSTI's well-documented escalation potential. Organizations without this specific version or with strong authentication controls can deprioritize. |
| Exploit ScenarioDerived | An attacker with low-privileged authenticated access to PublicCMS (such as a compromised content editor account or malicious insider) sends a crafted HTTP request to the templateResult API endpoint, injecting malicious template engine syntax into the templateContent parameter. The vulnerable TemplateResultDirective.java execute function processes this input without sanitization, causing the template engine to interpret and execute the attacker's injected directives during server-side rendering. This enables the attacker to read sensitive configuration files, exfiltrate database credentials, execute system commands with the application's privileges, or manipulate CMS content to inject malicious scripts for other users. Publicly available exploit code at VulnPlus (https://vulnplus-note.wetolink.com/share/ILcCnOvJ1fMc) provides ready-to-use proof-of-concept, enabling even low-skill attackers to weaponize the vulnerability once they obtain authenticated access through credential theft, social engineering, or exploitation of separate authentication bypass vulnerabilities. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 17, 2026
Server-Side Template Injection in PublicCMS 5.202506.d allows authenticated remote attackers to execute arbitrary code and access sensitive information via the templateResult API endpoint. The vulnerability exists in the TemplateResultDirective.java component, where the templateContent parameter lacks proper sanitization, enabling template engine injection attacks. Publicly available exploit code exists (VulnPlus disclosure), and the vendor has not responded to coordinated disclosure attempts, leaving users without an official patch.
RemediationAI
No vendor-released patch exists as Sanluan has not responded to vulnerability disclosure. Until an official fix is available, implement the following compensating controls with trade-offs noted. PRIMARY MITIGATION: Disable or restrict access to the templateResult API endpoint at the web application firewall or reverse proxy level, blocking all requests to paths matching the TemplateResultDirective route. Trade-off: This breaks legitimate functionality that depends on dynamic template rendering via this API, potentially affecting content preview or customization features. AUTHENTICATION HARDENING: Enforce multi-factor authentication for all PublicCMS accounts and conduct immediate credential rotation, especially for accounts with content management privileges that could access the templateResult API. Implement principle of least privilege by removing templateResult API access from non-essential user roles. Trade-off: Increased administrative overhead and potential user friction. INPUT VALIDATION: If the templateResult API must remain accessible, implement strict allowlist-based input validation on the templateContent parameter at the application layer or via WAF rules, rejecting any input containing template engine syntax characters specific to the underlying engine (e.g., ${}, #{}, <#>, <@> depending on whether FreeMarker, Velocity, or Thymeleaf is used). Trade-off: Risk of bypass via encoding or incomplete blocklist, plus potential false positives blocking legitimate content. MONITORING: Deploy runtime application self-protection (RASP) or enable verbose logging for all templateResult API invocations, alerting on unusual template patterns or attempts to access system resources. UPGRADE PATH: Monitor Sanluan's GitHub repository or official channels for future security releases, though vendor responsiveness is questionable. Consider migration to actively maintained CMS alternatives if vendor support remains absent. Reference the public exploit at https://vulnplus-note.wetolink.com/share/ILcCnOvJ1fMc to understand attack signatures for detection rules.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PublicCMS is a Java-based content management system. The vulnerability affects the templateResult directive API in publiccms-core/src/main/java/com/publiccms/views/directive/tools/TemplateResultDirective.java. The flaw is classified as CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine), commonly known as Server-Side Template Injection (SSTI). Template engines in Java applications (such as FreeMarker, Velocity, or Thymeleaf, commonly used in CMS platforms) interpret special syntax to dynamically generate content. When user-controlled input flows into template processing without proper sanitization, attackers can inject template directives that execute during server-side rendering. The affected CPE is cpe:2.3:a:sanluan:publiccms:*:*:*:*:*:*:*:*, indicating the Sanluan-developed PublicCMS product. The vulnerability requires low attack complexity and authenticated access (PR:L), suggesting exploitation through standard API interactions once credentials are obtained.
Know when Publiccms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A flaw has been found in Sanluan PublicCMS 5.202506.d. The impacted element is the function execute of the file publiccms-core/src/main/java/com/publiccms/views/directive/tools/TemplateResultDirective.java of the component templateResult API. This manipulation of the argument templateContent causes improper neutralization of special elements used in a template engine. The attack is possible to be carried out remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An arbitrary file upload vulnerability in the component /cms/CmsWebFileAdminController.java of PublicCMS v4.0.202406 all
Deserialization of Untrusted Data in PublicCMS v.4.0.202302.e allows a remote attacker to execute arbitrary code via a c
An issue in the BAT file parameters of PublicCMS v4.0 allows attackers to execute arbitrary code. Rated critical severit
A remote code execution issue was discovered in PublicCMS V4.0.20180210. Rated critical severity (CVSS 9.8), this vulner
PublicCMS V5.202506.b is vulnerable to SSRF. in the chat interface of SimpleAiAdminController.
PublicCMS V5.202506.b is vulnerable to Cross Site Request Forgery (CSRF) in the CkEditorAdminController.
PublicCMS v4.0.202302.e was discovered to contain a remote commande execution (RCE) vulnerability via the cmdarray param
An arbitrary file upload vulnerability in the component /admin/cmsTemplate/doUpload of PublicCMS v4.0.202302.e allows at
An arbitrary file upload vulnerability in the component /admin/cmsTemplate/savePlaceMetaData of Public CMS v.4.0.202302.
An arbitrary file upload vulnerability in the component /admin/cmsTemplate/savePlace of PublicCMS v4.0.202302.e allows a
An arbitrary file upload vulnerability in the component /admin/cmsTemplate/save of PublicCMS v4.0.202302.e allows attack
An arbitrary file upload vulnerability in the component /admin/cmsWebFile/save of PublicCMS v4.0.202302.e allows attacke
EUVD-2026-30689
GHSA-pqmw-x4mq-chh8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB