Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2493+ Articles
160+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. Critical File Upload RCE in Templatiq WordPress Plugin (CVE-2026-32474)
Critical File Upload RCE in Templatiq WordPress Plugin (CVE-2026-32474)

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-32474

Critical File Upload RCE in Templatiq WordPress Plugin (CVE-2026-32474)

CVE-2026-32474 allows Contributor-level users to upload arbitrary files in Templatiq <= 0.2.5, enabling remote code execution. CVSS score: 9.9.

Dylan H.

Security Team

August 19, 2026
5 min read

Affected Products

  • Templatiq <= 0.2.5

Executive Summary

A critical arbitrary file upload vulnerability (CVE-2026-32474) has been disclosed in the Templatiq WordPress plugin, affecting all versions up to and including 0.2.5. The vulnerability carries a CVSS score of 9.9 — among the highest possible — and allows any user with at least Contributor-level access to upload arbitrary files including PHP webshells, leading to full remote code execution.

CVSS Score: 9.9 (Critical)

Templatiq is a WordPress template library plugin used to import pre-built page designs. The file upload endpoint responsible for importing template assets fails to restrict file types, allowing authenticated Contributor-level users to upload PHP files directly to the web server.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-32474
CVSS Score9.9 (Critical)
TypeArbitrary File Upload leading to RCE
Attack VectorNetwork
Privileges RequiredLow (Contributor role)
User InteractionNone
ScopeChanged

Affected Versions

PluginAffected VersionsFixed Version
Templatiq<= 0.2.5> 0.2.5 (patch required)

Technical Analysis

The vulnerability exists in Templatiq's template import functionality. The plugin registers a REST API or AJAX endpoint that allows contributors to upload template files. Insufficient validation of the uploaded file type allows an attacker to substitute a PHP file for a legitimate template asset. Once uploaded to a web-accessible directory, the attacker can directly execute the webshell.

Attack Chain

1. Attacker registers or obtains a Contributor-level WordPress account
2. Attacker crafts a PHP webshell disguised as a Templatiq template file
3. File is uploaded via the vulnerable Templatiq import endpoint
4. Plugin writes file to web-accessible directory without type validation
5. Attacker accesses the uploaded PHP file via HTTP
6. Webshell executes — full server compromise achieved
7. Attacker installs backdoor, exfiltrates data, or pivots to hosted sites

Why CVSS 9.9?

The near-perfect CVSS score reflects:

  • Scope change: Compromising one site can affect the entire hosting environment
  • Full confidentiality, integrity, and availability impact
  • Low privileges required: Contributor accounts are commonly granted to untrusted users, freelancers, or guest authors
  • No user interaction required post-authentication

Impact of Successful Exploitation

ImpactDescription
Remote Code ExecutionExecute arbitrary PHP on the web server
Full Site TakeoverModify WordPress database, create rogue admins
Data ExfiltrationSteal user PII, payment data, credentials
Malware DistributionServe drive-by malware to site visitors
Lateral MovementCompromise other sites on shared hosting
Persistent AccessMaintain backdoor across plugin updates

Immediate Remediation

Step 1: Update or Remove Templatiq

# Check current installed version
wp plugin get templatiq --field=version
 
# Update if a patch is available
wp plugin update templatiq
 
# If no patch is available, deactivate immediately
wp plugin deactivate templatiq && wp plugin delete templatiq

Step 2: Audit Existing Uploads

Scan for PHP files in directories where only media/template files should exist:

# Check for PHP files in the uploads directory
find /path/to/wordpress/wp-content/uploads/ -name "*.php" -type f
 
# Check Templatiq's working directories
find /path/to/wordpress/wp-content/plugins/templatiq/ -name "*.php" \
  -newer /path/to/wordpress/wp-config.php -type f
 
# Search for common webshell patterns
grep -rl "system\s*(\$_" /path/to/wordpress/wp-content/
grep -rl "passthru\s*(\$_" /path/to/wordpress/wp-content/

Step 3: Restrict Contributor Capabilities

If Contributor-level accounts cannot be removed, restrict their capabilities:

// Add to wp-config.php or a must-use plugin
add_action('init', function() {
    $role = get_role('contributor');
    if ($role) {
        $role->remove_cap('upload_files');
    }
});

Step 4: Block PHP Execution in Upload Directories

# Apache — prevent PHP execution in uploads and temp directories
<Directory /path/to/wordpress/wp-content/uploads>
    <FilesMatch "\.php$">
        Order Allow,Deny
        Deny from all
    </FilesMatch>
</Directory>
# Nginx — block PHP execution in uploads
location ~* /wp-content/uploads/.*\.php$ {
    deny all;
    return 403;
}

Detection Indicators

IndicatorDescription
PHP files in wp-content/uploads/Potential webshells from file upload exploitation
POST requests to Templatiq API endpointsUpload exploitation attempts
Unexpected file extensions in template directoriesDisguised payloads
New administrator accountsPost-exploitation privilege escalation
Outbound HTTP/DNS from web serverC2 communication or data exfiltration

Post-Remediation Steps

  1. Update or remove Templatiq immediately
  2. Delete any PHP files found in upload/template directories
  3. Audit Contributor-level accounts — revoke upload privileges
  4. Rotate all WordPress credentials — admin, database, API keys
  5. Block PHP execution in upload directories at the web server level
  6. Enable file integrity monitoring to detect future unauthorized changes
  7. Deploy a WAF with file upload filtering rules
  8. Review access logs for POST requests to Templatiq endpoints

References

  • NIST NVD — CVE-2026-32474
  • OWASP — Unrestricted File Upload

Related Reading

  • Critical PHP Object Injection in FundEngine Plugin
  • Critical RCE in WPvivid Backup Plugin Threatens 900,000+
  • WordPress Modular DS Critical Flaw (CVSS 10.0)
#CVE-2026-32474#Arbitrary File Upload#WordPress#Templatiq#RCE#Contributor

Related Articles

Critical Unauthenticated RCE in JetEngine WordPress Plugin (CVE-2026-66613)

A CVSS 9.8 unauthenticated remote code execution flaw in JetEngine plugin <= 3.8.14 lets attackers fully compromise WordPress sites.

4 min read

Critical PHP Object Injection in FundEngine Plugin (CVE-2026-32470)

An unauthenticated PHP Object Injection flaw (CVSS 9.8) in FundEngine <= 1.7.9 allows remote attackers to execute arbitrary code without credentials.

3 min read

CVE-2026-14498: Query Wrangler WordPress Plugin Exposes Sites to RCE

A high-severity RCE flaw (CVSS 8.8) in the Query Wrangler WordPress plugin lets authenticated attackers inject and execute arbitrary PHP via a missing capability check.

4 min read
Back to all Security Alerts