CVE-2025-53859: NGINX ngx_mail_smtp_module vulnerability
NGINX Open Source and NGINX Plus have a vulnerability in the ngxmailsmtpmodule that might allow an unauthenticated attacker to over-read NGINX SMTP authentication process memory; as a result, the server side may leak arbitrary bytes sent in a request to the authentication server. This issue happens during the NGINX SMTP authentication process and requires the attacker to make preparations against the target system to extract the leaked data. The issue affects NGINX only if (1) it is built with the ngxmailsmtpmodule, (2) the smtpauth directive is configured with method "none," and (3) the authentication server returns the "Auth-Wait" response header.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 35Fixed in 34Fixed in 2Fixed in 33Fixed in 3Fixed in 32Fixed in 3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.29.1 - Upgrade
Upgrade
debian/nginxto a version that resolves this vulnerability.Fixed in 1.22.1-9+deb12u9Fixed in 1.22.1-9+deb12u10Fixed in 1.26.3-3+deb13u7Fixed in 1.26.3-3+deb13u10Fixed in 1.30.6-3
Event History
Frequently Asked Questions
What is the severity of CVE-2025-53859?
CVE-2025-53859 has been classified as a medium severity vulnerability.
How do I fix CVE-2025-53859?
To fix CVE-2025-53859, upgrade NGINX Open Source to version 1.29.1 or later, or upgrade NGINX Plus to version 30 or later.
Who is affected by CVE-2025-53859?
CVE-2025-53859 affects both NGINX Open Source versions from 0.7.22 to 1.29.0 and NGINX Plus version 30.
What does CVE-2025-53859 exploit?
CVE-2025-53859 exploits the ngx_mail_smtp_module, allowing an attacker to over-read memory during the authentication process.
What are the potential impacts of CVE-2025-53859?
The potential impacts of CVE-2025-53859 include leaking arbitrary bytes from the requests sent to the authentication server.