Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-13516: CWE-434 Unrestricted Upload of File with Dangerous Type in brainstormforce SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers

0
High
VulnerabilityCVE-2025-13516cvecve-2025-13516cwe-434
Published: Tue Dec 02 2025 (12/02/2025, 08:24:54 UTC)
Source: CVE Database V5
Vendor/Project: brainstormforce
Product: SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers

Description

The SureMail – SMTP and Email Logs Plugin for WordPress is vulnerable to Unrestricted Upload of File with Dangerous Type in versions up to and including 1.9.0. This is due to the plugin's save_file() function in inc/emails/handler/uploads.php which duplicates all email attachments to a web-accessible directory (wp-content/uploads/suremails/attachments/) without validating file extensions or content types. Files are saved with predictable names derived from MD5 hashes of their content. While the plugin attempts to protect this directory with an Apache .htaccess file to disable PHP execution, this protection is ineffective on nginx, IIS, and Lighttpd servers, or on misconfigured Apache installations. This makes it possible for unauthenticated attackers to achieve Remote Code Execution by uploading malicious PHP files through any public form that emails attachments, calculating the predictable filename, and directly accessing the file to execute arbitrary code granted they are exploiting a site running on an affected web server configuration.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 09:56:27 UTC

Technical Analysis

CVE-2025-13516 is a vulnerability classified under CWE-434 (Unrestricted Upload of File with Dangerous Type) affecting the SureMail – SMTP and Email Logs Plugin for WordPress, versions up to and including 1.9.0. The root cause lies in the plugin's save_file() function located in inc/emails/handler/uploads.php, which duplicates all email attachments into a web-accessible directory (wp-content/uploads/suremails/attachments/) without validating file extensions or MIME types. Files are saved with predictable filenames generated from MD5 hashes of their content, enabling attackers to calculate the exact URL of uploaded files. While the plugin attempts to mitigate risk by placing an Apache .htaccess file to disable PHP execution in this directory, this protection is ineffective on web servers such as nginx, IIS, Lighttpd, or on Apache servers with misconfigurations that ignore .htaccess directives. Consequently, an unauthenticated attacker can upload a malicious PHP file through any public form that sends email attachments, then access the file directly to execute arbitrary PHP code on the server. This results in remote code execution (RCE) with full control over the affected system. The vulnerability requires no authentication or user interaction, making it highly exploitable. The CVSS v3.1 base score is 8.1 (High), reflecting the network attack vector, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability. Although no known exploits are currently reported in the wild, the vulnerability poses a severe risk to WordPress sites using this plugin, especially those hosted on non-Apache or improperly configured servers. The lack of patch links indicates that a fix may not yet be available, underscoring the urgency for mitigations or vendor updates.

Potential Impact

This vulnerability allows unauthenticated remote attackers to achieve full remote code execution on affected WordPress sites running the SureMail plugin. Successful exploitation compromises the confidentiality, integrity, and availability of the web server and potentially the entire hosting environment. Attackers can execute arbitrary commands, deploy malware, pivot within the network, steal sensitive data, or deface websites. The predictable filename scheme and lack of file type validation significantly lower the barrier to exploitation. Organizations relying on SureMail for email logging and SMTP integration face risks of service disruption, data breaches, and reputational damage. The impact is exacerbated on servers running nginx, IIS, Lighttpd, or misconfigured Apache, where the protective .htaccess file is ineffective. Given WordPress's widespread use globally, this vulnerability could be leveraged in large-scale attacks targeting websites, especially those with public-facing forms that accept attachments. The absence of authentication and user interaction requirements increases the likelihood of automated exploitation attempts. Overall, this vulnerability represents a critical threat to organizations using the affected plugin, potentially leading to full system compromise and downstream impacts on business operations.

Mitigation Recommendations

Until an official patch is released, organizations should implement the following mitigations: 1) Restrict or disable public forms that accept email attachments to prevent malicious file uploads. 2) Configure web servers to explicitly deny execution of PHP or other script files in the wp-content/uploads/suremails/attachments/ directory, using server-specific directives (e.g., nginx 'location' blocks with 'deny all' or 'return 403', IIS request filtering rules, or Lighttpd configuration). 3) Implement web application firewall (WAF) rules to detect and block requests attempting to upload or access suspicious files in the attachments directory. 4) Monitor the uploads directory for unexpected or executable files and remove any suspicious content immediately. 5) Limit file upload types and enforce strict validation on any forms that handle attachments, ideally blocking executable file extensions and verifying MIME types. 6) Harden WordPress installations by restricting file permissions and disabling PHP execution in upload directories globally where possible. 7) Maintain comprehensive logging and alerting to detect exploitation attempts. 8) Plan for rapid deployment of vendor patches once available and test updates in staging environments before production rollout. These targeted mitigations address the specific weaknesses exploited by this vulnerability and reduce the attack surface effectively.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2025-11-21T18:57:45.563Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 692ef5303a1612a9372cbaba

Added to database: 12/2/2025, 2:18:24 PM

Last enriched: 2/27/2026, 9:56:27 AM

Last updated: 3/23/2026, 12:53:35 PM

Views: 210

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses