A use-after-free vulnerability exists in NGINX Plus and NGINX Open Source when configured as a proxy with variable server names and certain subrequest directives. This flaw can cause worker process crashes, memory corruption, or remote code execution if ASLR is disabled or bypassed. Versions prior to 1.30.7 and between 1.31.0 and 1.31.8 are affected. Fixed versions 1.30.7 and 1.31.9 address this issue.