Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsChecklistsAI RankingsNewsletterStatusTagsAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Checklists
AI Rankings
Newsletter
Status
Tags
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1154+ Articles
126+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. NGINX CVE-2026-42945 Exploited in the Wild, Causing Worker Crashes and Possible RCE
NGINX CVE-2026-42945 Exploited in the Wild, Causing Worker Crashes and Possible RCE
NEWS

NGINX CVE-2026-42945 Exploited in the Wild, Causing Worker Crashes and Possible RCE

A heap buffer overflow in NGINX's rewrite module is under active exploitation, days after disclosure. The CVSS 9.2 flaw impacts both NGINX Plus and Open...

Dylan H.

News Desk

May 17, 2026
4 min read

A newly disclosed security flaw in NGINX has come under active exploitation in the wild just days after its public disclosure, according to vulnerability intelligence firm VulnCheck. The vulnerability, tracked as CVE-2026-42945 with a CVSS score of 9.2, is a heap buffer overflow residing in the ngx_http_rewrite_module — the component responsible for handling URL rewriting and redirect logic in NGINX configurations.

What Is CVE-2026-42945?

The flaw is a heap buffer overflow that occurs when NGINX processes specially crafted HTTP requests that trigger the rewrite module's internal regex evaluation logic. An attacker who can send requests to an NGINX instance with a rewrite directive in place can exploit the overflow to:

  • Crash worker processes, causing a denial of service condition
  • Potentially achieve remote code execution (RCE) by corrupting adjacent heap memory to redirect execution flow

The vulnerability affects both NGINX Plus (the commercial offering) and NGINX Open Source, covering a wide range of versions that include an unpatched ngx_http_rewrite_module.

NGINX's rewrite module is extremely common in production deployments — the vast majority of NGINX configurations use some form of rewrite or location block with regex matching, which means the attack surface is broad.

Active Exploitation Confirmed

VulnCheck's threat intelligence team confirmed that exploit attempts for CVE-2026-42945 were observed in the wild within approximately 72 hours of the CVE's publication. The exploitation pattern matches denial-of-service probing consistent with automated scanning infrastructure, though some observed payloads appear to be testing for conditions consistent with heap layout manipulation typical of RCE attempts.

This rapid exploitation timeline — sometimes called a "time-to-exploit" (TTE) window — reflects an acceleration trend in 2026 where threat actors have compressed the gap between CVE publication and weaponized exploit development from weeks to days or hours.

Affected Versions and Patch Status

NGINX has released patched versions addressing CVE-2026-42945. Organizations should consult the official NGINX security advisory for the complete list of affected and fixed version branches. In general:

  • NGINX Open Source: Patch available — update to the latest stable branch
  • NGINX Plus: Patch available — update to the current release; NGINX Plus customers on active subscriptions should receive priority notification

If patching is not immediately feasible, NGINX recommends reviewing rewrite rules and considering temporary mitigations such as:

  • Restricting access to locations with complex rewrite rules at the perimeter
  • Rate-limiting inbound connections to reduce exposure to automated exploitation

Why the NGINX Rewrite Module Is a High-Value Target

The ngx_http_rewrite_module is responsible for parsing and executing PCRE (Perl Compatible Regular Expressions) as part of request routing. Regex-based parsing is notoriously difficult to secure — the combination of complex state machines, variable-length input, and tight memory management creates conditions where subtle boundary conditions can result in memory corruption.

Historical precedent with rewrite-module-class vulnerabilities includes a 2025 flaw in Apache's mod_rewrite that also resulted in heap corruption, demonstrating that web server rewrite engines are a recurring target for security researchers and adversaries alike.

Broader Context: NGINX Exploitation in 2026

Earlier in 2026, a separate 18-year-old NGINX rewrite module vulnerability was disclosed (CVE-2026-42xxx series), generating significant attention because the flaw had existed undetected in the codebase for nearly two decades. CVE-2026-42945 appears to be a distinct, more recently introduced vulnerability, though it shares the same module as the attack surface.

With NGINX powering a substantial portion of the public internet — including serving as a reverse proxy or load balancer in front of many major platforms — vulnerabilities in this server software carry outsized risk.

Recommended Actions

  1. Patch immediately: Apply the available NGINX updates for your deployment type (Plus or Open Source).
  2. Audit your rewrite rules: Review all rewrite, if, and location blocks using regex for complexity that could amplify exposure.
  3. Check your WAF: Ensure any web application firewall in front of NGINX has updated rulesets capable of detecting exploitation payloads.
  4. Monitor logs: Look for anomalous worker process crashes (nginx: [alert] worker process ... exited on signal), which may indicate exploitation attempts against this flaw.
  5. Inventory NGINX versions: Use your asset management tooling to identify all NGINX instances — including those embedded in containers or packaged into application distributions.

References

  • The Hacker News — NGINX CVE-2026-42945 Exploited in Wild
  • VulnCheck — Vulnerability Intelligence
  • NGINX Security Advisories
#Vulnerability#CVE#NGINX#Web Server#Exploitation

Related Articles

18-Year-Old NGINX Rewrite Module Flaw Enables Unauthenticated RCE

Researchers have disclosed multiple critical vulnerabilities in NGINX Plus and NGINX Open Source, including a heap buffer overflow in...

3 min read

LiteSpeed cPanel Plugin CVE-2026-48172 Exploited to Run Scripts as Root

A maximum-severity vulnerability in the LiteSpeed User-End cPanel Plugin, tracked as CVE-2026-48172 with a CVSS score of 10.0, is under active...

4 min read

PoC Code Published for Critical NGINX Vulnerability Introduced in 2008

A proof-of-concept exploit has been released for a critical-severity NGINX vulnerability that has existed in the rewrite module for nearly two decades....

3 min read
Back to all News