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.
Published: 2026-08-05
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

MacCMS10’s admin template editor attempts to filter dangerous PHP functions through a blacklist regex, but the list fails to cover several critical functions – exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Because users with administrator privileges can edit template files, the omission of these functions enables injection of arbitrary PHP code that is subsequently executed by the web server. This constitutes a code‑injection flaw (CWE‑94) that permits full remote code execution, potentially compromising the confidentiality, integrity, and availability of the host system.

Affected Systems

All versions of the MagicBlack MacCMS10 content management system that include the pre‑commit 71ad3bb29570e110d8e973acff68040a3050ddf0 functionality in application/admin/controller/Template.php are affected. The patch that adds the missing functions to the blacklist is contained in that commit, so any installation deployed before this change remains vulnerable. No explicit version numbers are provided, but any release dated prior to the commit is included.

Risk and Exploitability

The CVSS base score of 7.2 denotes moderate‑to‑high severity. Although the EPSS score is less than 1%, the vulnerability is not listed in CISA’s KEV catalog, indicating a low likelihood of widespread exploitation according to current data. Attackers must first obtain authenticated administrator access to the CMS, which is a significant but not impossible precondition. Once inside, a single injection of PHP code that invokes one of the excluded functions is sufficient to achieve remote code execution with no additional interaction, making the exploitation path straightforward for a knowledgeable attacker.

Generated by OpenCVE AI on August 10, 2026 at 23:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the security patch that updates the blacklist to include the omitted functions (commit 71ad3bb29570e110d8e973acff68040a3050ddf0).
  • Restrict access to the admin template editor to trusted personnel and enforce strong authentication controls such as multi‑factor authentication.
  • Audit existing template files for legacy tags or embedded PHP code that may bypass the blacklist and remove or refactor any such content.

Generated by OpenCVE AI on August 10, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 12:00: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. 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.

Mon, 10 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Title MacCMS10: Incomplete Function Blacklist in Template Editor Enables Authenticated RCE MacCMS10 - Incomplete Function Blacklist in Template Editor Enables Authenticated RCE

Fri, 07 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared Magicblack
Magicblack maccms
Vendors & Products Magicblack
Magicblack maccms

Wed, 05 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


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

Magicblack Maccms
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T11:45:29.873Z

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

Link: CVE-2026-71232

cve-icon Vulnrichment

Updated: 2026-08-05T12:53:49.866Z

cve-icon NVD

Status : Received

Published: 2026-08-05T11:16:25.873

Modified: 2026-08-10T12:17:25.650

Link: CVE-2026-71232

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T23:30:07Z

Weaknesses
  • CWE-94

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