CVE-2025-3491
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Add custom page template WordPress plugin versions up to 2.0.1 contains a PHP Code Injection vulnerability in the 'acpt_validate_setting' function. The 'template_name' parameter is not properly sanitized before use, allowing authenticated administrators to inject and execute arbitrary PHP code on the server.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify the plugin is installedIn WordPress admin, go to Plugins > Installed Plugins and look for 'Add custom page template' or 'ACPT' plugin. Alternatively, check the /wp-content/plugins/ directory for a folder containing 'add-custom-page-template' or similar naming.Affected if The plugin is not found in the WordPress installation
-
Determine the installed versionIn WordPress admin, go to Plugins > Installed Plugins and find the 'Add custom page template' plugin. The version number is displayed below the plugin name. If not visible there, check the plugin's main PHP file header for the 'Version' tag.Affected if The installed version is 2.0.1 or any earlier version (the vulnerability affects versions up to and including 2.0.1)
-
Confirm administrator account access existsIn WordPress admin, go to Users > All Users and verify if any user account with the Administrator role exists. Alternatively, check /wp-admin/users.php for administrator-level accounts.Affected if At least one user with Administrator role exists in the WordPress installation (this vulnerability requires admin-level authentication to exploit)
-
Check if the vulnerable endpoint is accessibleExamine the plugin's PHP files (particularly the file containing 'acpt_validate_setting' function) to determine if the template_name parameter processing is reachable via an admin AJAX or settings API endpoint. Review network requests when accessing plugin settings.Affected if The plugin settings page or AJAX endpoints handling template_name are accessible to administrators
You are affected if the Add custom page template plugin is installed with version 2.0.1 or earlier and your site has at least one administrator-level user account.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate the plugin to the latest version once available. If no patch exists, immediately restrict administrator-level access and consider disabling the plugin until a fix is released.
Version 2.0.2 or later (check wordpress.org for latest stable release)
- 1. Check the WordPress plugin repository for the Add custom page template plugin to confirm if version 2.0.2 or a later version is available
- 2. If a newer version exists, navigate to Dashboard > Plugins in WordPress admin
- 3. Locate the Add custom page template plugin in the installed plugins list
- 4. Click Update Now if an update is available, or manually download the latest version from wordpress.org and upload via Plugins > Add New > Upload Plugin
- 5. After updating, verify the plugin is functioning correctly by testing custom page template creation
- 6. Ensure Administrator-level users are aware of the vulnerability and only trusted admins have access
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-3491 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-3491 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data