Security AffairsPierluigi Paganini
NGINX Rift flaw lets attackers run code with one HTTP request
Researchers at depthfirst disclosed a critical 18-year-old heap buffer overflow in NGINX, tracked as CVE-2026-42945 and named NGINX Rift, affecting both NGINX Open Source and NGINX Plus. The flaw has a CVSS v4 score of 9.2 and lies in the ngx_http_rewrite_module, with the trigger tied to a configuration pattern that combines unnamed PCRE capture groups with a replacement string containing a question mark.
According to depthfirst, the attack can be launched by a single HTTP request from an attacker who can reach a vulnerable server, enabling remote code execution in the NGINX worker process in certain conditions. Fixed versions were released following the disclosure on 21 April 2026, and users should upgrade to NGINX Open Source 1.30.1 or 1.31.0, with specific patches for NGINX Plus R36 and other components.
The article also notes a configuration-level workaround for CVE-2026-42945 that replaces unnamed captures with named captures to avoid triggering the vulnerable path, and that there were no reports of exploitation at disclosure time.
Story timeline CVE-2026-42945
Full timelineShow as table
| Published (UTC) | Outlet | Headline |
|---|---|---|
| Thu 14 May · 06:50 UTC | The Hacker News | NGINX Rift Bug Lets Attackers Run Code Remotely via Malicious URI |
| Thu 14 May · 10:57 UTC | SecurityWeek | F5 fixes NGINX heap overflow and iControl REST command injection |
| Thu 14 May · 12:31 UTC | SOCRadar | CVE-2026-42945: NGINX Rewrite Bug Allows Remote Code Execution |
| Thu 14 May · 14:30 UTC | Security Affairs | NGINX Rift flaw lets attackers run code with one HTTP request (this article) |
| Sat 16 May · 10:31 UTC | SecurityWeek | PoC Code Published for Critical NGINX Vulnerability |
| Sun 17 May · 15:01 UTC | The Hacker News | CVE-2026-42945 Exploit Seen In Wild, NGINX Users Urged To Patch |
| Mon 18 May · 07:21 UTC | Security Affairs | NGINX Rift flaw CVE-2026-42945 exploited despite ASLR mitigations |
| Mon 18 May · 08:01 UTC | SecurityWeek | Hackers Exploit NGINX Zero Day CVE-2026-42945 in Wild |