Home

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.

PUBLISHED Reserved 2026-06-08 | Published 2026-06-09 | Updated 2026-06-09 | Assigner VulnCheck




CRITICAL: 9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CRITICAL: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem types

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

Product status

Any version before 3.3.1
affected

Credits

sucuri.net @sucurisecurity finder

References

www.exploit-db.com/exploits/41308 (ExploitDB-41308) exploit

fr.wordpress.org/plugins/insert-php/ (Official Product Homepage) product

www.vulncheck.com/...-plugin-php-code-injection-via-rest-api (VulnCheck Advisory: WordPress Insert PHP Plugin 4.7.0 PHP Code Injection via REST API) third-party-advisory

cve.org (CVE-2017-20251)

nvd.nist.gov (CVE-2017-20251)

Download JSON