Description
NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_slice_module module. When the slice directive and unnamed regex captures are configured or when a background cache update happens, unauthenticated attackers can send requests that may cause uninitialized memory access in the NGINX worker process, leading to limited disclosure of memory or a restart.
Impact:
This vulnerability may allow remote, unauthenticated attackers to have limited control to disclose memory contents or restart the NGINX worker process. There is no control plane exposure; this is a data plane issue only.
Note: The ngx_http_slice_module module is not enabled by default; it's enabled with the --with-http_slice_module configuration parameter.
Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
Vulnerability type
CWE-908
Use of Uninitialized Resource
The product uses or accesses a resource that has not been initialized.
Impact on systems
| Scope | Impact |
| Confidentiality |
Read Memory, Read Application Data When reusing a resource such as memory or a program variable, the original contents may not have been cleared before it is sent to an untrusted party. |
| Availability |
DoS: Crash, Exit, or Restart, DoS: Instability The uninitialized resource may contain values that cause program flow to change in ways that the programmer did not intend, possibly leading to a crash. |
| Other |
Unexpected State, Varies by Context The consequences vary depending on the type of resource and how it is used within the product. |
How to prevent it
Implementation
Explicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.
Implementation
Pay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.
Implementation
Avoid race conditions (CWE-362) during initialization routines.
Build and Compilation
Run or compile the product with settings that generate warnings about uninitialized variables or data.
All 1,027 CWE-908 CVEs, with trend and prevention