Skip to main content

PublicCMS CVE-2026-8740

| EUVDEUVD-2026-30689 LOW
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-05-17 VulDB GHSA-pqmw-x4mq-chh8
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege credentials
  2. Delivery
    Authenticate to PublicCMS
  3. Exploit
    Send crafted templateContent payload to templateResult API
  4. Execution
    Template engine processes malicious directives
  5. Persist
    Execute arbitrary code or access sensitive data
  6. Impact
    Exfiltrate 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PublicCMS 5.202506.d

Affected Packages

euvd publiccms no fix

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

Vendor (VulDB) PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
May 17, 2026 - 09:22 NVD
MEDIUM LOW
CVSS changed
May 17, 2026 - 09:22 NVD
6.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.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

EPSS Score
0.0%
Top 88% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-25361 CRITICAL POC
9.8 Mar 06

An arbitrary file upload vulnerability in the component /cms/CmsWebFileAdminController.java of PublicCMS v4.0.202406 all

CVE-2023-46990 CRITICAL POC
9.8 Nov 20

Deserialization of Untrusted Data in PublicCMS v.4.0.202302.e allows a remote attacker to execute arbitrary code via a c

CVE-2021-40881 CRITICAL POC
9.8 Sep 15

An issue in the BAT file parameters of PublicCMS v4.0 allows attackers to execute arbitrary code. Rated critical severit

CVE-2018-12914 CRITICAL POC
9.8 Jun 27

A remote code execution issue was discovered in PublicCMS V4.0.20180210. Rated critical severity (CVSS 9.8), this vulner

CVE-2025-65836 CRITICAL POC
9.1 Dec 01

PublicCMS V5.202506.b is vulnerable to SSRF. in the chat interface of SimpleAiAdminController.

CVE-2025-65840 HIGH POC
8.8 Dec 01

PublicCMS V5.202506.b is vulnerable to Cross Site Request Forgery (CSRF) in the CkEditorAdminController.

CVE-2024-40552 HIGH POC
8.8 Jul 12

PublicCMS v4.0.202302.e was discovered to contain a remote commande execution (RCE) vulnerability via the cmdarray param

CVE-2024-40551 HIGH POC
8.8 Jul 12

An arbitrary file upload vulnerability in the component /admin/cmsTemplate/doUpload of PublicCMS v4.0.202302.e allows at

CVE-2024-40550 HIGH POC
8.8 Jul 12

An arbitrary file upload vulnerability in the component /admin/cmsTemplate/savePlaceMetaData of Public CMS v.4.0.202302.

CVE-2024-40549 HIGH POC
8.8 Jul 12

An arbitrary file upload vulnerability in the component /admin/cmsTemplate/savePlace of PublicCMS v4.0.202302.e allows a

CVE-2024-40548 HIGH POC
8.8 Jul 12

An arbitrary file upload vulnerability in the component /admin/cmsTemplate/save of PublicCMS v4.0.202302.e allows attack

CVE-2024-40546 HIGH POC
8.8 Jul 12

An arbitrary file upload vulnerability in the component /admin/cmsWebFile/save of PublicCMS v4.0.202302.e allows attacke

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy