Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-18438: CWE-434 Unrestricted Upload of File with Dangerous Type in wpdevteam Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!

0
High
VulnerabilityCVE-2026-18438cvecve-2026-18438cwe-434
Published: 08/15/2026 (08/15/2026, 09:25:18 UTC)
Source: CVE Database V5
Vendor/Project: wpdevteam
Product: Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!

Description

The Templately plugin for WordPress versions up to 3.7.1 contains a vulnerability that allows authenticated users with contributor-level access or higher to execute remote code on the server. This occurs due to improper validation of uploaded file types in the fetch_remote_file function, where validation is done against a user-controlled Content-Disposition filename rather than the actual destination filename. This flaw enables attackers to upload a polyglot file that passes image validation but is saved with a .php extension, bypassing security checks. Additionally, REST API endpoints controlling this functionality are protected only by a delete_posts capability check, which is insufficiently restrictive. No official patch or remediation guidance is currently available.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/15/2026, 09:56:06 UTC

Technical Analysis

CVE-2026-18438 affects the Templately – Elementor & Gutenberg Template Library WordPress plugin up to version 3.7.1. The vulnerability is a Remote Code Execution (RCE) caused by a mismatch in file type validation within the fetch_remote_file function. The plugin validates the file type against the Content-Disposition header filename, which an attacker controls, rather than the actual destination filename derived from the URL path. This allows an attacker with contributor-level privileges to upload a GIF+PHP polyglot file that passes image validation but is saved with a .php extension, enabling code execution on the server. The REST API endpoints involved (/templately/v1/clouds/upload, /templately/v1/insert, and /templately/v1/login) are protected only by a current_user_can('delete_posts') check, which is insufficient to prevent exploitation. The vulnerability also allows overwriting the global Templately cloud connection. A complete fix requires validating file types against the destination filename and restricting REST API routes to administrator-level capabilities.

Potential Impact

An authenticated attacker with contributor-level access or higher can execute arbitrary code on the server by uploading a specially crafted file that bypasses file type validation. This can lead to full compromise of the affected WordPress site, including data theft, site defacement, or further pivoting within the hosting environment. The insufficient permission checks on REST API endpoints increase the attack surface by allowing contributors to perform actions normally reserved for administrators.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict contributor-level access to trusted users only and consider disabling or restricting access to the Templately plugin's REST API endpoints if possible. Monitor for updates from the vendor that address validation of file uploads and tighten permission checks on REST API routes to require administrator-level capabilities.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-07-30T20:22:04.692Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a803456bf8831d539dc5051

Added to database: 08/15/2026, 09:41:42 UTC

Last enriched: 08/15/2026, 09:56:06 UTC

Last updated: 08/15/2026, 10:01:01 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses