SOCRadarAmeer Owda
CVE-2026-42945: NGINX Rewrite Bug Allows Remote Code Execution
Part of the CVE-2026-42945 story · since 14 May
- Thu 14 May, 06:50 UTC. The Hacker News, first report. NGINX Rift Bug Lets Attackers Run Code Remotely via Malicious URI.
- Thu 14 May, 10:57 UTC. SecurityWeek, its first report on the story. F5 fixes NGINX heap overflow and iControl REST command injection.
- Thu 14 May, 12:31 UTC. SOCRadar, its first report on the story. CVE-2026-42945: NGINX Rewrite Bug Allows Remote Code Execution. This article, 3rd of 8.
- Thu 14 May, 14:30 UTC. Security Affairs, its first report on the story. NGINX Rift flaw lets attackers run code with one HTTP request.
- 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.
CVE-2026-42945 is a heap memory corruption issue in NGINX’s rewrite module (ngx_http_rewrite_module) that can lead to a heap-based buffer overflow during rewrite processing. The vulnerability is remotely reachable over HTTP and can be triggered without authentication when specific rewrite-rule patterns are present, making internet-facing NGINX reverse proxies potentially at risk.
DoS is the most consistently described outcome, with worker crashes and restarts, while researchers note a potential for remote code execution in certain environments, particularly where ASLR is disabled. Affected versions are NGINX Open Source 0.6.27 through 1.30.0, with fixes in 1.30.1+ and 1.31.0+; organisations should verify the actual version and whether their builds include the triggering rewrite rules.
Reports describe a pattern involving unnamed PCRE captures and a replacement string containing a question mark, followed by another directive, which tends to surface in environments that rely on rewrite chains for routing or fronting applications. According to SOCRadar, the vulnerability was introduced around 2008 and has seen disclosures and coverage in 2026, with the PoC demonstrating unauthenticated RCE under ASLR disabled.
How the story developed
8 articles from 4 outlets since 14 May. Quiet since 18 May. This was the 3rd report, 6 hours after the first.
- Thu 14 May, 06:50 UTC. The Hacker News, first report. NGINX Rift Bug Lets Attackers Run Code Remotely via Malicious URI.
- Thu 14 May, 10:57 UTC. SecurityWeek, its first report on the story. F5 fixes NGINX heap overflow and iControl REST command injection.
- Thu 14 May, 12:31 UTC. SOCRadar, its first report on the story. CVE-2026-42945: NGINX Rewrite Bug Allows Remote Code Execution. This article, 3rd of 8.
- Thu 14 May, 14:30 UTC. Security Affairs, its first report on the story. NGINX Rift flaw lets attackers run code with one HTTP request.
- 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.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
- Quiet time, folded
Show all 8 articles as a listHide the list
- Thu 14 MayDay 04
- NGINX Rift Bug Lets Attackers Run Code Remotely via Malicious URI06:50 · The Hacker News · First report
- F5 fixes NGINX heap overflow and iControl REST command injection10:57 · SecurityWeek
- CVE-2026-42945: NGINX Rewrite Bug Allows Remote Code Execution12:31 · SOCRadar · This article, 3rd of 8
- NGINX Rift flaw lets attackers run code with one HTTP request14:30 · Security Affairs
Quiet for 2 days
Sat 16 MayDay 21- PoC Code Published for Critical NGINX Vulnerability10:31 · SecurityWeek
- Sun 17 MayDay 31
- CVE-2026-42945 Exploit Seen In Wild, NGINX Users Urged To Patch15:01 · The Hacker News
- Mon 18 MayDay 42
- NGINX Rift flaw CVE-2026-42945 exploited despite ASLR mitigations07:21 · Security Affairs
- Hackers Exploit NGINX Zero Day CVE-2026-42945 in Wild08:01 · SecurityWeek