CVE-2017-20251

WordPress Insert PHP Plugin < 2.5.1 PHP Code Injection via REST API

Published Jun 9, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
WordPress Insert PHP plugin versions before 2.5.1 contain a PHP code injection vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by injecting malicious shortcodes through the WordPress REST API. Attackers can send POST requests to the wp-json/wp/v2/posts endpoint with crafted content containing insert_php shortcodes to include and execute remote PHP files on the server.

Analysis

AI-generated

Technical impact

The WordPress Insert PHP plugin contains a PHP code injection flaw that permits unauthenticated attackers to inject and execute arbitrary PHP code. By crafting a POST request to the wp-json/wp/v2/posts endpoint with malicious insert_php shortcodes, an attacker can include remote PHP files and run them under the web server’s privileges. This is a classic code injection weakness (CWE‑94) that threatens confidentiality, integrity, and availability of affected WordPress sites.

Affected Systems

The vulnerability affects the Woody Code Snippets plugin by Themeisle, versions earlier than 2.5.1. Any WordPress site that has this plugin installed with the REST API publicly accessible is at risk. Site administrators often use this plugin to execute server‑side code, so the exposure is widespread wherever the plugin is deployed.

Risk and Exploitability

The CVSS score of 9.3 indicates a high‑severity remote code execution vulnerability with no authentication required. The EPSS score of <1% suggests that, at the time of assessment, exploitation probability was very low, though WordPress’s ubiquity and the public REST API endpoint create a large attack surface. The issue is not listed in CISA KEV, implying no large‑scale known exploitation. Attackers can reach the vulnerable point from any network, making the risk significant for exposed sites.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Insert PHP plugin to version 2.5.1 or later.
  • If the plugin is not required, uninstall or disable it.
  • Limit access to the WordPress REST API or block POST requests to wp-json/wp/v2/posts, for example by using a firewall rule or plugin security settings.
  • Apply general WordPress security best practices, such as disabling file editing via wp-config.php.

Generated by OpenCVE AI on November 15, 2026 at 13:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description WordPress Insert PHP plugin versions before 3.3.1 contain a PHP code injection vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by injecting malicious shortcodes through the WordPress REST API. Attackers can send POST requests to the wp-json/wp/v2/posts endpoint with crafted content containing insert_php shortcodes to include and execute remote PHP files on the server. WordPress Insert PHP plugin versions before 2.5.1 contain a PHP code injection vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by injecting malicious shortcodes through the WordPress REST API. Attackers can send POST requests to the wp-json/wp/v2/posts endpoint with crafted content containing insert_php shortcodes to include and execute remote PHP files on the server.
Title WordPress Insert PHP Plugin < 3.3.1 PHP Code Injection via REST API WordPress Insert PHP Plugin < 2.5.1 PHP Code Injection via REST API
References
Type Values Removed Values Added
Title WordPress Insert PHP Plugin 4.7.0 PHP Code Injection via REST API WordPress Insert PHP Plugin < 3.3.1 PHP Code Injection via REST API
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description WordPress Insert PHP plugin versions before 3.3.1 contain a PHP code injection vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by injecting malicious shortcodes through the WordPress REST API. Attackers can send POST requests to the wp-json/wp/v2/posts endpoint with crafted content containing insert_php shortcodes to include and execute remote PHP files on the server.
Title WordPress Insert PHP Plugin 4.7.0 PHP Code Injection via REST API
First Time appeared Cm-wp
Cm-wp woody Code Snippets
Weaknesses CWE-94
CPEs cpe:2.3:a:cm-wp:woody_code_snippets:*:*:*:*:*:wordpress:*:*
Vendors & Products Cm-wp
Cm-wp woody Code Snippets
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 12, 2026, 10:01 PM
Reserved
Jun 8, 2026, 11:54 AM
Status
Deferred
Published
Jun 9, 2026, 1:16 PM
Modified
Nov 12, 2026, 10:17 PM