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.
Published: 2025-12-02
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch
AI Analysis

Impact

The v 1.9.0 and earlier release of the SureMail – SMTP and Email Logs Plugin for WordPress allows an attacker to upload any file type because the code that processes attachments does not validate the file extension or content type. The file is stored with a predictable name generated from an MD5 hash in a web‑accessible directory. If the site runs on a server configuration that does not enforce protection of that directory – such as nginx, IIS, Lighttpd, or a misconfigured Apache installation – the attacker can directly access a malicious PHP file and execute arbitrary code, potentially gaining full control of the server. This flaw is documented as CWE‑434.

Affected Systems

WordPress sites running the SureMail – SMTP and Email Logs Plugin version 1.9.0 or older, provided by brainstormforce. The vulnerability affects the plugin’s upload handling for email attachments, which stores files in wp‑content/uploads/suremails/attachments/ and relies on an Apache .htaccess rule that does not work on many common server platforms.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity, but the EPSS score of less than 1% suggests that, as of the latest data, exploitation attempts are expected to be rare. The vulnerability is not currently listed in the CISA KEV catalog. Attackers would need to submit a file through any public form that sends an email attachment and then calculate the expected MD5 hash to retrieve the file. Successful exploitation requires the target web server to allow PHP execution in the upload directory, which is typical for poorly configured or nginx/IIS/Lighttpd deployments.

Generated by OpenCVE AI on April 21, 2026 at 01:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the SureMail plugin to a post‑1.9.0 release that implements proper file type validation.
  • If an upgrade cannot be performed immediately, configure the web server to deny execution of files in wp-content/uploads/suremails/attachments – for nginx add a location block that denies PHP, for Apache add a .htaccess rule that refuses execution, and for IIS block .php extensions in that folder.
  • Delete or quarantine any files already present in the attachments directory that have a PHP extension or that were uploaded before the update to eliminate any existing malicious code.
  • If the plugin cannot be upgraded or properly secured, disable or remove it to eliminate the upload vector until a patch is available.

Generated by OpenCVE AI on April 21, 2026 at 01:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 04 Dec 2025 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Brainstormforce
Brainstormforce suremail
Wordpress
Wordpress wordpress
Vendors & Products Brainstormforce
Brainstormforce suremail
Wordpress
Wordpress wordpress

Tue, 02 Dec 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 02 Dec 2025 08:30:00 +0000

Type Values Removed Values Added
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.
Title SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers <= 1.9.0 - Unauthenticated Arbitrary File Upload
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Brainstormforce Suremail
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:32:55.713Z

Reserved: 2025-11-21T18:57:45.563Z

Link: CVE-2025-13516

cve-icon Vulnrichment

Updated: 2025-12-02T14:40:48.819Z

cve-icon NVD

Status : Deferred

Published: 2025-12-02T09:15:47.190

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-13516

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-21T01:15:20Z

Weaknesses