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
    • 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-2023-6449

CVE-2023-6449: Contact Form 7 Auth Bypass Vulnerability

CVE-2023-6449 is an authentication bypass flaw in Contact Form 7 for WordPress that allows arbitrary file uploads by authenticated attackers. This post covers technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2023-6449 Overview

CVE-2023-6449 affects the Contact Form 7 plugin for WordPress, one of the most widely deployed form plugins on the platform. The vulnerability stems from insufficient file type validation in the validate function and incomplete blocklisting in the wpcf7_antiscript_file_name function. Authenticated attackers with editor-level capabilities or above can upload arbitrary files to the affected site's server. The flaw is classified under [CWE-434] Unrestricted Upload of File with Dangerous Type. The vulnerability impacts all versions of Contact Form 7 up to and including 5.8.3, and is resolved in version 5.8.4.

Critical Impact

Authenticated editors can upload arbitrary files to the WordPress server. While default .htaccess restrictions and immediate file deletion limit direct remote code execution, the flaw can be chained with local file inclusion or other plugin behaviors to achieve code execution.

Affected Products

  • Rocklobster Contact Form 7 plugin for WordPress, all versions up to and including 5.8.3
  • WordPress sites running editor-level or higher accounts with the vulnerable plugin active
  • Sites running additional plugins that may preserve uploaded files beyond the default deletion window

Discovery Timeline

  • 2023-11-30 - Rocklobster releases Contact Form 7 version 5.8.4 with the security fix
  • 2023-12-01 - CVE-2023-6449 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2023-6449

Vulnerability Analysis

The vulnerability resides in two interrelated components of the Contact Form 7 file upload flow. The validate function does not enforce strict file type checks before accepting uploads through form submissions. The complementary wpcf7_antiscript_file_name function relies on a blocklist that fails to cover all dangerous file extensions and naming patterns.

Because the blocklist is incomplete, attackers can craft filenames that pass the sanitization routine while still carrying executable content or scripting payloads. Authenticated users with editor-level capabilities or higher can leverage this to write arbitrary files into the upload directory on the server.

Direct remote code execution is typically prevented by the default .htaccess configuration shipped with the plugin, which blocks execution within the upload path. Contact Form 7 also deletes uploaded files immediately after processing the form submission. However, both protections can be undermined by environment-specific factors.

Root Cause

The root cause is a deny-list approach to filename sanitization in wpcf7_antiscript_file_name, combined with weak MIME and extension enforcement in validate. Deny-list filtering is a known anti-pattern for upload security since attackers can always identify extensions, double extensions, or case variants not covered by the list. The fix in version 5.8.4 extends the filtering logic to cover additional dangerous extensions and tightens validation flow.

Attack Vector

Exploitation requires authenticated access with editor-level capabilities or above, which raises the bar but does not eliminate risk on multi-author sites. The attacker submits a crafted form with a file attachment whose name and extension evade the blocklist. The plugin writes the file to the uploads directory under the WordPress installation. If another installed plugin preserves the file beyond Contact Form 7's deletion routine, or if the web server is not honoring the bundled .htaccess, the file remains accessible. Chaining this primitive with a local file inclusion vulnerability in another component converts the upload into remote code execution.

No public proof-of-concept exploit code has been published for this issue. Technical details are documented in the Wordfence Vulnerability Report and the GitHub Change Comparison.

Detection Methods for CVE-2023-6449

Indicators of Compromise

  • Unexpected files in the wp-content/uploads/wpcf7_uploads/ directory, especially files with executable extensions or double extensions such as .phtml, .phar, .pht, or .php.jpg
  • Form submission requests to /wp-json/contact-form-7/v1/contact-forms/*/feedback containing multipart attachments with suspicious filenames
  • Editor or administrator accounts submitting forms with file attachments outside of normal usage patterns
  • New or modified PHP files in WordPress directories shortly after Contact Form 7 submissions

Detection Strategies

  • Audit installed Contact Form 7 versions across all WordPress sites and flag any instance at or below 5.8.3
  • Monitor web server access logs for POST requests to Contact Form 7 endpoints followed by GET requests to uploaded file paths
  • Inspect file integrity monitoring alerts for new files written under WordPress upload directories with non-standard extensions
  • Correlate authenticated session activity from editor-level accounts with file upload events to identify abuse of legitimate credentials

Monitoring Recommendations

  • Enable WordPress audit logging to capture form submissions, file uploads, and user role activity
  • Forward web server, PHP error, and WordPress audit logs to a centralized analytics platform for cross-source correlation
  • Establish alerting on creation of executable file types within wp-content/uploads/ regardless of source plugin
  • Track installations of plugins known to interact with Contact Form 7 uploads, since they may extend file lifetime beyond the default deletion window

How to Mitigate CVE-2023-6449

Immediate Actions Required

  • Update Contact Form 7 to version 5.8.4 or later on every WordPress instance using the plugin
  • Review editor, author, and administrator accounts and remove unused or excessive privileges
  • Inspect the wpcf7_uploads directory and broader wp-content/uploads/ tree for unexpected files and remove any artifacts
  • Audit other installed plugins for behaviors that may copy, move, or retain Contact Form 7 attachments

Patch Information

Rocklobster addressed the issue in Contact Form 7 5.8.4, released on 2023-11-30. The patch strengthens the wpcf7_antiscript_file_name filtering and revises the validate function. Patch details are available in the Contact Form 7 Release Note, the GitHub Change Comparison, and the WordPress Trac Changeset.

Workarounds

  • Disable file attachment fields in Contact Form 7 forms until the plugin can be updated
  • Confirm the .htaccess file in wp-content/uploads/wpcf7_uploads/ is present and that the web server honors AllowOverride directives
  • Enforce strict server-side execution restrictions on the uploads directory at the web server configuration level, independent of .htaccess
  • Restrict editor-level and above accounts using multi-factor authentication and strong password policies to limit prerequisite access
bash
# Nginx configuration to deny execution within WordPress upload paths
location ~* /wp-content/uploads/.*\.(php|phtml|phar|pht|php3|php4|php5|php7|php8)$ {
    deny all;
    return 403;
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechRocklobster Contact Form 7

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability8.66%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • Contact Form 7 Release Note

  • WordPress Trac File Reference

  • Wordfence Vulnerability Report
  • Vendor Resources
  • GitHub Change Comparison

  • WordPress Trac Changeset
  • Related CVEs
  • CVE-2025-3247: Contact Form 7 Auth Bypass Vulnerability

  • CVE-2024-2242: Contact Form 7 XSS Vulnerability

  • CVE-2024-4704: Contact Form 7 Open Redirect Vulnerability

  • CVE-2020-35489: Contact Form 7 WordPress RCE Vulnerability
Default Legacy - Prefooter | 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