NGINX mail proxy use-after-free can crash worker or lead to RCE
CVE-2026-113425 is a critical use-after-free in NGINX Plus and NGINX Open Source when configured as a mail proxy. Undisclosed traffic can crash an nginx worker process or corrupt memory, with potential remote code execution if ASLR is disabled or bypassed. Fixed in nginx 1.30.7 and 1.31.9.
Overview
CVE-2026-113425 affects NGINX Plus and NGINX Open Source when configured as a mail proxy. Undisclosed traffic can trigger a use-after-free in an nginx worker process. An attacker may crash the worker or corrupt memory, disrupting service. Remote code execution is possible on systems where ASLR is disabled or can be bypassed.
Fixed versions
According to the official nginx security advisories, this is fixed in nginx 1.31.9 (mainline) and nginx 1.30.7 (stable), released on 18 November 2026. Vulnerable: nginx 0.5.33 to 1.31.8. NGINX Plus users should follow F5 advisory K000163931 for their fixed release.
Impact
- Remote unauthenticated attacker can cause a denial of service via worker crash. - Memory corruption may lead to remote code execution in certain ASLR conditions. - This is a data plane issue only; no control plane exposure. - Software versions that have reached End of Technical Support (EoTS) are not evaluated.
Affected Products
- NGINX Plus - NGINX Open Source
Only configurations using the mail proxy module are implicated.
References
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-113425 - F5 advisory: https://my.f5.com/manage/s/article/K000163931 - nginx security advisories: https://nginx.org/en/security_advisories.html
What to do
1. Upgrade nginx to 1.30.7 (stable) or 1.31.9 (mainline) or later. NGINX Plus users should follow F5 advisory K000163931. 2. If nginx is deployed as a mail proxy, prioritise this upgrade, then run nginx -v to confirm the new version is running. 3. If you cannot upgrade straight away, restrict access to the mail proxy to trusted networks. 4. Verify that ASLR is enabled (e.g., kernel.randomize_va_space=2) to reduce the likelihood of remote code execution. 5. Monitor nginx worker crashes, restarts, and mail proxy traffic for anomalous activity. 6. Before changing production, verify the vendor advisory and test any patch or mitigation in a staging environment.