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-2026-5436

CVE-2026-5436: MW WP Form Path Traversal Vulnerability

CVE-2026-5436 is a path traversal flaw in MW WP Form plugin for WordPress that enables unauthenticated attackers to move arbitrary files and achieve remote code execution. This article covers technical details, affected versions, and mitigation.

Updated: May 14, 2026

CVE-2026-5436 Overview

CVE-2026-5436 is an arbitrary file move and read vulnerability in the MW WP Form plugin for WordPress, affecting all versions up to and including 5.1.1. The flaw stems from insufficient validation of the $name parameter passed to the generate_user_file_dirpath() function. WordPress's path_join() returns absolute paths unchanged, allowing an attacker-supplied absolute path to override the intended base directory. Unauthenticated attackers can move arbitrary files on the server, including wp-config.php, into the uploads folder. Moving sensitive configuration files often leads to remote code execution or full site compromise. Exploitation requires a form with a file upload field and the "Saving inquiry data in database" option enabled.

Critical Impact

Unauthenticated attackers can move arbitrary files such as wp-config.php to web-accessible locations, exposing database credentials and enabling remote code execution.

Affected Products

  • MW WP Form plugin for WordPress (all versions ≤ 5.1.1)
  • WordPress installations with the plugin active and a file upload form field
  • Sites with the "Saving inquiry data in database" option enabled

Discovery Timeline

  • 2026-04-08 - CVE-2026-5436 published to NVD
  • 2026-04-24 - Last updated in NVD database

Technical Details for CVE-2026-5436

Vulnerability Analysis

The vulnerability resides in the form processing logic of MW WP Form. The plugin loads attacker-controlled keys from the mwf_upload_files[] POST parameter into its Data model via _set_request_valiables(). During processing, regenerate_upload_file_keys() iterates these keys and calls generate_user_filepath() with the attacker-supplied key as the $name argument.

The key passes validation because the targeted file genuinely exists at the absolute path provided. The _get_attachments() method then re-reads the same keys and forwards the resolved file path to move_temp_file_to_upload_dir(), which invokes rename() to move the file into the uploads directory. This grants unauthenticated attackers arbitrary file relocation across the server filesystem.

Root Cause

The root cause is improper path handling [CWE-22] in generate_user_file_dirpath(). The function relies on WordPress's path_join(), which returns absolute paths unchanged and discards the intended base directory. When an attacker supplies an absolute path such as /var/www/html/wp-config.php, the joined path resolves to the attacker-controlled location rather than within the plugin's sandboxed upload directory.

Attack Vector

An unauthenticated attacker submits a crafted form request to a vulnerable MW WP Form instance. The attacker injects an absolute path into the mwf_upload_files[] POST parameter, targeting a sensitive file such as wp-config.php. The plugin validates that the file exists, then calls rename() to move it into the public uploads folder. Once wp-config.php is readable via HTTP, database credentials, authentication keys, and salts are exposed, enabling full site takeover.

php
// Vulnerable flow (pre-patch) in classes/models/class.data.php
foreach ( $upload_file_keys as $key => $upload_file_key ) {
    $upload_filename = $this->get_post_value_by_key( $upload_file_key );
    $form_id         = MWF_Functions::get_form_id_from_form_key( $this->get_form_key() );
    $filepath        = MW_WP_Form_Directory::generate_user_filepath( $form_id, $upload_file_key, $upload_filename );
    if ( ! $upload_filename || ! file_exists( $filepath ) ) {
        unset( $upload_file_keys[ $key ] );
        $this->set( $upload_file_key, '' );
    }
}

// Patched version wraps generate_user_filepath() in try/catch and rejects invalid paths
try {
    $filepath = MW_WP_Form_Directory::generate_user_filepath( $form_id, $upload_file_key, $upload_filename );
} catch ( \Exception $e ) {
    error_log( $e->getMessage() );
    unset( $upload_file_keys[ $key ] );
    $this->set( $upload_file_key, '' );
    continue;
}
if ( ! $upload_filename || ! $filepath || ! file_exists( $filepath ) ) {
    unset( $upload_file_keys[ $key ] );
    $this->set( $upload_file_key, '' );
}

Source: MW WP Form Security Patch Commit

Detection Methods for CVE-2026-5436

Indicators of Compromise

  • Unexpected presence of wp-config.php or other system files inside the WordPress uploads directory.
  • POST requests to MW WP Form endpoints containing mwf_upload_files[] parameters with absolute filesystem paths.
  • Missing or relocated sensitive WordPress files following form submissions.
  • New PHP files appearing in uploads directories shortly after MW WP Form interactions.

Detection Strategies

  • Inspect web server access logs for POST requests to MW WP Form processing URLs containing path-like values in mwf_upload_files[].
  • Monitor file integrity for wp-config.php, .htaccess, and other critical WordPress files.
  • Audit installed MW WP Form plugin versions across all WordPress instances to identify versions ≤ 5.1.1.
  • Review PHP error_log entries for rename() failures and file path anomalies in plugin code.

Monitoring Recommendations

  • Enable file integrity monitoring on the WordPress root and wp-content/uploads/ directories.
  • Alert on creation of .php files within upload subdirectories.
  • Track WAF telemetry for suspicious POST parameters containing absolute paths (/var/, /etc/, C:\).
  • Correlate form submission events with filesystem changes using a centralized logging pipeline.

How to Mitigate CVE-2026-5436

Immediate Actions Required

  • Update the MW WP Form plugin to the version released in changeset 3501261 or later.
  • If immediate patching is not possible, deactivate the MW WP Form plugin until updated.
  • Disable the "Saving inquiry data in database" option on all forms using file upload fields.
  • Audit the uploads directory for misplaced sensitive files and rotate credentials if wp-config.php was exposed.

Patch Information

The vendor fixed the vulnerability in the upstream commit f872ab18ca670f5867b2241745daa30cd0fab861. The patch wraps calls to generate_user_filepath() in a try/catch block and adds validation that rejects empty or invalid $filepath values before passing them to file_exists() and rename(). Refer to the Wordfence Vulnerability Report for additional details.

Workarounds

  • Remove all file upload fields from MW WP Form configurations until the plugin is updated.
  • Disable the database inquiry-saving option to break the exploitation prerequisite.
  • Restrict access to form submission endpoints using WAF rules that block absolute paths in POST parameters.
  • Apply filesystem permissions that prevent the web server user from reading wp-config.php outside its expected location.
bash
# Block requests containing absolute path traversal in mwf_upload_files[] (ModSecurity example)
SecRule ARGS_NAMES "@rx ^mwf_upload_files\[" \
    "chain,id:1026543601,phase:2,deny,log,msg:'CVE-2026-5436 MW WP Form path injection attempt'"
    SecRule ARGS "@rx ^(/|[A-Za-z]:\\\\)" "t:none"

# Verify plugin version via WP-CLI
wp plugin get mw-wp-form --field=version

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • WordPress Plugin File Reference

  • WordPress Plugin File Reference

  • WordPress Plugin Changeset

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-6381: WP Maps Path Traversal Vulnerability

  • CVE-2018-25324: Simple Fields WordPress Path Traversal

  • CVE-2021-47977: WordPress Anti-Malware Path Traversal Flaw

  • CVE-2021-47979: WordPress Backup Plugin File Deletion Flaw
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