CVE-2026-102771

Naichen ThinkCMF Email Template MailController.php templatePut special elements in template engine

Published Sep 29, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
A security vulnerability has been detected in Naichen ThinkCMF up to 8.0.7. Affected by this issue is the function MailController::templatePut of the file cmf-api/src/admin/controller/MailController.php of the component Email Template. The manipulation leads to improper neutralization of special elements used in a template engine. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Analysis

AI-generated

Technical impact

The flaw in MailController::templatePut allows an attacker to inject arbitrary template syntax because the engine fails to neutralize special elements. This missing sanitization constitutes a server‑side template injection weakness (CWE‑1336) that can be abused to execute code on the host. The vendor’s lack of a response further increases the risk for systems still running the vulnerable versions.

Affected Systems

All deployments of Naichen ThinkCMF version 8.0.7 and earlier, especially the Email Template module that contains MailController.php. Administrators using the default configuration of the MailController endpoint must be aware that any request to templatePut can be manipulated to inject template payloads.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate impact, and the lack of an EPSS score or KEV listing suggests limited public exploitation to date. Nevertheless, the vulnerability can be triggered remotely through crafted POST data to the templatePut API, and successful exploitation may lead to full code execution and compromise of the underlying web server.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ThinkCMF to the latest release that fixes the SSTI defect or apply any vendor‑issued patch targeting versions 8.0.7 and earlier.
  • If no official patch is available, remove or disable the template rendering feature in the Email Template component, or restrict the endpoint to accept only safe literals.
  • Implement input validation or sanitization for all data passed to MailController::templatePut to strip template tokens before processing.
  • Monitor application logs for suspicious template syntax and apply rate limiting or firewall rules to block repeated injection attempts.

Generated by OpenCVE AI on September 30, 2026 at 10:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Naichen
Naichen thinkcmf
Vendors & Products Naichen
Naichen thinkcmf
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A security vulnerability has been detected in Naichen ThinkCMF up to 8.0.7. Affected by this issue is the function MailController::templatePut of the file cmf-api/src/admin/controller/MailController.php of the component Email Template. The manipulation leads to improper neutralization of special elements used in a template engine. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Title Naichen ThinkCMF Email Template MailController.php templatePut special elements in template engine
First Time appeared Thinkcmf
Thinkcmf thinkcmf
Weaknesses CWE-1336
CWE-791
CPEs cpe:2.3:a:thinkcmf:thinkcmf:*:*:*:*:*:*:*:*
Vendors & Products Thinkcmf
Thinkcmf thinkcmf
References
Metrics cvssV2_0

{'score': 5.8, 'vector': 'AV:N/AC:L/Au:M/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 4.7, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-791

    Incomplete Filtering of Special Elements

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Sep 30, 2026, 2:01 PM
Reserved
Sep 29, 2026, 4:34 PM
Status
Deferred
Published
Sep 29, 2026, 10:17 PM
Modified
Sep 30, 2026, 3:22 PM