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.
Published: 2025-04-26
Score: 7.2 High
EPSS: 1.9% Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The Add custom page template plugin for WordPress is vulnerable to PHP Code Injection that can be exploited by administrators or higher‑privileged users to execute arbitrary PHP code on the web server. This injection flaw, identified as CWE‑94, allows the attacker to compromise confidentiality, integrity, and availability of the affected system by running malicious scripts or system commands. The vulnerability exists in the acpt_validate_setting function where the template_name parameter is not properly sanitized.

Affected Systems

WordPress sites that use the Add custom page template plugin (developed by kiranpatil353) in any version up through 2.0.1 are affected. Administrators with high‑level access to the site via the WordPress dashboard can trigger the injection.

Risk and Exploitability

The CVSS score of 7.2 indicates a high severity risk, and the EPSS score of 2% shows a relatively low but non‑negligible likelihood that the vulnerability will be exploited in the wild. It is not listed in CISA KEV. Attackers must have Administrator‑level credentials to exploit the flaw, so the attack vector is likely internal or compromised credentials rather than external unauthenticated access. Once an attacker gains code execution, they can compromise the entire WordPress installation and potentially the underlying server.

Generated by OpenCVE AI on April 21, 2026 at 21:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the plugin to the latest version or remove it if no patch is available.
  • Disable or replace the vulnerable custom page template feature with a more secure alternative.
  • Restrict administrator privileges and enforce strong authentication, such as two‑factor authentication, to limit potential attackers.

Generated by OpenCVE AI on April 21, 2026 at 21:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-12493 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.
History

Mon, 28 Apr 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sat, 26 Apr 2025 05:45:00 +0000

Type Values Removed Values Added
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.
Title Add custom page template <= 2.0.1 - Authenticated (Administrator+) PHP Code Injection to Remote Code Execution
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:11:24.134Z

Reserved: 2025-04-10T00:05:32.738Z

Link: CVE-2025-3491

cve-icon Vulnrichment

Updated: 2025-04-28T13:39:53.214Z

cve-icon NVD

Status : Deferred

Published: 2025-04-26T06:15:16.213

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-3491

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-21T21:15:45Z

Weaknesses