CVE-2025-13035
WordPress vulnerability analysis and mitigation

Overview

The Code Snippets plugin for WordPress contains a PHP Code Injection vulnerability (CVE-2025-13035) affecting all versions up to and including 3.9.1. The vulnerability was discovered and disclosed on November 18, 2025. The issue exists in the plugin's evaluate_shortcode_from_flat_file method, which improperly handles attacker-controlled shortcode attributes using the extract() function (NVD, Rapid7).

Technical details

The vulnerability stems from the plugin's use of extract() on attacker-controlled shortcode attributes within the evaluate_shortcode_from_flat_file method. This can be exploited to overwrite the $filepath variable, which is subsequently passed to require_once. The vulnerability has been assigned a CVSS v3.1 base score of 8.0 (HIGH) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H, indicating network accessibility with high attack complexity, low privileges required, and user interaction needed (NVD).

Impact

If successfully exploited, authenticated attackers with Contributor-level access or higher can execute arbitrary PHP code on the server via the [code_snippet] shortcode. This is possible when an administrator enables the "Enable file-based execution" setting and creates at least one active Content snippet (NVD).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14478HIGH7.5
  • demo-importer-plus
NoYesJan 17, 2026
CVE-2025-8615MEDIUM6.4
  • cubewp-framework
NoYesJan 17, 2026
CVE-2025-14078MEDIUM5.3
  • woocommerce-for-paygent-payment-main
NoYesJan 17, 2026
CVE-2025-12129MEDIUM5.3
  • cubewp-framework
NoYesJan 17, 2026
CVE-2026-0725MEDIUM4.4
  • integrate-dynamics-365-crm
NoYesJan 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management