Skip to main content

TemplateSpare CVE-2026-57658

| EUVDEUVD-2026-39663 CRITICAL
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-06-26 audit@patchstack.com GHSA-98gc-mw7m-prrh
9.1
CVSS 3.1 · Vendor: patchstack
View

Attack ChainAIDerived

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

  1. Access
    Obtain WordPress Administrator credentials
  2. Delivery
    Access TemplateSpare upload feature
  3. Exploit
    Upload PHP file bypassing type checks
  4. Execution
    Request uploaded webshell URL
  5. Persist
    Execute arbitrary code on server
  6. Impact
    Full site/host compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

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

Exploitation Conditions

Exploitation requires an authenticated WordPress account with Administrator privileges (CVSS PR:H), and the TemplateSpare plugin (<= 4.2.0) must be installed and active. The attack is network-reachable (AV:N) with low complexity (AC:L) and needs no user interaction (UI:N) once admin access is held. The dominant limiting factor is the Administrator privilege requirement: this is not exploitable by anonymous visitors, subscribers, or typical lower-privilege roles, which substantially narrows the realistic attacker population to compromised/rogue admins or multi-admin and WordPress multisite deployments where code execution should be constrained.

Impact

Signals conflict in a way defenders should weigh carefully. The CVSS base score of 9.1 is inflated by the S:C (scope change) and full C/I/A:H impact, yet the same vector specifies PR:H - exploitation requires an account that already holds Administrator privileges. A WordPress administrator can typically already install plugins/themes and execute code, so the marginal risk this vulnerability adds over an honest admin's existing capability is low; the realistic threat is privilege/role abuse, a compromised admin account, or a multi-admin/multisite environment where a lesser-trusted admin should not have code execution. No EPSS score, KEV entry, POC, or SSVC data was provided, so there is no evidence of automatable or in-the-wild exploitation. Net: high nominal CVSS but materially lower real-world priority than the number suggests, unless your trust model distinguishes administrators from code-execution rights. Note the scope choice (S:C) is debatable for a same-system webshell upload.

Exploit ScenarioDerived

An attacker who has obtained WordPress Administrator access - via credential theft, phishing, or an over-provisioned internal account - uses the TemplateSpare upload functionality to upload a PHP web shell instead of a legitimate template asset. They then browse to the uploaded file to execute commands, establishing persistent remote control of the site and underlying host. No public POC was identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 26, 2026

Arbitrary file upload in the TemplateSpare WordPress plugin (versions 4.2.0 and earlier) allows an authenticated administrator-level user to upload files of dangerous types, enabling deployment of a PHP web shell and full server compromise. The flaw was reported by Patchstack and carries a CVSS of 9.1, but exploitation requires existing high-privilege (Administrator) access. There is no public exploit identified at time of analysis and the issue is not listed in CISA KEV.

RemediationAI

No vendor-released patch version was identified in the provided data; consult the Patchstack advisory (https://patchstack.com/database/wordpress/plugin/templatespare/vulnerability/wordpress-templatespare-plugin-4-2-0-arbitrary-file-upload-vulnerability?_s_id=cve) and the WordPress.org plugin page for an updated release above 4.2.0 and upgrade as soon as one is available. As compensating controls until a fix is confirmed: restrict the number of Administrator accounts and enforce strong MFA on them since exploitation needs admin privileges; if TemplateSpare is not actively in use, deactivate and remove the plugin (trade-off: loses template-import functionality); harden the upload/storage directory by disabling PHP execution in wp-content upload paths via web-server config or .htaccess 'php_admin_flag engine off' (trade-off: may break other plugins that legitimately execute in those paths); and deploy a WAF/virtual patch (e.g., Patchstack) to block dangerous-type uploads. Note these mitigations reduce but do not eliminate risk from a fully trusted, malicious administrator.

Affected VersionsENISA

TemplateSpare n/a ≤4.2.0

Affected Packages

euvd templatespare no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

TemplateSpare is a WordPress starter-template/import plugin used to bootstrap site designs. The root cause is CWE-434 (Unrestricted Upload of File with Dangerous Type): an upload handler that does not adequately validate file extension, MIME type, or content, permitting executable PHP to land in a web-accessible path. Because WordPress executes PHP within the document root, a successfully uploaded script runs in the web server context, turning a file write into remote code execution. No CPE strings were supplied in the input; affected scope is derived from the Patchstack advisory naming the plugin slug 'templatespare' at versions <= 4.2.0.

Know when Wordpress Plugin 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 (patchstack) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 7.2 HIGH

Admin-only upload sets PR:H with AV:N/AC:L/UI:N; webshell RCE yields C/I/A:H, but the compromise stays within the same WordPress host so S:U rather than S:C.

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

Primary rating from Vendor (patchstack).

CVSS VectorVendor: patchstack

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

DescriptionCVE.org

Administrator Arbitrary File Upload in TemplateSpare <= 4.2.0 versions.

Executive ViewAI

Why It Matters

TemplateSpare WordPress plugin versions 4.2.0 and earlier suffer from a critical file upload vulnerability that enables Administrator users to deploy executable code, potentially compromising entire server infrastructure. Organizations using this plugin face elevated insider threat and account-compromise risks with no available vendor patch. Leadership must prioritize rapid inventory, access restrictions, and remediation to prevent data loss and service disruption.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Reduce Administrator account assignments to essential personnel only; (2) Disable the plugin if not operationally required; (3) Configure web server (.htaccess or WAF) to block PHP and executable file uploads in /uploads directory; (4) Implement comprehensive logging and alerting for all Administrator actions; (5) Deploy WordPress file integrity monitoring plugin; (6) Schedule quarterly security audits of Administrator privilege assignments.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche WordPress template-import plugin, 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

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

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

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