CVE-2026-18438
Deferred Deferred - Pending Action

Remote Code Execution in Templately WordPress Plugin

Vulnerability report for CVE-2026-18438, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-15

Last updated on: 2026-08-20

Assigner: Wordfence

Description

The Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 3.7.1 via the fetch_remote_file function. This is due to a filename validation/destination mismatch in fetch_remote_file, where file type validation is performed against the attacker-controlled Content-Disposition filename rather than the URL-path-derived destination filename. This makes it possible for authenticated attackers, with contributor-level access and above, to execute code on the server. A GIF+PHP polyglot file passes wp_check_filetype_and_ext validation as image/gif via the Content-Disposition filename, while the actual destination path is written with a .php extension derived from the URL path, bypassing the unfiltered_upload capability gate entirely. The affected endpoints are reachable at this privilege level because Templately's entire REST API β€” including the cloud import endpoints used in this attack (/templately/v1/clouds/upload and /templately/v1/insert) β€” is authorized only by a current_user_can('delete_posts') check, with no administrator or manage_options capability requirement. The same permission gate also allows a contributor to overwrite the site's global Templately cloud connection via the /templately/v1/login endpoint with global_signin set to true. A complete remediation should both correct fetch_remote_file to validate the file type against the actual destination filename rather than the Content-Disposition header (and avoid deriving the write path from the request URL), and restrict state-changing Templately REST routes to an appropriate administrator-level capability.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-15
Last Modified
2026-08-20
Generated
2026-09-04
AI Q&A
2026-08-15
EPSS Evaluated
2026-09-03
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
templatley elementor_gutenberg_template_library to 3.7.1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-434 The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Remote Code Execution flaw in the Templately WordPress plugin. It exists in versions up to 3.7.1 due to improper filename validation in the fetch_remote_file function. Attackers can exploit this by uploading a malicious file that bypasses security checks, allowing them to execute arbitrary code on the server with contributor-level access or higher.

Detection Guidance

This vulnerability requires checking for unauthorized file uploads or suspicious PHP files in WordPress directories. Inspect the /wp-content/uploads/ directory for unexpected PHP files disguised as images. Review server logs for requests to /templately/v1/clouds/upload or /templately/v1/insert endpoints with unusual parameters.

Impact Analysis

If you use the affected Templately plugin, an attacker with contributor access or higher could take full control of your WordPress site. They could install malware, steal data, deface your site, or use it to launch further attacks. The vulnerability allows complete server compromise.

Compliance Impact

This vulnerability could lead to severe compliance violations. If exploited, it may result in unauthorized access to sensitive data, triggering GDPR breach notifications and fines. For HIPAA, it could expose protected health information, requiring breach reporting and potential penalties.

Mitigation Strategies

Immediately update the Templately plugin to the latest version beyond 3.7.1 to address the Remote Code Execution vulnerability. Disable the plugin if an update is not available. Restrict contributor-level and higher user roles to prevent unauthorized access to vulnerable endpoints like /templately/v1/clouds/upload and /templately/v1/insert.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-18438. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart