
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-13035 is a PHP Code Injection vulnerability in the Code Snippets plugin for WordPress, affecting all versions up to and including 3.9.1. The flaw allows authenticated attackers with Contributor-level access or above to execute arbitrary PHP code on the server via the [code_snippet] shortcode using PHP filter chains. It was published on November 19, 2025, and assigned by Wordfence. It carries a CVSS v3.1 base score of 8.0 (High) (Wordfence, ENISA EUVD).
The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). Specifically, the plugin's evaluate_shortcode_from_flat_file method calls PHP's extract() function on attacker-controlled shortcode attributes without sanitization, allowing an attacker to overwrite the $filepath variable. This overwritten variable is then passed directly to require_once, enabling PHP filter chain-based code execution. Exploitation requires two preconditions: an administrator must have enabled the "Enable file-based execution" setting, and at least one active Content snippet must exist — meaning the attacker must socially engineer an administrator to configure these settings (Wordfence, ENISA EUVD).
Successful exploitation grants the attacker arbitrary PHP code execution on the web server, resulting in high confidentiality, integrity, and availability impact with a changed scope. An attacker could read sensitive data (credentials, database contents), modify or delete files, install backdoors or web shells, and potentially pivot to other systems on the network. The impact is scoped beyond the plugin itself to the underlying server environment (Wordfence, ENISA EUVD).
No public exploit code or active in-the-wild exploitation has been reported as of the available data. The EPSS score is approximately 0.042%, indicating a low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation complexity is rated High due to the requirement for user interaction (tricking an administrator) and specific non-default configuration prerequisites (Wordfence, ENISA EUVD).
[code_snippet] shortcode with a specially crafted attribute that, when processed by extract(), overwrites the $filepath variable with a PHP filter chain payload (e.g., php://filter/convert.base64-decode/resource=...).evaluate_shortcode_from_flat_file method processes the shortcode, extract() overwrites $filepath, and require_once loads and executes the attacker's PHP payload, achieving remote code execution (Wordfence).[code_snippet] shortcodes with unusual or encoded attribute values; PHP error logs referencing require_once failures or unexpected file paths including php://filter wrappers.bash, curl, wget, python) following page rendering events.The Code Snippets plugin released version 3.9.2 to address this vulnerability; administrators should update immediately (Wordfence, Sucuri Blog). As a workaround, administrators should disable the "Enable file-based execution" setting in the Code Snippets plugin options, which removes the vulnerable code path entirely. Additionally, review and restrict Contributor-level user accounts to only trusted individuals, and audit existing Content snippets for any suspicious entries.
Wordfence, the assigning CNA, published the vulnerability details and credited the discovery in their threat intelligence database. Sucuri included CVE-2025-13035 in their November 2025 vulnerability patch roundup, noting the importance of updating the plugin (Sucuri Blog). CISA referenced the vulnerability in their weekly bulletin for the week of November 17, 2025 (CISA Bulletin). Community discussion was limited, reflecting the relatively high exploitation complexity and non-default configuration requirements.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."