CVE-2025-3491 Add custom page template <= 2.0.1 - Authenticated (Administrator+) PHP Code Injection to Remote Code Execution
Authenticated administrators can execute arbitrary PHP code on the server via unsanitized template names in the Add custom page template plugin.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-3491?
CVE-2025-3491 is a high-severity code injection vulnerability in kiranpatil353 Add custom page template, published on 26 Apr 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2025-3491?
How do I fix CVE-2025-3491?
No fix has been published for CVE-2025-3491 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-3491 being exploited?
There is no known exploitation of CVE-2025-3491 in the wild and no public exploit code.
Sources
Also known as GHSA-cfcq-fg8w-gfj9.