CVE-2026-8740 Details
Description
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.
A server-side template injection vulnerability has been identified in Sanluan PublicCMS version 5.202506.d. The issue arises in the TemplateResult API, specifically within the execute function of the TemplateResultDirective class. This vulnerability allows authenticated users with low-privilege app tokens to bypass authorization checks and access sensitive server information. The flaw is caused by the direct evaluation of user-controlled template content in the FreeMarker template engine, without proper authorization enforcement. Exploitation is possible by embedding calls to internal directives that disclose server properties or disk information.
To address this vulnerability, do not evaluate externally supplied templates using the full web FreeMarker configuration. Instead, use a dedicated sandboxed FreeMarker configuration for the 'templateResult' API, removing or strictly allowing shared variables. Implement a strict 'TemplateClassResolver' to disable access to internal directives and methods from user-controlled templates. Additionally, ensure that authorization checks are enforced in the template execution path, similar to the existing HTTP-layer checks. If 'templateResult' is meant for internal use only, disable it by default for external integrations or limit it to trusted administrative contexts.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 17, 2026CISA-ADP
Assessed May 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://vuldb.com/submit/809932 | [email protected] | Permission Required |
| https://vuldb.com/vuln/364328 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/364328/cti | [email protected] | AdvisoryPermission Required |
| https://vulnplus-note.wetolink.com/share/ILcCnOvJ1fMc | [email protected] | ExploitRemedyTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
| CWE-791 | Incomplete Filtering of Special Elements | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Sanluan PublicCMS | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 17, 2026 | New CVE Received | [email protected] |
Volerion