CVE-2026-42945: a single HTTP request takes NGINX down
Published
CVE-2026-42945 is a heap buffer overflow in NGINX’s `ngx_http_rewrite_module`. It had been in the codebase since 2008, eighteen years. A single crafted HTTP request, unauthenticated, is enough to kill worker processes. Exploitation was confirmed against honeypot networks on 16 May 2026, four days after public disclosure.
Fixed by the vendor: updating NGINX is mandatory
What does this NGINX flaw actually do?
The URL rewrite module handles a crafted request without correctly checking its buffer bounds. Immediate result: the worker process dies. Repeat the request and the server stops serving anything: denial of service, unauthenticated, with no particular attack volume.
On systems where ASLR is disabled, exploitation does not stop at the crash: a working proof-of-concept demonstrating full remote code execution was already circulating publicly when mass exploitation started.
How did a flaw sit eighteen years in the code?
The flaw was introduced in 2008 and nobody saw it until 2026. That is a useful correction to "mature software, therefore safe" reasoning: a component’s age says nothing about its safety, only how long that particular path has gone unreviewed.
And because the vulnerable configuration pattern is common, the exposed population is enormous: every internet-reachable NGINX instance using that rewrite pattern.
What does it change in your threat model?
Here the flaw is not in your application. It is in the web server itself: underneath Magento, underneath WordPress, underneath your in-house API. Underneath everything you expose.
Put differently: a security plan that only looks at the CMS misses it. The layer that receives the request matters as much as the one that processes it.
What should you do today?
Update NGINX. That is the only real fix: a flaw in the web server is fixed in the web server.
While you are at it, confirm ASLR is enabled on your hosts. That is the difference between "my server restarts" and "someone is running code on my box".
Take inventory: forgotten instances (staging, an old subdomain, a vendor appliance) are the ones that stay vulnerable longest.
Who is affected?
- NGINX Open Source 0.6.27 through 1.30.0
- NGINX Plus R32 through R36, plus a wide range of derived products
- Any exposed instance using the vulnerable `rewrite` configuration pattern
- Exploitation confirmed on honeypots from 16 May 2026, four days after disclosure
How does AtriShield stop it?
Virtual patch (Business and Enterprise): the flaw is neutralised at the entrance of your server, without changing your application and without waiting for a maintenance window. Security metadata is reported to your console.
- ✓Virtual patch at the edge: requests matching the exploitation pattern are dropped before they reach the vulnerable rewrite configuration.
- ✓The filtering covers every application served by the instance (store, blog, API) because it acts before them.
- ✓Updating NGINX is still mandatory: the virtual patch covers the gap, it does not fix the binary.
- ✓Attempts are logged and reported to your console: you know whether you were targeted, and when.
Sources
- The Hacker News - NGINX CVE-2026-42945 exploited in the wild
- Hive Pro - Critical NGINX vulnerabilities including 18-year-old RCE flaw actively exploited
Analysis published by Atrilya Solutions, based on public security reporting. The links above point to the original sources.