CVE-2026-1257
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
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| shazdeh | administrative_shortcodes | to 0.3.4 (inc) |
Helpful Resources
Exploitability
| 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]