A use-after-free vulnerability exists in the NGINX ngx_mail_proxy_module when configured as a mail proxy. This flaw can cause an nginx worker process to crash or corrupt its memory, potentially allowing remote code execution on systems with ASLR disabled or bypassed. The issue affects specific versions of NGINX Plus and Open Source prior to 1.30.7 and 1.31.9. The vulnerability impacts only the data plane and does not expose the control plane. Fixed versions are available.