PHP Code Injection Vulnerability in Code Snippets Plugin by WordPress
CVE-2025-13035
8HIGH
What is CVE-2025-13035?
The Code Snippets plugin for WordPress is susceptible to PHP code injection across all versions up to and including 3.9.1. This vulnerability stems from the use of the extract() function on untrusted shortcode attributes within the evaluate_shortcode_from_flat_file method. This could allow an authenticated attacker, possessing Contributor-level access or higher, to execute arbitrary PHP code on the server by manipulating the $filepath variable. The risk is heightened if an administrator inadvertently enables the 'Enable file-based execution' setting and activates at least one Content snippet.
Affected Version(s)
Code Snippets * <= 3.9.1