CVE-2026-1257

The Administrative Shortcodes plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 0.3.4 via the 'slug' attribute of the 'get_template' shortcode. This is due to insufficient path validation on user-supplied input passed to the get_template_part() function. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other "safe" file types can be uploaded and included.
Configurations

No configuration.

History

15 Apr 2026, 00:35

Type Values Removed Values Added
Summary
  • (es) El plugin Administrative Shortcodes para WordPress es vulnerable a la inclusión local de ficheros en todas las versiones hasta la 0.3.4, inclusive, a través del atributo 'slug' del shortcode 'get_template'. Esto se debe a una validación de ruta insuficiente en la entrada proporcionada por el usuario pasada a la función get_template_part(). Esto hace posible que atacantes autenticados, con acceso de nivel Colaborador y superior, incluyan y ejecuten ficheros arbitrarios en el servidor, permitiendo la ejecución de cualquier código PHP en esos ficheros. Esto puede usarse para eludir los controles de acceso, obtener datos sensibles o lograr la ejecución de código en casos donde imágenes y otros tipos de ficheros 'seguros' pueden ser subidos e incluidos.

24 Jan 2026, 08:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-24 08:16

Updated : 2026-06-17 10:15


NVD link : CVE-2026-1257

Mitre link : CVE-2026-1257

CVE.ORG link : CVE-2026-1257


JSON object : View

Products Affected

No product.

CWE
CWE-98

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')