A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-3105

CVE-2024-3105: Woody Code Snippets WordPress RCE Flaw

CVE-2024-3105 is a remote code execution vulnerability in the Woody code snippets WordPress plugin affecting versions up to 2.5.0. Attackers with contributor access can execute server code. Learn the technical details, impact, and mitigation.

Published: May 26, 2026

CVE-2024-3105 Overview

CVE-2024-3105 is a remote code execution vulnerability in the Woody code snippets – Insert Header Footer Code, AdSense Ads plugin for WordPress. The flaw affects all plugin versions up to and including 2.5.0. The vulnerability resides in the insert_php shortcode, which fails to restrict execution to high-privilege users. Authenticated attackers with contributor-level access or above can execute arbitrary PHP code on the underlying server. The issue is classified under CWE-94 (Improper Control of Generation of Code).

Critical Impact

Contributor-level WordPress users can execute arbitrary PHP code on the host, leading to full site compromise, lateral movement, and data theft.

Affected Products

  • Woody code snippets – Insert Header Footer Code, AdSense Ads plugin for WordPress
  • All versions up to and including 2.5.0
  • WordPress sites permitting contributor-or-above registrations

Discovery Timeline

  • 2024-06-15 - CVE-2024-3105 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-3105

Vulnerability Analysis

The Woody code snippets plugin exposes an insert_php shortcode that evaluates PHP code embedded inside post or page content. WordPress shortcodes are processed when content is rendered, meaning any user who can author content containing the shortcode triggers PHP evaluation. The plugin omits capability checks such as manage_options or unfiltered_html before invoking the PHP interpreter on shortcode contents. Contributor accounts, which exist on many WordPress sites with open registration or editorial workflows, gain a direct path to remote code execution.

Root Cause

The root cause is a missing authorization check on shortcode execution. The shortcode handler defined in shortcode-insert-php.php processes the shortcode body without verifying the current user's role. The plugin treats shortcode authorship as an administrative action, while WordPress permits contributors to use shortcodes in draft content. This mismatch between intended and enforced privilege creates the code injection condition [CWE-94].

Attack Vector

The attack requires an authenticated account with contributor capabilities. The attacker creates or edits a post containing an [insert_php] shortcode wrapping arbitrary PHP. When the post is previewed or rendered, the plugin evaluates the PHP payload in the WordPress process context. The attacker gains code execution under the web server user, enabling file system access, database queries through wpdb, credential theft, and persistence via webshells or backdoored plugin files. See the Wordfence Vulnerability Report for additional technical context.

No verified public proof-of-concept code is included in this advisory. Refer to the WordPress Plugin Class File and the WordPress Changeset Log for the vendor remediation diff.

Detection Methods for CVE-2024-3105

Indicators of Compromise

  • Post or page revisions in wp_posts containing the [insert_php] shortcode authored by non-administrator users
  • Unexpected PHP files written under wp-content/uploads/ or plugin directories after post previews
  • Outbound network connections from the PHP-FPM or Apache process to attacker-controlled infrastructure
  • New WordPress administrator accounts created shortly after contributor post activity

Detection Strategies

  • Query the WordPress database for any post content matching the insert_php or insert_PHP_code shortcode patterns and review the author capability level
  • Audit web server access logs for POST requests to /wp-admin/post.php and /wp-admin/admin-ajax.php followed by anomalous child process execution
  • Monitor for PHP processes spawning shell utilities such as sh, bash, wget, or curl, which is atypical for normal WordPress workloads

Monitoring Recommendations

  • Enable WordPress activity logging to capture post creation, plugin changes, and user role modifications
  • File integrity monitoring on the wp-content/plugins/insert-php/ directory and core WordPress files
  • Alert on EPSS-elevated CVEs across internet-facing CMS assets; this CVE sits in the 98th percentile of exploitation likelihood

How to Mitigate CVE-2024-3105

Immediate Actions Required

  • Update the Woody code snippets plugin to a version later than 2.5.0 that restricts insert_php to high-privilege users
  • Audit all WordPress accounts and remove unused contributor, author, and editor accounts
  • Search existing post content for the [insert_php] shortcode and review any matches authored by non-administrators
  • Rotate WordPress administrator passwords and API keys if compromise is suspected

Patch Information

The vendor addressed the issue in a release tracked under WordPress.org changeset 3102522. Review the WordPress Changeset Log for the exact code modifications that restrict shortcode execution to authorized roles.

Workarounds

  • Deactivate and remove the Woody code snippets plugin until the patched version is deployed
  • Disable user registration or restrict new accounts to the subscriber role, which lacks post-authoring privileges
  • Place the WordPress administration interface behind IP allowlisting or a web application firewall (WAF) rule blocking [insert_php] in POST bodies
  • Set DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS in wp-config.php to limit post-compromise persistence
bash
# wp-config.php hardening
define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);

# Audit posts for the vulnerable shortcode via WP-CLI
wp db query "SELECT ID, post_author, post_status FROM wp_posts \
  WHERE post_content LIKE '%[insert_php%' OR post_content LIKE '%[php%';"

# Remove the plugin if a patched version is unavailable
wp plugin deactivate insert-php
wp plugin delete insert-php

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWordpress

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability57.85%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • WordPress Plugin Class File

  • WordPress Shortcode File

  • WordPress Changeset Log

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-9227: GutenBee WordPress Plugin RCE Vulnerability

  • CVE-2026-9009: WordPress Crawlomatic Plugin RCE Vulnerability

  • CVE-2026-6169: WordPress Affiliate-Toolkit RCE Vulnerability

  • CVE-2026-8832: WPCode WordPress Plugin RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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