NGINX Rift (CVE-2026-42945): The Bug That’s Been Hiding Since 2
A heap buffer overflow in NGINX's rewrite rule processing allows an unauthenticated attacker to crash worker processes or, with ASLR disabled, potentially execute arbitrary code.
Published on medium.com
On May 13, 2026, A critical security flaw was identified in NGINX, one of the most widely used pieces of software on the internet. This vulnerability is tracked as CVE-2026-42945 and nicknamed as “NGINX Rift,”.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a mismatch between the size calculation and the actual write when handling special characters in rewrite rule processing, leading to a heap buffer overflow.
Impact
An attacker could crash the NGINX worker process repeatedly, causing denial of service, and on servers with ASLR disabled, potentially achieve remote code execution.
What the attacker needed
NGINX with vulnerable rewrite rules; attacker can send crafted requests; ASLR disabled for RCE
The fix
The vulnerability was fixed by updating to NGINX 1.31.0 or 1.30.1, and can be mitigated by switching from unnamed to named captures in rewrite rules.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
NGINX is server software that handles web requests. A bug in how it processes certain rewrite rules means a specially crafted request can write more data into memory than was allocated, causing a crash or, in some setups, letting an attacker run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.