CVE-2026-42945 is a heap buffer overflow in NGINX's rewrite module triggered by a specific configuration pattern: a rewrite directive combined with if/set, an unnamed PCRE capture group, and a replacement string containing a question mark. This is not a network injection attack — it fires when NGINX processes a configuration that a developer wrote to solve a legitimate routing problem. The vulnerability has a CVSS 8.1, but that score is environment-dependent in a way the base metric obscures.
The critical factor is ASLR. Without effective address space layout randomization, an unauthenticated attacker can send crafted requests that trigger the overflow and achieve code execution in the worker process. With ASLR functioning — which is the default in modern Linux kernels and container runtimes — the same attack typically collapses to denial-of-service (worker restart), not remote code execution. This is not a minor adjustment; it's a categorical difference in vulnerability class. The CVE explicitly acknowledges this dependency, framing ASLR as a condition beyond NGINX's control, but offers operators no guidance on verifying their runtime's memory protection posture.
The deeper pattern here is systemic. NGINX's rewrite module has a decade-long vulnerability history where configuration-authoring complexity becomes the triggering layer for C-level memory corruption. This isn't coincidence — it's the consequence of configuration parsing code that evolved under the assumption that config authors are trusted, while network input received rigorous bounds-checking. When a legitimate rewrite rule pattern produces heap corruption, the failure is in code that didn't treat configuration input as untrusted, not in the developer's inability to predict undocumented interaction modes.
What you should do: audit your NGINX configurations for any rewrite rules combining capture groups with replacements containing ?. If you have rewrite directives with PCRE captures in if/set blocks, test them with ASLR enabled and confirm the worker process restarts gracefully under crafted request shapes rather than permitting instruction pointer control. In containerized environments with full ASLR, this is primarily a availability concern; on legacy deployments with ASLR disabled or weakened (common in some multi-tenant hosts and embedded systems), treat this as active RCE risk. The NGINX EoTS (End of Technical Support) carve-out means a significant population of installations will never receive patches, so the exposure window extends beyond the supported population.