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

Summary

CVECVE-2026-18438
StatePUBLISHED
AssignerWordfence
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-15 10:16:29 UTC
Updated2026-08-20 12:48:10 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v3.1 8.8 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.009830000 probability, percentile 0.595820000 (date 2026-08-20)

Problem Types: CWE-434 | CWE-434 CWE-434 Unrestricted Upload of File with Dangerous Type


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Wpdevteam Templately Elementor Gutenberg Template Library 6500 Free Pro Ready Templates And Cloud! affected 3.7.1 semver Not specified

References

ReferenceSourceLinkTags
plugins.trac.wordpress.org/browser/templately/tags/3.6.5/includes/Core/Importer/WPImport... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.7.1/includes/Core/Importer/WPImport... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.7.1/includes/Core/Platform/Gutenber... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/changeset/3636643/templately/trunk/includes/Core/Importer/WPI... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.7.1/includes/Core/Importer/WPImport... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.6.5/includes/API/API.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.6.5/includes/API/MyClouds.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/changeset [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.7.1/includes/API/API.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/changeset [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.7.1/includes/API/MyClouds.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.6.5/includes/API/Import.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.6.5/includes/Core/Platform/Gutenber... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.7.1/includes/API/Import.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.7.1/includes/Core/Importer/WPImport... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/templately/tags/3.6.5/includes/Core/Importer/WPImport... [email protected] plugins.trac.wordpress.org
www.wordfence.com/threat-intel/vulnerabilities/id/4e68b2f2-12e4-4ff2-919d-26d6b... [email protected] www.wordfence.com
plugins.trac.wordpress.org/browser/templately/tags/3.6.5/includes/Core/Importer/WPImport... [email protected] plugins.trac.wordpress.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Dmitrii Ignatyev (en)

Additional Advisory Data

SourceTimeEvent
CNA2026-07-30T20:38:18.000ZVendor Notified
CNA2026-08-14T20:45:28.000ZDisclosed

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report