Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-13035 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

The Code Snippets plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 3.9.1. This is due to the plugin's use of extract() on attacker-controlled shortcode attributes within the `evaluate_shortcode_from_flat_file` method, which can be used to overwrite the `$filepath` variable and subsequently passed to require_once. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute arbitrary PHP code on the server via the `[code_snippet]` shortcode using PHP filter chains granted they can trick an administrator into enabling the "Enable file-based execution" setting and creating at least one active Content snippet.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-94Improper Control of Generation of Code ('Code Injection')[email protected]

Affected Products

ProductVersions
Code Snippets
<= 3.9.1 (semver)

CPE

  • cpe:2.3:a:code_snippets:code_snippets:*:*:*:*:*:wordpress:*:*
  • cpe:2.3:a:codesnippets:code_snippets:*:*:*:*:*:wordpress:*:*

Remediation

  • Upgrade: 3.9.2moderate effort

Change History

4 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-13035
NVD Published Date:
Nov 19, 2025
NVD Last Modified:
Oct 18, 2026
Source:
[email protected]
CVE-2025-13035 Details - Not Deferred