CVE-2026-1257
Unknown Unknown - Not Provided
Local File Inclusion in WordPress Admin Shortcodes Plugin Allows Code Execution

Publication date: 2026-01-24

Last updated on: 2026-01-24

Assigner: Wordfence

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-01-24
Last Modified
2026-01-24
Generated
2026-05-07
AI Q&A
2026-01-24
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
shazdeh administrative_shortcodes to 0.3.4 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-98 The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The vulnerability in the Administrative Shortcodes WordPress plugin allows authenticated users with Contributor-level access or higher to exploit a Local File Inclusion (LFI) flaw via the 'slug' attribute of the 'get_template' shortcode. Due to insufficient validation of user input passed to the get_template_part() function, attackers can include and execute arbitrary files on the server, including PHP code, which can lead to unauthorized code execution.


How can this vulnerability impact me? :

This vulnerability can allow attackers to bypass access controls, execute arbitrary PHP code on the server, and obtain sensitive data. Even files that are normally considered safe, like images, can be uploaded and included to achieve code execution, potentially compromising the entire server hosting the WordPress site.


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include disabling or uninstalling the Administrative Shortcodes plugin until a secure version is released, as the plugin has been closed and is unavailable for download pending a full security review. Additionally, restrict Contributor-level access to trusted users only, and monitor for any suspicious activity related to file inclusion or code execution attempts. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart