Cloudanix VulnDB

CVE-2025-53859

None

CVSS

—

EPSS

0.4%

Published

Aug 13, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Identify NGINX instances with ngx_mail_smtp_module enabled and smtp_auth none configured
  2. Send unauthenticated SMTP AUTH commands that elicit an Auth-Wait header from the backend
  3. Observe and capture leaked memory bytes returned in the authentication exchange
  4. 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