# CVE-2017-20251: WordPress Insert PHP Plugin \< 2.5.1 PHP Code Injection via REST API

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, 09-02-2017)
- Next step: Check applicability: affected before 2.5.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-06-09 · Modified: 2026-11-12
- Record: https://cvemate.com/vulnerability/CVE-2017-20251 · JSON: https://cvemate.com/vulnerability/CVE-2017-20251/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.056%, percentile 81.942%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected

- themeisle woody code snippets: \< 2.5.1

## References

- <https://www.exploit-db.com/exploits/41308>
- <https://fr.wordpress.org/plugins/insert-php/>
- <https://www.vulncheck.com/advisories/wordpress-insert-php-plugin-php-code-injection-via-rest-api>
- <https://wordpress.org/plugins/insert-php/#developers>

---

Data as of 2026-12-05T11:10:28.323Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
