CVE-2025-13035CWE-94code-injection

CVE-2025-13035

High · published November 19, 2025

CVSS v3.1
8.0
EPSS
0%
Percentile
31.9
In the wild
Unconfirmed
What it is

⚡ A crafty authenticated attacker could run wild on your server, all thanks to a sneaky PHP Code Injection in the Code Snippets plugin for WordPress, affecting all versions up to 3.9.1! 🔥 Think of it like a restaurant where a cook can sneak in a secret ingredient without the chef looking—once they're in the kitchen, they can whip up anything they want! This vulnerability allows attackers with Contributor-level access to execute arbitrary PHP code on your server, potentially leading to catastrophic data breaches, site defacements, or even complete server takeover. If they trick an admin into enabling file-based execution, the consequences could be absolutely devastating!

Put simply

Think of it like a restaurant where a cook can sneak in a secret ingredient without the chef looking—once they're in the kitchen, they can whip up anything they want! The flaw arises from the use of the `extract()` function on shortcode attributes within the `evaluate_shortcode_from_flat_file` method. This allows attackers to overwrite the `$filepath` variable, which is then passed to `require_once`, enabling PHP code execution.

What to do

This vulnerability allows attackers with Contributor-level access to execute arbitrary PHP code on your server, potentially leading to catastrophic data breaches, site defacements, or even complete server takeover. If they trick an admin into enabling file-based execution, the consequences could be absolutely devastating! To protect yourself, immediately update the Code Snippets plugin to version 3.9.2 or later. Additionally, disable the 'Enable file-based execution' setting and audit user permissions to ensure only trusted users have access. You've got this! Follow these steps, and you'll be back to securing your site in no time. 🛡️

The record
Technical detail
CVSS v3.1
8.0 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00389 · 31.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-11-19T13:15Z
References (4)
EPSS history
Timeline
  • 19 NOV 07:46Z
    Code Snippets <= 3.9.1 - Authenticated (Contributor+) PHP Code Injection via extract() and PHP Filter Chains
    cvelistv5