What the vulnerability does
01Description
The Add custom page template plugin for WordPress is vulnerable to PHP Code Injection leading to Remote Code Execution in all versions up to, and including, 2.0.1 via the 'acpt_validate_setting' function. This is due to insufficient sanitization of the 'template_name' parameter. This makes it possible for authenticated attackers, with Administrator-level access and above, to execute code on the server.
Explanation of Vulnerability in Simple Terms
02Summary
A code injection vulnerability exists in Add custom page template versions up to 2.0.1. An authenticated administrator can inject and execute arbitrary PHP code through the plugin's template handling functionality. This allows complete control over the site, including reading sensitive data, modifying content, and disrupting service. Sites using this plugin should update immediately.
What an attacker can do
03Attacker Capabilities
Run arbitrary PHP code on the site with full administrative privileges.
Potential impact on your site
04Site Impact
A compromised admin account can execute any code, steal data, modify content, or take the site offline.
Conditions required to exploit
05Prerequisites
Attacker must have administrator-level access to the WordPress site.
Key dates
06Disclosure timeline
April 26, 2025
CVE published
April 8, 2026
Record updated