Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-8145

CVE-2025-8145: Contact Form 7 Redirection RCE Vulnerability

CVE-2025-8145 is a remote code execution flaw in Redirection for Contact Form 7 plugin that enables unauthenticated attackers to inject PHP objects and potentially execute code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 28, 2026

CVE-2025-8145 Overview

The Redirection for Contact Form 7 plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.2.4 via deserialization of untrusted input in the get_lead_fields function. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain in a Contact Form 7 plugin allows attackers to delete arbitrary files. Additionally, in certain server configurations, Remote Code Execution is possible.

Critical Impact

Unauthenticated attackers can exploit this PHP Object Injection vulnerability to delete arbitrary files on the server. Under specific server configurations, this vulnerability can be leveraged for Remote Code Execution, potentially leading to complete site compromise.

Affected Products

  • Redirection for Contact Form 7 plugin for WordPress versions up to and including 3.2.4
  • WordPress installations with Contact Form 7 plugin containing exploitable POP chains
  • Server configurations that enable Remote Code Execution through PHP Object Injection

Discovery Timeline

  • 2025-08-20 - CVE-2025-8145 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-8145

Vulnerability Analysis

This vulnerability is classified as Insecure Deserialization (CWE-502), which occurs when applications deserialize untrusted data without proper validation. The get_lead_fields function in the Redirection for Contact Form 7 plugin processes user-supplied input through PHP's deserialization mechanism without adequate sanitization, allowing attackers to craft malicious serialized objects.

The attack does not require any authentication, making it particularly dangerous for WordPress sites running vulnerable versions of this plugin. When combined with existing Property-Oriented Programming (POP) chains present in the Contact Form 7 plugin ecosystem, attackers can chain method calls to achieve destructive outcomes including arbitrary file deletion and, under certain server configurations, Remote Code Execution.

Root Cause

The root cause of this vulnerability lies in the unsafe use of PHP's unserialize() function on untrusted user input within the get_lead_fields function located in class-wpcf7r-lead.php. The function fails to validate or sanitize the incoming data before deserializing it, allowing attackers to inject arbitrary PHP objects into the application's memory space.

When PHP deserializes a malicious payload, it can instantiate objects of any class loaded in the application and trigger magic methods such as __destruct(), __wakeup(), or __toString(). If a suitable POP chain exists—as is the case with Contact Form 7—these magic methods can be chained to perform dangerous operations like file manipulation or code execution.

Attack Vector

The attack is conducted over the network and requires some user interaction, though the attacker does not need any authentication or privileges on the target WordPress installation. An attacker crafts a specially designed serialized PHP object payload that exploits the deserialization process in the get_lead_fields function.

The attack flow typically follows these steps: First, the attacker identifies a target WordPress site running the vulnerable Redirection for Contact Form 7 plugin. Next, they craft a malicious serialized PHP object that leverages known POP chains in the Contact Form 7 plugin ecosystem. The payload is then submitted to the application through the vulnerable function, triggering deserialization and executing the malicious object chain. Depending on the payload and server configuration, this can result in arbitrary file deletion or Remote Code Execution.

For technical details on the vulnerable code, see the WordPress Plugin Code Review and the Wordfence Vulnerability Report.

Detection Methods for CVE-2025-8145

Indicators of Compromise

  • Presence of serialized PHP object strings (starting with O:, a:, or s:) in HTTP request parameters, POST data, or cookies targeting the Redirection for Contact Form 7 plugin
  • Unexpected file deletions on the WordPress installation, particularly configuration files or critical plugin files
  • Web server logs showing unusual POST requests to Contact Form 7 related endpoints with large or encoded payloads
  • Evidence of unauthorized code execution or new PHP files appearing in the WordPress installation

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block serialized PHP object patterns in incoming requests
  • Monitor WordPress plugin directories for unexpected file modifications or deletions
  • Enable detailed logging for the Redirection for Contact Form 7 plugin and review for suspicious deserialization activities
  • Deploy runtime application self-protection (RASP) solutions capable of detecting PHP Object Injection attempts

Monitoring Recommendations

  • Configure real-time file integrity monitoring for critical WordPress directories including wp-content/plugins/ and wp-config.php
  • Set up alerting for unusual HTTP request patterns, particularly POST requests with serialized object signatures
  • Monitor for signs of lateral movement or privilege escalation following any suspected exploitation attempt
  • Review web server access logs for repeated attempts to access the vulnerable plugin endpoints

How to Mitigate CVE-2025-8145

Immediate Actions Required

  • Update the Redirection for Contact Form 7 plugin to a version newer than 3.2.4 immediately
  • If an update is not available, temporarily disable the Redirection for Contact Form 7 plugin until a patch is released
  • Review WordPress file system for signs of unauthorized file deletion or modification
  • Conduct a security audit of all installed WordPress plugins to identify other potential deserialization vulnerabilities

Patch Information

Site administrators should update the Redirection for Contact Form 7 plugin to the latest available version that addresses this PHP Object Injection vulnerability. Monitor the official WordPress plugin repository and the Wordfence Vulnerability Report for patch announcements and updated security guidance.

Workarounds

  • Temporarily disable the Redirection for Contact Form 7 plugin if updates are not immediately available
  • Implement WAF rules to block requests containing PHP serialized object patterns targeting the plugin
  • Restrict access to the WordPress admin and plugin endpoints through IP whitelisting where feasible
  • Enable PHP's disable_classes directive to prevent instantiation of dangerous classes used in known POP chains
bash
# WordPress WAF configuration example for ModSecurity
# Block PHP serialized object injection attempts
SecRule ARGS|REQUEST_BODY "@rx (O|a|s):\d+:" \
    "id:1001,\
    phase:2,\
    deny,\
    status:403,\
    log,\
    msg:'Potential PHP Object Injection Detected',\
    tag:'CVE-2025-8145'"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechContact Form 7

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.70%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • WordPress Plugin Code Review

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-1540: Spam Protect Contact Form 7 RCE Flaw

  • CVE-2025-8289: WordPress Redirection CF7 RCE Vulnerability

  • CVE-2025-23655: Contact Form 7 Paystack Add-on XSS Flaw

  • CVE-2025-23623: Contact Form 7 CCAvenue Add-on XSS Flaw
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