Templately <= 3.7.1 - Authenticated (Contributor+) Arbitrary File Upload to Remote Code Execution via Gutenberg Cloud Import Attachment Filename Mismatch

8.8
Unrestricted Upload of File with Dangerous Type
CVE CVE-2026-18438
CVSS 8.8 (High)
Publicly Published August 14, 2026
Last Updated August 15, 2026
Researcher Dmitrii Ignatyev - CleanTalk Inc

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.

Learn more about Arbitrary File Upload vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!

Software Type Plugin
Software Slug templately (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.7.2, or a newer patched version
Affected Version
  • <= 3.7.1
Patched Version
  • 3.7.2

Recent vulnerabilities in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!

# Title CVE ID CVSS Researchers Date
1 Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! <= 3.7.1 - Unauthenticated Stored Cross-Site Scripting CVE-2026-66667 7.2 daroo August 14, 2026
2 Templately <= 3.7.0 - Missing Authorization CVE-2026-15359 5.3 Shivamani Vastrala August 3, 2026
3 Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! <= 3.6.1 - Authenticated (Contributor+) Information Exposure CVE-2026-42379 4.3 Ananda Dhakal April 27, 2026
4 Templately <= 3.4.8 - Unauthenticated Limited Arbitrary JSON File Write CVE-2026-0831 5.3 type5afe January 9, 2026
5 Templately <= 3.2.7 - Authenticated (Author+) Information Disclosure CVE-2025-49408 4.3 ch4r0n August 20, 2025
6 Templately <= 3.1.5 - Missing Authorization via AJAX actions CVE-2024-50424 6.3 Rafie Muhammad October 24, 2024
7 Templately <= 3.1.5 - Missing Authorization CVE-2024-50423 4.3 Rafie Muhammad October 24, 2024
8 Templately <= 3.1.2 - Missing Authorization CVE-2024-47308 5.3 Joshua Chan September 25, 2024
9 Templately <= 2.2.5 - Improper Authorization to Arbitrary Post Deletion CVE-2023-5454 6.5 Krzysztof Zając October 16, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation