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!
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.
AI Analysis
Technical Summary
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.
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!
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
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.