8.1high
SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers <= 1.9.0 - Unauthenticated Arbitrary File Upload
- Severity
- 8.1high CVSS:3.1 by Wordfence
- Exploit likelihood
- 1.04% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Wordfence
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| brainstormforce SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers | up to 1.9.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-13516 changed 2026-04-08 | CVE Terms of Use |
| NVD | CVE-2025-13516 changed 2026-10-18 | Public domain |