Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain author-level WordPress credentials
-
DeliveryCall XML-RPC wp.newPost to create wpcode PHP snippet
-
ExploitPublish executable snippet post
-
ExecutionTrigger [wpcode] shortcode rendering
-
Impacteval() executes attacker PHP server-side
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 | Exploitation requires an authenticated WordPress account with author-level capabilities or higher (CVSS PR:L), and the site's XML-RPC interface (xmlrpc.php / wp.newPost) must be reachable - the description specifically calls out XML-RPC as the creation path that bypasses the expected admin-only restriction. The malicious wpcode snippet must also be rendered through the [wpcode] shortcode for the eval() in run_eval() to fire. Limiting factors that reduce real-world risk: the attacker cannot exploit this unauthenticated (an author-or-higher credential is mandatory), so sites that tightly control author accounts, disable XML-RPC, or restrict who can publish are substantially harder to attack; no user interaction is required once the attacker has credentials and XML-RPC access. Affected configurations are any deployment running WPCode ≤ 2.3.5 with default capability handling. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 8.8) describes a network-reachable, low-complexity attack requiring low privileges and no user interaction, with high impact to confidentiality, integrity and availability - consistent with the description's claim that an author-level account yields server-side PHP execution. The EPSS score is low (0.44%, 63rd percentile), indicating no broad automated exploitation activity is currently observed, and the CVE is not listed in CISA KEV, so this is not confirmed actively exploited. No SSVC decision data was provided. The signals are coherent rather than conflicting: high technical impact and easy exploitation conditional on a single non-trivial prerequisite - the attacker must already hold author-or-higher credentials. That authentication requirement is what separates this from a wormable unauthenticated RCE and explains the modest EPSS. For sites with many lower-trust authors, contributors who have been elevated, or where author credentials can be obtained or guessed, this is a genuine high priority; for tightly controlled single-author sites the practical risk is lower but still significant given the trivial post-authentication path. |
| Exploit ScenarioDerived | An attacker who controls or compromises an author-level WordPress account authenticates to the site's XML-RPC endpoint and calls wp.newPost to create and publish a 'wpcode' post whose body contains a malicious PHP payload. When that snippet is rendered via the [wpcode] shortcode, run_eval() passes the payload to eval(), executing the attacker's code server-side. The attack is network-based and low-complexity per CVSS, requiring no victim interaction; no public exploit is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Remote code execution in the WPCode WordPress plugin (versions through 2.3.5) lets authenticated author-level users run arbitrary PHP on the server. Because the plugin registers its 'wpcode' custom post type without a dedicated capability_type, WordPress falls back to standard post capabilities, so any author can create and publish PHP snippet posts via the XML-RPC wp.newPost method, which are later passed to eval() when rendered through the [wpcode] shortcode. EPSS is modest at 0.44% (63rd percentile) and there is no public exploit identified at time of analysis, but the low privilege bar and full CIA impact make this a high-priority patch for any multi-author site.
RemediationAI
Vendor-released patch: 2.3.6 - upgrade WPCode to version 2.3.6 or later, which is the fixed release identified by the plugin-repository changeset diffing tag 2.3.5 against 2.3.6 (https://plugins.trac.wordpress.org/changeset?old_path=%2Finsert-headers-and-footers/tags/2.3.5&new_path=%2Finsert-headers-and-footers/tags/2.3.6) and the targeted post-type.php fix in changeset 3549060 (https://plugins.trac.wordpress.org/changeset/3549060/insert-headers-and-footers/trunk/includes/post-type.php), which adds capability restrictions to the wpcode post type. If immediate patching is not possible, reduce exposure by disabling XML-RPC (block or filter the wp.newPost method, e.g. via the xmlrpc_methods filter or a WAF rule) - note this can break legitimate clients such as the WordPress mobile app, Jetpack, and remote-publishing tools. As a stronger short-term control, restrict author-and-above accounts to fully trusted users and audit existing author/editor accounts for unexpected wpcode posts; you can also temporarily deactivate the plugin if no snippets are in active use, at the cost of losing any code injected through it. Review the Wordfence advisory (https://www.wordfence.com/threat-intel/vulnerabilities/id/75a2e8b1-d5e0-4f7b-a70a-f0aadf58c778?source=cve) for detection guidance.
Affected VersionsENISA
Affected Packages
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 vulnerability lives in WPCode's snippet-execution pipeline for WordPress. The root cause is CWE-94 (Improper Control of Generation of Code, i.e. code injection): wpcode_register_post_type() in includes/post-type.php registers the 'wpcode' custom post type without setting capability_type or a map_meta_cap capability set, so WordPress core applies the generic post/page capabilities (edit_posts, publish_posts) rather than an admin-only set. PHP-type snippets are ultimately handled by run_eval() in class-wpcode-snippet-execute-php.php, which calls PHP's native eval() on the snippet body when the [wpcode] shortcode (includes/shortcode.php) renders the snippet. Combined with the create paths exposed by the XML-RPC API (wp.newPost), this turns a content-authoring capability into direct server-side code execution. There is no CPE string in the supplied data; the EUVD entry identifies the affected component as 'WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager' at versions 0 through 2.3.5.
Know when PHP 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 2.3.5 This is due to the 'wpcode' custom post type being registered without a custom capability_type or capability restrictions in the wpcode_register_post_type() function, allowing WordPress core to fall back to standard post capabilities for all creation paths including XML-RPC. This makes it possible for authenticated attackers, with author-level access and above, to create and publish executable PHP snippet posts via XML-RPC wp.newPost, which are then executed server-side via eval() in the run_eval() function when the snippet is rendered through the [wpcode] shortcode.
Executive ViewAI
The WPCode WordPress plugin (versions through 2.3.5) allows authenticated author-level users to execute arbitrary PHP code on the server through the XML-RPC API. Multi-author WordPress installations face immediate risk of data exfiltration and unauthorized system access. No vendor patch is currently available, requiring urgent deployment of compensating controls and upgrade planning.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict XML-RPC protocol at network/WAF level; (2) Restrict author-level account creation to essential, vetted personnel only; (3) Remove WPCode plugin from production if non-critical pending security update; (4) Enable comprehensive audit logging of post creation and modification events; (5) Implement file integrity monitoring on WordPress content directories; (6) Review and delete all WPCode snippet posts created by non-administrative users.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-32100
GHSA-54cw-c4v7-gx5m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB