Skip to main content

WPMasterToolKit CVE-2025-14166

MEDIUM
Code Injection (CWE-94)
2025-12-12 security@wordfence.com
5.3
CVSS 3.1 · Vendor: wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Contributor/Author account
  2. Delivery
    Access Code Snippets feature
  3. Exploit
    Inject arbitrary PHP snippet
  4. Execution
    Plugin executes code on server
  5. Impact
    Escalate to admin / full site compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated WordPress account at Contributor level or above (Author-level is explicitly named) because the plugin's Code Snippets feature omits proper capability checks before creating and executing PHP. The specific prerequisite is access to the WPMasterToolKit Code Snippets feature on a site running version ≤ 2.13.0. Limiting factors: exploitation is NOT fully unauthenticated despite the provided vector's PR:N - a valid Contributor/Author session is mandatory, so sites that disable open registration or restrict author-level roles substantially reduce exposure; no user interaction from a victim and no special non-default configuration beyond having the plugin active are needed.

Impact

Signals conflict sharply and must be reconciled before prioritization. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N, score 5.3) is internally inconsistent with the description: it claims PR:N (unauthenticated) and only I:L with C:N/A:N, yet the description states exploitation requires 'authenticated attackers, with Contributor-level access and above' and results in 'remote code execution, privilege escalation, and complete site compromise' - which is a full C/I/A high impact, not a single low-integrity impact. This discrepancy suggests the published 5.3 score materially understates true impact; an independent assessment lands near CVSS 8.8 (High). EPSS is low at 0.46% (38th percentile), there is no CISA KEV listing, and no public exploit was identified at time of analysis, so there is no evidence of active or imminent mass exploitation today. Net: this is a genuinely serious authenticated RCE (any Contributor/Author account converts to full server code execution) whose official 5.3 score is misleadingly low, but real-world urgency is tempered by the authentication prerequisite, modest EPSS, and absence of KEV/POC. Prioritize patching on sites that allow untrusted Contributor/Author registrations; treat as lower urgency where author-level accounts are tightly controlled.

Exploit ScenarioDerived

An attacker who holds (or registers/obtains) a Contributor- or Author-level WordPress account logs in and navigates to the WPMasterToolKit Code Snippets feature, which fails to enforce proper capability checks. They create a snippet containing arbitrary PHP, which the plugin then executes on the server, yielding remote code execution, privilege escalation to administrator, and full site compromise. No public exploit was identified at time of analysis, and because PR is effectively low (not none), the attacker must first possess a low-privilege authenticated account.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 07, 2026

Authenticated PHP code execution in the WPMasterToolKit plugin for WordPress (all versions up to and including 2.13.0) lets any logged-in user with Author-level - and per the advisory, Contributor-level and above - access create and run arbitrary PHP through the plugin's Code Snippets feature, resulting in remote code execution, privilege escalation and full site compromise. Exploitation requires a valid low-privileged WordPress account plus the plugin's Code Snippets module being reachable, so sites that disable open registration or tightly control Author/Contributor roles sharply reduce exposure; no victim interaction and no exotic configuration are needed. At time of analysis there is no confirmed active exploitation (not in CISA KEV) and no public exploit identified, and EPSS is low at 0.46% (38th percentile). Note that the supplied NVD CVSS vector (PR:N, C:N/I:L/A:N) conflicts materially with our independent assessment (PR:L, C:H/I:H/A:H) and the assessed impact should govern prioritization.

RemediationAI

No exact fixed release version is confirmed in the available data: the references point to trunk source and the plugin changelog (https://plugins.trac.wordpress.org/log/wpmastertoolkit/) rather than to a tagged patched release, so treat this as "upstream fix indicated in trunk / released patched version not independently confirmed" and verify the current version on the WordPress.org plugin page or the changelog before upgrading - do not assume 2.13.1 exists. The primary action is to update WPMasterToolKit above 2.13.0 as soon as a patched release is verified, since the vulnerable file (admin/modules/core/class-code-snippets.php) is referenced in trunk. Until then, apply compensating controls matched to this specific flaw: deactivate the WPMasterToolKit Code Snippets module (or the plugin entirely) if the feature is not business-critical - this fully removes the execution primitive but loses snippet functionality; disable open user registration and audit existing Contributor/Author accounts, removing those roles from untrusted users, which eliminates the mandatory authentication prerequisite (side effect: editorial workflows that rely on authors are disrupted); and add a role-capability filter (e.g. via a small must-use plugin using map_meta_cap/user_has_cap) that strips the plugin's snippet-management capabilities from any role below Administrator, accepting the maintenance overhead of a custom filter. Defensively, run a file-integrity scan and review wp-content for unexpected PHP added via snippets, and consult the Wordfence advisory (https://www.wordfence.com/threat-intel/vulnerabilities/id/6049996a-514a-44f7-9878-4aa43598842a?source=cve) for updated patch guidance.

Affected ProductsAI

WPMasterToolKit plugin for WordPress, all versions up to and including 2.13.0, are affected; the plugin ships as a standard WordPress plugin and the vulnerable code path is admin/modules/core/class-code-snippets.php within the Code Snippets module. Any WordPress installation with the plugin installed and active and with at least one account holding Author or Contributor capabilities is in scope, since those roles can reach the snippet creation/execution functionality. The advisory source is Wordfence Threat Intelligence (https://www.wordfence.com/threat-intel/vulnerabilities/id/6049996a-514a-44f7-9878-4aa43598842a?source=cve), and the associated code references are the 2.13.0 tagged file (https://plugins.trac.wordpress.org/browser/wpmastertoolkit/tags/2.13.0/admin/modules/core/class-code-snippets.php#L135 and #L628), the equivalent trunk file (https://plugins.trac.wordpress.org/browser/wpmastertoolkit/trunk/admin/modules/core/class-code-snippets.php#L135 and #L628), and the plugin commit/changelog history at https://plugins.trac.wordpress.org/log/wpmastertoolkit/. No CPE strings were supplied with the intelligence feed, but the version ceiling of 2.13.0 is explicit.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the WordPress plugin WPMasterToolKit, a site-management utility whose 'Code Snippets' module is implemented in admin/modules/core/class-code-snippets.php (relevant logic at lines 135 and 628 in the 2.13.0 tag and trunk). Code Snippets features are inherently dangerous because they take user-supplied text and feed it to the PHP interpreter (via eval-style execution or a written-and-included PHP file), so the only thing standing between a low-privileged user and server-side code execution is the capability check gating access to that feature. CWE-94 (Improper Control of Generation of Code / Code Injection) describes the root cause here: the plugin fails to enforce WordPress's capability model (for example requiring manage_options or unfiltered_html-equivalent privileges) before allowing creation and execution of snippets, letting Author/Contributor roles reach an execution primitive reserved for administrators. The included references point to the same source lines in both the tagged 2.13.0 release and trunk plus the plugin changelog, which is the classic pattern for a capability-check fix being introduced upstream. Impact depends entirely on privilege context: a site that allows self-registration with Author rights converts this into a low-friction path to full administrative takeover, whereas sites with registration closed and Author roles restricted to trusted staff reduce it to an insider/privilege-escalation risk.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (wordfence) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 8.8 HIGH

Contributor/Author authentication is required so PR:L (not PR:N); arbitrary PHP execution yields full server compromise, so C:H/I:H/A:H over the network with low complexity.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (wordfence).

CVSS VectorVendor: wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.org

The WPMasterToolKit plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 2.13.0. This is due to the plugin allowing Author-level users to create and execute arbitrary PHP code through the Code Snippets feature without proper capability checks. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute arbitrary PHP code on the server, leading to remote code execution, privilege escalation, and complete site compromise.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Low
specific WordPress utility plugin with limited install base
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy