Description
MacCMS10's admin template editor (application/admin/controller/Template.php) blocks dangerous PHP functions in template content via a blacklist regex, but the blacklist omitted exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Combined with ThinkPHP's {if} template tag, which embeds the condition attribute directly into raw PHP (<?php if(condition): ?>), an authenticated administrator could inject a payload such as {if condition="exec('id > /tmp/pwned.txt')"}{/if} to achieve remote code execution. Fixed in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 (2026-06-22), which added the missing functions to the filter.
Published: 2026-08-05
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

MacCMS10’s administrative template editor filters PHP functions through a blacklist regex that unintentionally omitted functions such as exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Because ThinkPHP’s {if} template tag embeds the condition directly as raw PHP, an authenticated administrator can inject code like {if condition="exec('id > /tmp/pwned.txt')"} and achieve remote code execution. The flaw enables an attacker to run arbitrary system commands, read or write files, and otherwise compromise the server’s confidentiality, integrity, and availability.

Affected Systems

The vulnerability affects the MagicBlack MacCMS10 CMS platform in all releases prior to the patch applied on 2026‑06‑22. No specific version numbers are listed in the advisory, so any installation of MacCMS10 before that commit is potentially vulnerable.

Risk and Exploitability

The CVSS base score of 7.2 indicates a moderate‑to‑high severity vulnerability, and while the EPSS score is not available, the lack of an EPSS measurement suggests limited publicly known exploitation. The flaw is not listed in the CISA KEV catalog. Attackers would need authenticated access to the administrative interface and ability to edit templates. Once achieved, code execution can be performed directly through the template engine without additional user interaction.

Generated by OpenCVE AI on August 5, 2026 at 12:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the security patch that adds the missing functions to the blacklist (commit 71ad3bb29570e110d8e973acff68040a3050ddf0, released 2026‑06‑22).
  • Restrict administrative‑template‑editor access to trusted personnel only and enforce strong authentication controls.
  • Review and remove any legacy or custom template tags that may bypass the blacklist, and practice least‑privilege coding when adding new tags or functions.

Generated by OpenCVE AI on August 5, 2026 at 12:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Description MacCMS10's admin template editor (application/admin/controller/Template.php) blocks dangerous PHP functions in template content via a blacklist regex, but the blacklist omitted exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Combined with ThinkPHP's {if} template tag, which embeds the condition attribute directly into raw PHP (<?php if(condition): ?>), an authenticated administrator could inject a payload such as {if condition="exec('id > /tmp/pwned.txt')"}{/if} to achieve remote code execution. Fixed in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 (2026-06-22), which added the missing functions to the filter.
Title MacCMS10: Incomplete Function Blacklist in Template Editor Enables Authenticated RCE
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T10:56:15.883Z

Reserved: 2026-08-05T10:53:53.175Z

Link: CVE-2026-71232

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T12:30:12Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')