Threat Overview
A critical, maximum-severity PHP Code Injection vulnerability in the Confection WordPress Cable privacy and analytics tracking plugin allows unauthenticated remote attackers to write arbitrary PHP code directly into an executable file on the server.
Tracked under CVE-2026-115252 (CVSS 10.0) across versions 0.4.0 through 0.4.7, the plugin has been permanently closed on the WordPress.org repository with no vendor patch available—leaving every site that still has the plugin installed open to instant takeover.
| Threat Metric | Technical Details |
|---|---|
| Severity Rating | CRITICAL (CVSS 10.0 / 10.0) |
| Vulnerability Class | Improper Control of Generation of Code — PHP Code Injection (CWE-94) |
| Vulnerable Components | Confection WordPress Cable Plugin (Versions 0.4.0 through 0.4.7 — Closed on WordPress.org) |
| Attack Vector | Unauthenticated HTTP POST writing unsanitized configuration values to a .php file |
| Exploit Precondition | Active Confection WordPress Cable plugin (versions 0.4.0 through 0.4.7) |
| Fixed Versions | Closed on WordPress.org with no official patch — uninstall immediately |
Our Take in Plain English
“Marketing teams often install lightweight analytics or data-connector plugins and forget about them for years. In this case, the plugin didn’t even save settings to the database—it wrote incoming web parameters straight into a live
.phpfile on disk without checking who sent the request, and then the vendor abandoned the plugin. On a pre-rendered static edge site, third-party analytics run strictly as client-side tags with zero ability to write files to a server.”
The Breakdown: How the Exploit Works
Rather than storing its tracking account ID and configuration options inside the WordPress wp_options database table, the Confection WordPress Cable plugin persists settings by rewriting a local .php configuration file inside its own plugin directory.
In versions 0.4.0 through 0.4.7, the endpoint responsible for updating that configuration file lacks current_user_can() capability checks, authentication validation, and input escaping.
An unauthenticated remote attacker can submit a crafted configuration string containing PHP closing/opening tags and shell commands, which the plugin writes directly into the web-accessible .php file—yielding immediate Remote Code Execution upon the next HTTP request.
The Operational Risk: What an Attacker Gains
- Unpatched Abandoned Plugin (CVSS 10.0): Because the plugin is closed with no patch, WordPress update notifications will never fix the vulnerability.
- Instant Unauthenticated Webshell: Attackers inject persistent PHP execution payloads directly into the plugin’s own
.phpfile. - Complete Host & Database Takeover: Full access to the server filesystem,
wp-config.php, and all hosted databases. - High-Frequency Automated Scanning: Abandoned CVSS 10.0 plugins are prime targets for automated mass-exploitation campaigns.
The Modern Architectural Remedy
- Legacy Dynamic WordPress: Executes third-party plugin endpoints, database queries, and session handlers inside a single shared PHP runtime on the public origin server.
- Modern Pre-Rendered Edge Architecture: Compiles public pages into read-only static HTML at the global edge, eliminating exposed PHP endpoints and database attack surfaces.
Immediate Action Items for WordPress Operators
- Deactivate and Delete Immediately: Remove the
confection/ Confection WordPress Cable plugin directory fromwp-content/plugins/immediately. - Inspect Plugin Directory Before & After Removal: Check timestamps on
.phpfiles inside the plugin folder to determine if settings injection already occurred. - Scan for Secondary Backdoors: If the plugin file was modified, audit
wp-content/uploads/,wp-includes/, andwp_usersfor secondary persistence. - Rotate All Credentials: Rotate database passwords and WordPress authentication salts in
wp-config.php.
