Home

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 Reserved 2025-04-10 | Published 2025-04-26 | Updated 2026-04-08 | Assigner Wordfence




HIGH: 7.2CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Problem types

CWE-94 Improper Control of Generation of Code ('Code Injection')

Product status

Default status
unaffected

Any version
affected

Timeline

2025-04-25:Disclosed

Credits

ch4r0n finder

References

www.wordfence.com/...-b166-4d1f-8042-d0362e650c62?source=cve

plugins.svn.wordpress.org/...m-page-template/trunk/index.php

cve.org (CVE-2025-3491)

nvd.nist.gov (CVE-2025-3491)

Download JSON