The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-1257

CVE-2026-1257: WordPress Administrative Shortcodes RCE

CVE-2026-1257 is a local file inclusion vulnerability in the Administrative Shortcodes plugin for WordPress that enables remote code execution. Attackers with Contributor-level access can exploit this flaw to execute arbitrary PHP code.

Published: January 30, 2026

CVE-2026-1257 Overview

The Administrative Shortcodes plugin for WordPress is vulnerable to Local File Inclusion (LFI) in all versions up to, and including, 0.3.4. The vulnerability exists in the slug attribute of the get_template shortcode 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.

Critical Impact

This vulnerability 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. Attackers with relatively low privileges (Contributor-level) can escalate to full server compromise.

Affected Products

  • Administrative Shortcodes plugin for WordPress versions ≤ 0.3.4
  • WordPress sites using the affected plugin with Contributors or higher user roles

Discovery Timeline

  • 2026-01-24 - CVE CVE-2026-1257 published to NVD
  • 2026-01-26 - Last updated in NVD database

Technical Details for CVE-2026-1257

Vulnerability Analysis

This Local File Inclusion vulnerability occurs within the Administrative Shortcodes plugin's shortcode processing functionality. The get_template shortcode accepts a slug attribute that is passed directly to WordPress's get_template_part() function without adequate sanitization or path validation. This architectural flaw allows attackers to manipulate the file path and include arbitrary PHP files from the server's filesystem.

The vulnerability is classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program), which describes scenarios where user input influences PHP file inclusion operations without proper validation. The attack requires network access and authenticated user privileges at the Contributor level or above, but once these conditions are met, exploitation can lead to complete server compromise.

Root Cause

The root cause is insufficient path validation on user-supplied input within the slug attribute processing. The vulnerable code at line 144 of administrative-shortcodes.php passes the user-controlled slug parameter to get_template_part() without sanitizing for path traversal sequences or validating that the requested file exists within an expected directory structure. This allows attackers to traverse outside the intended template directory and include arbitrary PHP files.

Attack Vector

The attack vector is network-based, requiring an authenticated session with Contributor-level permissions or higher. An attacker would craft a malicious shortcode with a manipulated slug attribute containing path traversal sequences (e.g., ../) to include files outside the intended template directory.

The attack chain typically follows these steps:

  1. Attacker authenticates to WordPress with Contributor-level access or higher
  2. Attacker creates or edits content containing a malicious get_template shortcode
  3. The shortcode includes a crafted slug value with path traversal sequences
  4. When the page is rendered, the vulnerable code includes the attacker-specified file
  5. If the included file contains PHP code, it executes in the context of the WordPress application

In scenarios where file uploads are permitted, attackers can upload a file with embedded PHP code (disguised as an image or other "safe" file type) and then use this LFI vulnerability to include and execute that uploaded file, achieving remote code execution.

Detection Methods for CVE-2026-1257

Indicators of Compromise

  • Unusual access patterns to WordPress content creation endpoints by Contributor-level users
  • Post or page content containing get_template shortcodes with path traversal sequences (../)
  • Web server logs showing requests that result in unexpected file inclusions
  • Uploaded files with PHP code embedded within image headers or other file types
  • Unexpected PHP execution errors in error logs referencing non-template files

Detection Strategies

  • Review WordPress posts and pages for suspicious get_template shortcode usage with unusual slug values
  • Implement web application firewall rules to detect path traversal patterns in request parameters
  • Monitor for unusual file access patterns in WordPress installations, particularly in non-standard directories
  • Audit user activity logs for Contributors creating content with embedded shortcodes

Monitoring Recommendations

  • Enable detailed logging for WordPress shortcode processing
  • Monitor file system access for PHP files outside the standard theme and plugin directories
  • Set up alerts for new or modified content containing get_template shortcodes
  • Review web server access logs for patterns indicating LFI exploitation attempts

How to Mitigate CVE-2026-1257

Immediate Actions Required

  • Update the Administrative Shortcodes plugin to a version newer than 0.3.4 if a patched version is available
  • If no patch is available, deactivate and remove the Administrative Shortcodes plugin until a fix is released
  • Review existing posts and pages for malicious get_template shortcode usage
  • Audit user accounts with Contributor-level access and above for suspicious activity
  • Consider restricting Contributor-level permissions if the plugin must remain active

Patch Information

Organizations should monitor the WordPress Administrative Shortcodes Plugin page for updated versions that address this vulnerability. Additional details are available in the Wordfence Vulnerability Report. The vulnerable code can be reviewed at the WordPress Plugin Source Code repository.

Workarounds

  • Disable the get_template shortcode functionality by adding a filter to remove it from the registered shortcodes
  • Implement input validation at the theme level to sanitize any slug parameters before they reach get_template_part()
  • Use a web application firewall (WAF) to block requests containing path traversal sequences
  • Restrict file upload capabilities to trusted administrators only
bash
# WordPress configuration to disable the vulnerable shortcode
# Add to your theme's functions.php or a custom plugin

# Remove the vulnerable shortcode registration
remove_shortcode('get_template');

# Alternative: Add this to wp-config.php to prevent Contributors from using shortcodes
# Note: This affects all shortcodes, not just the vulnerable one
define('DISALLOW_UNFILTERED_HTML', true);

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-98
  • Technical References
  • WordPress Plugin Source Code

  • WordPress Plugin Development Code

  • WordPress Administrative Shortcodes Plugin

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-4347: MW WP Form WordPress Plugin RCE Vulnerability

  • CVE-2026-4257: Contact Form by Supsystic RCE Vulnerability

  • CVE-2026-3328: WordPress Frontend Admin Plugin RCE Flaw

  • CVE-2026-3533: Jupiter X Core WordPress Plugin RCE Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English