CVE-2025-53859
NoneCVSS
—
EPSS
0.4%
Published
Aug 13, 2025
CISA due date
—
Cloudanix analysis
A configuration-specific flaw in NGINX's email proxy feature can let an outsider read pieces of the server's memory during login attempts, risking exposure of whatever data happens to be in memory at the time.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Network Service
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unauthenticated over-read of NGINX SMTP authentication process memory when ngx_mail_smtp_module is built, smtp_auth is set to "none", and the authentication server returns an "Auth-Wait" header, allowing arbitrary request bytes to be leaked to the authentication server.
Why it matters to the business
Potential exposure of sensitive data held in server memory during SMTP authentication, which could lead to credential or session leakage in environments using the affected SMTP proxy configuration.
How an attack unfolds
An attacker first prepares the target by ensuring the vulnerable SMTP configuration is active, then sends crafted unauthenticated SMTP requests that trigger the "Auth-Wait" response path, causing the server to leak arbitrary bytes from memory to the authentication backend.
How to fix it
Upgrade NGINX to the commit 0024724f2f77ac4fa0d7394e859608d6844a5914 or later; alternatively, disable smtp_auth none or remove the ngx_mail_smtp_module if the feature is not required.
How to confirm the fix worked
Confirm the running NGINX binary was built from a source tree containing commit 0024724f2f77ac4fa0d7394e859608d6844a5914; review nginx.conf for absence of smtp_auth none under mail contexts; test SMTP authentication flows with a backend that returns Auth-Wait.
Typical attack path
- Identify NGINX instances with ngx_mail_smtp_module enabled and smtp_auth none configured
- Send unauthenticated SMTP AUTH commands that elicit an Auth-Wait header from the backend
- Observe and capture leaked memory bytes returned in the authentication exchange
- Repeat to extract additional memory contents over multiple requests
How to detect it
Review NGINX error and mail logs for repeated unauthenticated SMTP sessions followed by backend Auth-Wait responses; correlate with authentication server logs showing unexpected extra data in requests; look for traffic patterns consistent with SMTP AUTH none method usage.
What your security team should do
- Prioritize upgrade of all internet-facing or internal NGINX instances using SMTP proxy to the fixed commit
- Audit mail{} blocks for smtp_auth none directives and replace with authenticated methods where possible
- Monitor EPSS and KEV updates given the 439-day publication window and low but stable exploit probability
- Include the fixed commit hash in change-management and SBOM tracking for downstream nginx builds
The record
NGINX Open Source and NGINX Plus have a vulnerability in the ngx_mail_smtp_module 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 ngx_mail_smtp_module, (2) the smtp_auth directive is configured with method "none," and (3) the authentication server returns the "Auth-Wait" response header. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | nginx | 0.7.0 | 1.29.1 |
| Bitnami | nginx-gateway | 0.7.0 | 1.29.1 |
| Debian:11 | nginx | 0 | No fix |
| Debian:12 | nginx | 0 | No fix |
| Debian:13 | nginx | 0 | No fix |
| Debian:14 | nginx | 0 | No fix |
| Debian:14 | nginx | 0 | 1.28.0-3 |
| Mageia:9 | nginx | 0 | 1.26.3-1.1.mga9 |
| openSUSE:Tumbleweed | nginx | 0 | 1.29.1-1.1 |
Related vulnerabilities
- CVE-2025-23419 When multiple server blocks are configured to share the same IP address and port, an… Also affects nginx
- CVE-2017-7529 Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow… Also affects nginx
- CVE-2016-1247 The nginx package before 1.6.2-5+deb8u3 on Debian jessie, the nginx packages before… Also affects nginx
- CVE-2016-4450 os/unix/ngx_files.c in nginx before 1.10.1 and 1.11.x before 1.11.1 allows remote… Also affects nginx
- CVE-2016-0742 The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to… Also affects nginx
- CVE-2014-3616 nginx 0.5.6 through 1.7.4, when using the same shared ssl_session_cache or… Also affects nginx
- CVE-2013-4547 nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass… Also affects nginx
- CVE-2013-0337 The default configuration of nginx, possibly 1.3.13 and earlier, uses world-readable… Also affects nginx