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 · NVD

Severity by source

NVD 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/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

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Severity Changed
May 17, 2026 - 09:22 NVD
MEDIUM LOW
CVSS changed
May 17, 2026 - 09:22 NVD
6.3 (MEDIUM) 2.1 (LOW)
Analysis Generated
May 17, 2026 - 09:16 vuln.today

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Share

CVE-2026-8740 vulnerability details – vuln.today

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