Skip to main content
Mallory
← Back to News
actively-exploited-vulnerabilityinternet-facing-service-vulnerabilitywidely-deployed-product-advisorydetection-content-update

NGINX rewrite flaws exposed servers to DoS and possible RCE

Active Exploitation · 10 sources · Updated 4mo ago · First seen May 29, 2026

NGINX rewrite flaws exposed servers to DoS and possible RCE

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.
This is being exploited nowSee which actors are running it and whether you're in range.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · May 13, 2026 – Jun 6, 2026
  1. Jun 6, 20266mo ago

    Verichains publishes chained exploit for NGINX Rift and PoolSlip

    Verichains published a technical writeup showing an ASLR-independent remote code execution chain against the official nginx:1.30.0 Docker image on Debian 13 by combining CVE-2026-42945 and CVE-2026-9256. The exploit uses PoolSlip to leak heap and libc pointers and Rift to partially overwrite a cleanup pointer so request teardown reaches system(), and the post recommends upgrading because nginx 1.30.1 fixes only Rift.

    Two bytes to RCE: chaining rift + PoolSlip into an ASLR-independent nginx 1.30.0 exploit
  2. May 29, 20266mo ago

    Researchers publish impact analysis of two NGINX rewrite RCEs

    Calif researchers published an analysis of CVE-2026-42945 and CVE-2026-9256, built the open-source static scanner ngxray, and scanned 35,633 public GitHub NGINX configurations. After triage, they found only one genuinely vulnerable real-world configuration, suggesting low prevalence of exploitable public configs despite the severity of the bugs.

    Needle in a haystack: measuring the impact of two nginx RCEs
  3. May 22, 20266mo ago

    F5 publishes advisory for CVE-2026-9256 in ngx_http_rewrite_module

    F5 published a product advisory for CVE-2026-9256 affecting the NGINX ngx_http_rewrite_module. Later analysis grouped this flaw with CVE-2026-42945 as one of two critical NGINX rewrite-engine RCE issues.

    NGINX ngx_http_rewrite_module vulnerability CVE-2026-9256
  4. May 19, 20266mo ago

    F5 publishes advisory for CVE-2026-8711 in ngx_http_js_module

    F5 published a product advisory for CVE-2026-8711 affecting the NGINX ngx_http_js_module.

    NGINX ngx_http_js_module vulnerability CVE-2026-8711
  5. May 18, 20266mo ago

    Active exploitation of CVE-2026-42945 confirmed

    CSIRT.SK stated that exploitation of CVE-2026-42945 was confirmed active as of May 18, 2026. The notice also said the flaw could cause denial of service and potentially remote code execution if ASLR is disabled.

    NGINX Rift: 18 rokov stará zraniteľnosť umožňuje DoS a vzdialené vykonávanie kódu | CSIRT.SK
  6. May 17, 20267mo ago

    Exploitation of CVE-2026-42945 begins in the wild

    CSIRT.SK reported that exploitation of CVE-2026-42945 began in the wild on May 17, 2026. The activity involved the critical rewrite-module flaw known as NGINX Rift.

    NGINX Rift: 18 rokov stará zraniteľnosť umožňuje DoS a vzdialené vykonávanie kódu | CSIRT.SK
  7. May 13, 20267mo ago

    F5 publishes advisory for CVE-2026-42934 in ngx_http_charset_module

    F5 published a product advisory for CVE-2026-42934 affecting the NGINX ngx_http_charset_module.

    NGINX ngx_http_charset_module vulnerability CVE-2026-42934
  8. May 13, 20267mo ago

    F5 publishes advisory for CVE-2026-42926 in ngx_http_proxy_v2_module

    F5 published a product advisory for CVE-2026-42926 affecting the NGINX ngx_http_proxy_v2_module.

    NGINX ngx_http_proxy_v2_module vulnerability CVE-2026-42926
  9. May 13, 20267mo ago

    F5 publishes advisory for CVE-2026-42945 in ngx_http_rewrite_module

    F5 published a product advisory for CVE-2026-42945 affecting the NGINX ngx_http_rewrite_module. The flaw was later described as the 18-year-old 'NGINX Rift' vulnerability.

    NGINX ngx_http_rewrite_module vulnerability CVE-2026-42945
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

3 linked
Nginx PlusNginxNginx

Organizations

1 linked
F5 NGINX
Do you run this?Correlate live exploitation activity against the software you actually run, and see where you're exposed.
See Who's Exploiting This
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.