Description
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.
Problem types
CWE-94 Improper Control of Generation of Code ('Code Injection')
Product status
Any version
Timeline
| 2025-04-25: | Disclosed |
Credits
ch4r0n
References
www.wordfence.com/...-b166-4d1f-8042-d0362e650c62?source=cve
plugins.svn.wordpress.org/...m-page-template/trunk/index.php