Skip to main content

Spam Protect For Contact Form 7 CVE-2026-1540

| EUVDEUVD-2026-18128 HIGH
Code Injection (CWE-94)
2026-04-02 WPScan GHSA-76vr-6c8c-grfj
7.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker gains editor-level WordPress access
  2. Delivery
    Craft malicious header in plugin settings
  3. Exploit
    Plugin logs header to PHP file
  4. Execution
    PHP file executes attacker code
  5. Impact
    Remote code execution achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires Spam Protect for Contact Form 7 WordPress plugin before version 1.2.10 with PHP file logging enabled. Attacker must have WordPress Editor role or higher privileges to craft malicious headers and achieve RCE. No victim interaction needed.

Impact

Despite the absence of CVSS and EPSS scores in available data, this vulnerability represents high real-world risk due to multiple critical factors: publicly available exploit code exists, the attack requires only editor-level WordPress access (a role commonly delegated to content creators and contributors), and successful exploitation grants full remote code execution on the server. The attack vector is network-based and requires no special complexity once editor credentials are obtained. While full site compromise requires existing authenticated access, the ease of exploitation and availability of POC code makes this a priority remediation target. The RCE impact is absolute-complete server compromise-despite the authentication requirement. Organizations should treat this as critical based on POC availability and straightforward exploitation mechanics.

Exploit ScenarioDerived

A disgruntled employee with WordPress editor credentials submits a contact form to the site while including PHP code in the User-Agent header (such as '<?php system($_GET["cmd"]); ?>'). The vulnerable plugin logs this header unfiltered to a PHP file in the web-accessible directory. The attacker then directly accesses or triggers inclusion of the log file, causing the embedded PHP code to execute, granting them a web shell for arbitrary command execution and complete server compromise. Public exploit code simplifies this attack, enabling rapid exploitation across multiple affected WordPress installations.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 02, 2026

Remote code execution in Spam Protect for Contact Form 7 WordPress plugin before version 1.2.10 allows authenticated users with editor-level privileges to achieve arbitrary code execution by crafting malicious headers that are logged to a PHP file. The vulnerability is publicly exploitable with proof-of-concept code available, making it a critical risk for WordPress installations using affected plugin versions.

RemediationAI

Immediately upgrade Spam Protect for Contact Form 7 to version 1.2.10 or later, which addresses the insecure logging functionality. Site administrators should access the WordPress plugin management interface, locate Spam Protect for Contact Form 7, and update to the latest available version. Until patching is complete, restrict editor-level WordPress access to trusted users only and review user account permissions to remove unnecessary elevated privileges. Additionally, audit recent server access logs and PHP files in the plugin directory for any suspicious entries that may indicate exploitation attempts. The security advisory and patch details are available at https://wpscan.com/vulnerability/ad00d1bb-ea8d-44a3-9064-6412804d9e95/.

Affected VersionsENISA

Spam Protect for Contact Form 7 0 <1.2.10

Affected Packages

euvd spam_protect_for_contact_form_7 fix: 1.2.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Spam Protect for Contact Form 7 plugin implements insecure logging functionality that writes HTTP headers directly to a PHP file without proper sanitization or escaping. By exploiting PHP's dynamic code execution capabilities, an attacker with editor-level WordPress access can inject PHP code through HTTP headers (such as User-Agent or custom headers) that gets written to the log file. When the log file is subsequently accessed or included in the WordPress execution flow, the injected PHP code executes in the context of the web server. This is a classic example of unsafe file logging (CWE-434: Unrestricted Upload of File with Dangerous Type) combined with code injection vulnerabilities. The vulnerability specifically affects the Spam Protect for Contact Form 7 plugin across all versions prior to 1.2.10.

Know when Spam Protect For Contact Form 7 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Apr 16, 2026 - 06:09 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
1.2.10
PoC Detected
Apr 03, 2026 - 16:10 vuln.today
Public exploit code
CVE Published
Apr 02, 2026 - 06:00 nvd
HIGH 7.2

DescriptionCVE.org

The Spam Protect for Contact Form 7 WordPress plugin before 1.2.10 allows logging to a PHP file, which could allow an attacker with editor access to achieve Remote Code Execution by using a crafted header

Executive ViewAI

Why It Matters

Spam Protect for Contact Form 7 WordPress plugin versions before 1.2.10 contain a remote code execution vulnerability that allows authenticated users with editor-level permissions to execute arbitrary code on affected websites. Organizations running this plugin face immediate risk of website compromise, data theft, and malware injection, particularly if editor accounts lack proper access controls or have been compromised.

Business Impact: High
Compensating Controls

Apply vendor patch (Spam Protect for Contact Form 7 version 1.2.10 or later). Interim: Disable the plugin entirely until patching is complete; restrict editor-level user access to minimum required personnel; monitor WordPress audit logs for unauthorized admin activity or code execution attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy