Vulnerability Alert CVE-2025-4665: Critical Pre-Auth SQL Injection in WordPress Contact Form Database Plugin (CFDB7)

CVE-2025-4665 is a critical (CVSS 9.6) pre-authentication SQL injection vulnerability in the WordPress Contact Form CFDB7 Database Addon plugin. The flaw allows remote attackers to exploit insufficient input validation and unsafe deserialization without authentication, affecting versions 1.3.2 and earlier. This vulnerability enables data exfiltration, database manipulation and potential remote code execution through PHP object injection chains.

November 4, 2025
November 4, 2025

0 min read

Vulnerabilities
Vulnerability Alert CVE-2025-4665: Critical Pre-Auth SQL Injection in WordPress Contact Form Database Plugin (CFDB7)

Technical Analysis

The WordPress Contact Form CFDB7 plugin contains a critical vulnerability chain that combines SQL injection with insecure deserialization. The vulnerability exists in the bulk action processing functionality where user-controlled input flows directly into SQL queries and deserialization operations without proper validation.

The attack requires no authentication because the vulnerable code runs in the plugin’s admin interface during bulk operations, accessible to any user who can trigger these actions.

Affected Systems

  • Vulnerable Plugin: WordPress Contact Form CFDB7 Database Addon.  
  • Affected Versions: All versions up to and including 1.3.2.  
  • Patched Version: 1.3.3 released September 16, 2025.  

Fix Information: Version 1.3.3 addresses the vulnerability through proper SQL parameterization using $cfdb->prepare() and restricted deserialization with ['allowed_classes' => false]

Attack Chain Progression

  1. Initial Request: Unauthenticated attacker accesses admin page and sends crafted requests to the CFDB7 plugin webserver.
  2. SQL Injection: Attacker executes malicious SQL commands with database privileges.
  3. Data Manipulation: Attacker can extract or modify database contents. 
  4. Object Injection: Using SQL injection access, attackers insert malicious serialized PHP objects into database fields that trigger object injection when later deserialized by the application. 
  5. Code Execution: PHP object injection enables the attacker to achieve remote code execution on the server.

Detection & Mitigation

Immediate Actions

Priority 1

  • Upgrade to CFDB7 version 1.3.3 on all WordPress installations.
  • Audit WordPress plugin inventories to identify vulnerable instances.
  • Block CFDB7 admin endpoints at WAF level until patching is complete.

Priority 2

  • Monitor database logs for unusual queries on CFDB7 tables.
  • Check for new WordPress admin accounts created in the past 30 days.

Why This Matters & Lessons Learned

Scale of Exposure: CFDB7's 600,000+ installations create high exposure among the 6,700+ new vulnerabilities identified affecting the WordPress ecosystem in H1 2025. Pre-authentication access means any internet-accessible WordPress site running vulnerable versions faces exploitation without user interaction.

Attack Chain Reality: Modern web application vulnerabilities increasingly involve chained exploits where initial access through one weakness enables exploitation of additional flaws. The CFDB7 vulnerability demonstrates how SQL injection can be a stepping stone to object injection and full system compromise.

Plugin Ecosystem Risk: WordPress plugin vulnerabilities continue to be a persistent attack vector due to inconsistent security practices across the development community. Form processing plugins deserve special attention as they handle user input and often have elevated database privileges.

Runtime Detection Gaps: Runtime Detection Gaps: While static analysis tools can identify individual vulnerabilities like SQL injection and unsafe deserialization, they may miss how these flaws chain together into exploitable attack paths. Runtime analysis helps security teams understand which vulnerability combinations are actually exploitable in production environments.

Conclusion 

CFDB7’s vulnerability highlights the amplification effect of plugin vulnerabilities. Pre-authentication access combined with vulnerability chaining transforms a coding mistake into ecosystem-wide risk. WordPress security requires moving beyond individual plugin fixes to address systemic coding practices across the plugin development community.

Table of contents

Related blogs

The keyv Supply Chain Attack: Affected Versions, IOCs, and the First-Hour Response Runbook

The keyv Supply Chain Attack: Affected Versions, IOCs, and the First-Hour Response Runbook

The keyv supply chain attack poisoned 11 npm seed packages and spread a Shai-Hulud worm to 400+ more. Get affected versions, IOCs, and the first-hour runbook.

August 4, 2026

13

When the AI Edits Its Own Trust Boundary: Remote Code Execution Vulnerability in AWS's Agentic IDE

When the AI Edits Its Own Trust Boundary: Remote Code Execution Vulnerability in AWS's Agentic IDE

We found a vulnerability in Kiro, AWS's agentic IDE, that breaks this promise. By planting hidden instructions in a web page Kiro reads, an attacker can make Kiro rewrite its own MCP (Model Context Protocol) server configuration file and gain arbitrary code execution on the developer's machine.

July 19, 2026

14

AsyncAPI Generator npm Attack: Miasma RAT via a Pwn Request

AsyncAPI Generator npm Attack: Miasma RAT via a Pwn Request

A stolen GitHub token let an attacker publish four backdoored @asyncapi packages through AsyncAPI's own release pipeline. Get the attack chain, IOCs, and first-hour response runbook.

July 14, 2026

A Primer on Runtime Intelligence

See how Kodem reads what actually loads and executes in your running applications, and why that changes which findings matter.

See the Kodem platform

Kodem shows which vulnerabilities actually load and execute in your running applications, so your team works the risk that is real.

The State of the Application Security Workflow

This report aims to equip readers with actionable insights that can help future-proof their security programs. Kodem, the publisher of this report, purpose built a platform that bridges these gaps by unifying shift-left strategies with runtime monitoring and protection.

3D book mockup of Kodem's State of the Application Security Workflow 2025 report

Get real-time insights across the full stack…code, containers, OS, and memory

Watch how Kodem’s runtime security platform detects and blocks attacks before they cause damage. No guesswork. Just precise, automated protection.

Kodem issues list with a magnified view of insight icons: runtime, ingress, and exploitability
Combined author
Kodem Security Research Team
Publish date

0 min read

Vulnerabilities