Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://cwe.mitre.org/data/definitions/434.html
- https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/admin/plugin.php#
- https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/emails/handler/up
- https://plugins.trac.wordpress.org/browser/suremails/trunk/inc/emails/handler/up
- https://plugins.trac.wordpress.org/changeset/3403145/suremails/trunk?contextall=
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f3a20047-a325-4d29-a84
FAQ
What is CVE-2025-13516?
CVE-2025-13516 is a vulnerability with a CVSS score of 8.1 (HIGH). 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() ...
How severe is CVE-2025-13516?
CVE-2025-13516 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-13516?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.