{"id":"CVE-2025-13516","aliases":["CVE-2025-13516"],"related":[],"kind":"vulnerability","state":"published","title":"SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers <= 1.9.0 - Unauthenticated Arbitrary File Upload","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-02T08:24:54.808Z","modified":"2026-10-18T18:10:00.100Z","severity":{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.9.0","status":"affected"}],"vendor":"brainstormforce","product":"SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers","source":"cvelist"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f3a20047-a325-4d29-a848-7ffa525d0bad?source=cve","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/emails/handler/uploads.php#L231","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/emails/handler/uploads.php#L113","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/admin/plugin.php#L407","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cwe.mitre.org/data/definitions/434.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/changeset/3403145/suremails/trunk?contextall=1&old=3389326&old_path=%2Fsuremails%2Ftrunk","tags":[],"sources":["cvelist","nvd"]}],"credits":["M Indra Purnama"],"assigner":"Wordfence","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-02T14:40:44.372Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-13516","url":"https://www.cve.org/CVERecord?id=CVE-2025-13516","licence":"CVE Terms of Use","modified":"2026-04-08T17:32:55.713Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-13516","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13516","licence":"Public domain","modified":"2026-10-18T18:10:00.100Z"}],"updatedAt":"2026-11-25T22:59:08.175Z","epss":{"score":0.01036,"percentile":0.6484,"date":"2026-12-01T12:00:22.000Z"}}