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
Share

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

Lifecycle Timeline

1
Analysis Generated
Jun 26, 2026 - 15:46 vuln.today

DescriptionCVE.org

Administrator Arbitrary File Upload in TemplateSpare <= 4.2.0 versions.

AnalysisAI

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.

Technical ContextAI

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.

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.

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-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

CVE-2024-50498 CRITICAL POC
10.0 Oct 28

Remote code execution in the WP Query Console WordPress plugin (versions up to and including 1.0) by Ajit Bohra allows u

Share

CVE-2026-57658 vulnerability details – vuln.today

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