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.
Why it matters
Impact assessment
NGINX deployments that use vulnerable rewrite-engine patterns are exposed to remote unauthenticated denial of service and, in some configurations, remote code execution. The affected population is broad at the product level because NGINX is widely embedded in reverse proxies, API gateways, ingress controllers, WAF stacks, and cloud-native platforms, but practical exploitability appears configuration-dependent and uncommon in publicly observed configs.
Active exploitation in the wild has been reported for CVE-2026-42945 since 2026-05-17, increasing urgency despite the relatively narrow set of vulnerable rewrite patterns. Business impact includes worker crashes, restart loops, service unavailability for applications behind NGINX, and potential full compromise of the NGINX worker context where ASLR is disabled or where CVE-2026-42945 is chained with CVE-2026-9256.
Affected entities and products
- NGINX Open Source is affected.
- NGINX Plus is affected.
- Additional F5/NGINX-related products reported affected in references include NGINX Instance Manager, F5 WAF for NGINX, NGINX App Protect WAF, F5 DoS for NGINX, NGINX App Protect DoS, NGINX Gateway Fabric, and NGINX Ingress Controller.
- Industries with heavy exposure include SaaS providers, cloud platforms, Kubernetes operators, API gateway operators, hosting providers, and enterprises using NGINX as a reverse proxy or load balancer.
Severity and scope
- CVE-2026-42945 has a reported CVSS v4 score of 9.2.
- Primary impact is application-layer denial of service through worker crashes and repeated restarts.
- Remote code execution is possible under some conditions, especially with ASLR disabled, and public research shows ASLR-independent RCE by chaining CVE-2026-42945 with CVE-2026-9256.
- Public configuration analysis of 35,633 GitHub-sourced NGINX configs found only one confirmed real-world vulnerable configuration after triage, indicating severe impact but limited prevalence of exploitable public configurations.
Known exploitation
- CSIRT.SK reported exploitation in the wild beginning 2026-05-17 and confirmed active exploitation as of 2026-05-18 for CVE-2026-42945.
- A public proof of concept for CVE-2026-42945 was released on GitHub.
- Public exploit-chain research demonstrated roughly 90% success per fresh worker against nginx:1.30.0 in a lab environment when chaining CVE-2026-42945 and CVE-2026-9256.


