CVE-2026-71232: MacCMS10: Incomplete Function Blacklist in Template Editor Enables Authenticated RCE

Published Aug 5, 2026
·
Updated

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, showsource, createfunction, registershutdownfunction, registertickfunction, and errorlog. 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.

Affected Software

1 affected component
MacCMS10 admin template editor

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ThinkPHP template {if} tag handling / filter functions to a version that resolves this vulnerability.

    Patch 71ad3bb29570e110d8e973acff68040a3050ddf0
  2. Configuration

    Update the blacklist regex in application/admin/controller/Template.php so template content blocks the missing dangerous PHP functions (exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log) that were omitted.

    MacCMS10 admin template editor (application/admin/controller/Template.php) template content function blacklist regex = Add missing dangerous PHP functions: exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, error_log

Event History

Aug 5, 2026
CVE Published
via MITRE·10:56 AM
Data Sourced
via MITRE·10:56 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71232?

The severity of CVE-2026-71232 is high with a score of 7.2.

2

How do I fix CVE-2026-71232?

To fix CVE-2026-71232, you should update the MacCMS10 admin template editor to incorporate a more comprehensive blacklist for dangerous PHP functions.

3

What kind of attacks does CVE-2026-71232 allow?

CVE-2026-71232 allows authenticated remote code execution due to incomplete function blacklisting in the template editor.

4

Which PHP functions are misconfigured in CVE-2026-71232?

CVE-2026-71232 misconfigures functions such as exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log.

5

Who is affected by CVE-2026-71232?

Anyone using the MacCMS10 admin template editor is potentially affected by CVE-2026-71232, specifically if they rely on the template content functionality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203