CVE-2026-1540 Spam Protect for Contact Form 7 < 1.2.10 - Editor+ Remote Code Execution
An attacker with editor access can achieve remote code execution by exploiting a logging mechanism that writes to a PHP file.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-1540?
CVE-2026-1540 is a high-severity code injection vulnerability in Unknown Spam Protect for Contact Form 7, published on 2 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
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
Weakness: CWE-94
Which versions are affected by CVE-2026-1540?
How do I fix CVE-2026-1540?
No fix has been published for CVE-2026-1540 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-1540 being exploited?
There is no known exploitation of CVE-2026-1540 in the wild and no public exploit code.
Sources
Also known as GHSA-76vr-6c8c-grfj.