CVE-2017-20251 CRITICAL

CVE-2017-20251: WordPress Insert PHP Plugin 4.7.0 PHP Code Injection via REST API

Vendor Themeisle
Product Woody Code Snippets
Weakness CWE-94 · Code injection
Published June 9, 2026
Last update June 9, 2026

CVSS base score

9.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

Woody Code Snippets before version 3.3.1 contains a code injection vulnerability that allows unauthenticated attackers to execute arbitrary PHP code on the site without user interaction. The vulnerability exists in how the plugin processes and executes code snippets, enabling remote code execution through network requests.

What an attacker can do

03Attacker Capabilities

Run arbitrary PHP code on the site and take complete control of it.

Potential impact on your site

04Site Impact

Complete site compromise; attacker can steal data, modify content, create admin accounts, or deface the site.

Conditions required to exploit

05Prerequisites

Network access only; no authentication or user interaction required.

Key dates

06Disclosure timeline

June 9, 2026 CVE published
June 9, 2026 Record updated

Related vulnerabilities

08Related CVE