Authenticated code execution via template-file overwrite
Published Dec 23, 2025 · Updated Mar 5, 2026
Code injection in CMSimple 5.4 allows remote authenticated users to execute arbitrary PHP through the template editor. The authenticated edit action saves the unfiltered text field as the active template file, causing embedded PHP to execute when the site is requested. A valid login and editor-issued CSRF token are required; successful exploitation runs code with the web server process privileges.
Summary
What happened
Code injection in CMSimple 5.4 allows remote authenticated users to execute arbitrary PHP through the template editor. The authenticated edit action saves the unfiltered text field as the active template file, causing embedded PHP to execute when the site is requested. A valid login and editor-issued CSRF token are required; successful exploitation runs code with the web server process privileges.
The record
- CVE
- CVE-2021-47735
- Published
- Dec 23, 2025
- Updated
- Mar 5, 2026
- Vendor
- CMSimple
- Product
- CMSimple
- Classifications
- CWE-94, T1505.003
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 23, 2025CVE publishedPublication date reported by the CVE source.
- Mar 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.4
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- CMSimple 5.4 authenticated remote code execution exploitfunctional · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo