CVE-2025-13516
SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers <= 1.9.0 - Unauthenticated Arbitrary File Upload
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.
INFO
Published Date :
Dec. 2, 2025, 9:15 a.m.
Last Modified :
Oct. 18, 2026, 6:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the SureMail plugin to the latest version.
- Review server configuration for secure file upload handling.
- Remove any maliciously uploaded files from the server.
- Verify .htaccess or equivalent server configurations.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-13516.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-13516 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-13516
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-13516 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-13516 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 18, 2026
Action Type Old Value New Value Added Translation Title: SureMail - SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers de brainstormforce, Description: El plugin SureMail - SMTP and Email Logs para WordPress es vulnerable a la Carga sin restricciones de archivos con tipo peligroso en versiones hasta e incluyendo la 1.9.0. Esto se debe a la función save_file() del plugin en inc/emails/handler/uploads.php, que duplica todos los archivos adjuntos de correo electrónico en un directorio accesible desde la web (wp-content/uploads/suremails/attachments/) sin validar las extensiones de archivo o los tipos de contenido. Los archivos se guardan con nombres predecibles derivados de los hashes MD5 de su contenido. Si bien el plugin intenta proteger este directorio con un archivo .htaccess de Apache para deshabilitar la ejecución de PHP, esta protección es ineficaz en servidores nginx, IIS y Lighttpd, o en instalaciones de Apache mal configuradas. Esto hace posible que atacantes no autenticados logren la ejecución remota de código al subir archivos PHP maliciosos a través de cualquier formulario público que envíe archivos adjuntos por correo electrónico, calculando el nombre de archivo predecible y accediendo directamente al archivo para ejecutar código arbitrario, siempre que estén explotando un sitio que se ejecute en una configuración de servidor web afectada. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'brainstormforce', 'product': 'SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'semver', 'lessThanOrEqual': '1.9.0'}], 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-13516', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2025-12-02T14:40:44.372425Z'} -
New CVE Received by [email protected]
Dec. 02, 2025
Action Type Old Value New Value 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. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-434 Added Reference https://cwe.mitre.org/data/definitions/434.html Added Reference https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/admin/plugin.php#L407 Added Reference https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/emails/handler/uploads.php#L113 Added Reference https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/emails/handler/uploads.php#L231 Added Reference https://plugins.trac.wordpress.org/changeset/3403145/suremails/trunk?contextall=1&old=3389326&old_path=%2Fsuremails%2Ftrunk Added Reference https://www.wordfence.com/threat-intel/vulnerabilities/id/f3a20047-a325-4d29-a848-7ffa525d0bad?source=cve