A vulnerability exists in NGINX Plus and NGINX Open Source when a location is configured that uses the alias directive together with rewrite and a set or return directive referencing the $request_filename variable. Alternatively, the same result could be achieved when the $request_filename variable is used in an access log format directive. An unauthenticated attacker along with conditions beyond their control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.
Impact: This vulnerability may allow remote attackers to cause a denial-of-service (DoS) on the NGINX system or to possibly trigger a code execution. There is no control plane exposure; this is a data plane issue only.
Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | RedHat | nginx-2:1.26.3-16.el10_3.1 | * |
| Red Hat Enterprise Linux 10.2 Extended Update Support | RedHat | nginx-2:1.26.3-6.el10_2.8 | * |
| Red Hat Enterprise Linux 8 | RedHat | nginx:1.24-8100020261102220528.489197e6 | * |
| Red Hat Enterprise Linux 9 | RedHat | nginx:1.26-9090020261030210523.9 | * |
| Red Hat Enterprise Linux 9 | RedHat | nginx:1.24-9090020261031155201.9 | * |
| Red Hat Enterprise Linux 9 | RedHat | nginx-2:1.20.1-32.el9_9.1 | * |
| Red Hat Enterprise Linux 9.8 Extended Update Support | RedHat | nginx-2:1.20.1-28.el9_8.7 | * |
| Red Hat Enterprise Linux 9.8 Extended Update Support | RedHat | nginx:1.24-9080020261102213527.9 | * |
| Red Hat Enterprise Linux 9.8 Extended Update Support | RedHat | nginx:1.26-9080020261030153415.9 | * |
| Red Hat Hardened Images | RedHat | nginx-main-1.30.6-1.hum1 | * |
| Nginx | Ubuntu | esm-infra-legacy/trusty | * |
| Nginx | Ubuntu | esm-infra-legacy/xenial | * |
| Nginx | Ubuntu | esm-infra/bionic | * |
| Nginx | Ubuntu | esm-infra/focal | * |
| Nginx | Ubuntu | jammy | * |
| Nginx | Ubuntu | noble | * |
| Nginx | Ubuntu | resolute | * |
| Nginx | Ubuntu | stonking | * |
| Nginx | Ubuntu | upstream | * |