CVE-2025-13516

8.1 HIGH

📋 TL;DR

The SureMail WordPress plugin allows unauthenticated attackers to upload malicious PHP files through public forms that email attachments, leading to remote code execution. This affects WordPress sites using SureMail plugin versions up to 1.9.0 on web servers without proper .htaccess protection.

💻 Affected Systems

Products:
  • SureMail – SMTP and Email Logs Plugin for WordPress
Versions: Up to and including 1.9.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability affects nginx, IIS, Lighttpd servers, and misconfigured Apache installations where .htaccess PHP execution blocking is ineffective.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise allowing attackers to execute arbitrary code, steal data, install backdoors, or pivot to other systems.

🟠

Likely Case

Attackers upload web shells to gain persistent access, deface websites, or deploy malware.

🟢

If Mitigated

If proper web server configuration blocks PHP execution in upload directories, impact is limited to file storage abuse.

🌐 Internet-Facing: HIGH - Exploitation requires only public form access, no authentication needed.
🏢 Internal Only: LOW - Vulnerability requires public-facing attack vector.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Attack requires calculating MD5 hash of malicious file to predict filename, which is trivial with known content.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.9.1 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3403145/suremails/trunk?contextall=1&old=3389326&old_path=%2Fsuremails%2Ftrunk

Restart Required: No

Instructions:

1. Update SureMail plugin to version 1.9.1 or later via WordPress admin panel. 2. Verify update completes successfully. 3. Clear any cached malicious files from wp-content/uploads/suremails/attachments/ directory.

🔧 Temporary Workarounds

Block PHP execution in upload directory

all

Configure web server to prevent PHP file execution in the vulnerable directory

For nginx: location ~* /wp-content/uploads/suremails/attachments/.*\.php$ { deny all; }
For Apache: Add 'php_flag engine off' to .htaccess in the directory

Disable plugin

linux

Temporarily disable SureMail plugin until patched

wp plugin deactivate suremails

🧯 If You Can't Patch

  • Remove or restrict public forms that email attachments through SureMail
  • Implement web application firewall rules to block uploads of PHP files to the vulnerable path

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel for SureMail plugin version. If version is 1.9.0 or lower, site is vulnerable.

Check Version:

wp plugin list --name=suremails --field=version

Verify Fix Applied:

Verify SureMail plugin version is 1.9.1 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to wp-content/uploads/suremails/attachments/
  • HTTP requests to PHP files in the suremails attachments directory
  • Multiple failed upload attempts with PHP extensions

Network Indicators:

  • POST requests to forms with PHP file attachments
  • GET requests to predictable MD5-named PHP files in uploads directory

SIEM Query:

web.access WHERE url CONTAINS '/wp-content/uploads/suremails/attachments/' AND (method = 'POST' AND file_extension = 'php' OR method = 'GET' AND url LIKE '%.php')

🔗 References

📤 Share & Export