NGINX rewrite flaws exposed servers to DoS and possible RCE
Active Exploitation · 10 sources · Updated 4mo ago · First seen May 29, 2026

F5 disclosed multiple NGINX vulnerabilities across modules, with the most serious issues centered on the ngx_http_rewrite_module, including CVE-2026-42945 and CVE-2026-9256. The flaw dubbed NGINX Rift is a long-standing heap buffer overflow in the rewrite engine that can be triggered remotely through crafted HTTP requests, leading to worker crashes, repeated restarts, and denial of service; under some conditions, including disabled ASLR, remote code execution is possible. CSIRT.SK reported active exploitation of CVE-2026-42945 and said the bug affects both NGINX Open Source and F5/NGINX-related products, while F5 also published advisories for additional bugs in ngx_http_proxy_v2_module, ngx_http_charset_module, and ngx_http_js_module.
Independent analysis of the two rewrite-engine RCE bugs found that exploitation depends on specific rewrite patterns involving rewrite, if, set, positional captures, and question-mark handling in PCRE-based rules. Researchers behind the ngxray scanner reviewed 35,633 public NGINX configurations from GitHub and found only one confirmed real-world vulnerable configuration after triage, suggesting the bugs are severe but uncommon in exposed public configs. Defenders were urged to upgrade to fixed releases, including NGINX Open Source 1.30.1 or 1.31.0 and NGINX Plus R32 P6 or R36 P4, and to review or mitigate risky rewrite directives where patches were not yet available.


