<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Templately – Elementor &amp; Gutenberg Template Library - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/templately--elementor--gutenberg-template-library/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 15 Aug 2026 10:18:16 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/templately--elementor--gutenberg-template-library/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Remote Code Execution in Templately WordPress Plugin</title><link>https://feed.craftedsignal.io/briefs/2026-08-templately-rce/</link><pubDate>Sat, 15 Aug 2026 10:18:16 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-templately-rce/</guid><description>Authenticated contributors can execute arbitrary code via the Templately plugin by bypassing file type validation through a GIF/PHP polyglot file.</description><content:encoded><![CDATA[<p>The Templately - Elementor &amp; Gutenberg Template Library plugin for WordPress (versions 3.7.1 and below) is susceptible to remote code execution (RCE) due to a flaw in the <code>fetch_remote_file</code> function. The plugin fails to validate file types against the actual destination path, instead relying on the attacker-controlled Content-Disposition header. An attacker with contributor-level permissions can craft a malicious GIF+PHP polyglot file that bypasses server-side checks. Because the plugin derives the final write path from the request URL, the file is saved with a .php extension rather than the expected image type. Furthermore, Templately's REST API endpoints (including those used for cloud imports) are improperly gated by the <code>delete_posts</code> capability, allowing users with low-level privileges to perform sensitive operations. This vulnerability significantly impacts WordPress sites using the plugin by providing a clear path to full system compromise for authenticated users.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker authenticates to the WordPress site with Contributor-level access or higher.</li>
<li>Attacker crafts a GIF/PHP polyglot file designed to bypass <code>wp_check_filetype_and_ext</code> validation.</li>
<li>Attacker sends a POST request to the vulnerable Templately REST API endpoint, specifically <code>/templately/v1/clouds/upload</code>.</li>
<li>The request includes a manipulated Content-Disposition header identifying the file as an image/gif to satisfy validation logic.</li>
<li>The <code>fetch_remote_file</code> function processes the request and writes the payload to the server.</li>
<li>Due to the destination path derivation flaw, the file is saved with a .php extension instead of an image extension.</li>
<li>Attacker triggers the uploaded PHP file via a direct HTTP request to the web server to achieve remote code execution.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in unauthorized remote code execution on the underlying web server. This allows an attacker to execute system commands, access the WordPress database, steal sensitive information, or further compromise the hosting environment. Organizations using Templately versions 3.7.1 or older are at risk of complete site takeover by any authenticated user with contributor-level access.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately update the Templately plugin to the latest available version to patch the <code>fetch_remote_file</code> validation logic.</li>
<li>Audit WordPress user permissions to identify and restrict excessive contributor-level accounts.</li>
<li>Deploy the provided web server detection rules to identify malicious requests targeting Templately REST API endpoints.</li>
<li>Monitor web server logs for suspicious POST requests to <code>/templately/v1/clouds/upload</code> that result in unusual file extensions or requests from authenticated accounts with limited roles.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>