18-Year-Old NGINX Flaw Can Cause DoS, With RCE Demonstrated Under Specific Conditions

· Original article ↗

Summary

CVE-2026-42945 is a heap buffer overflow in NGINX that can reliably crash workers and may enable RCE under specific conditions. F5 released fixes; researchers say dependable RCE with ASLR enabled is not established.

Key points

  • CVE-2026-42945 affects NGINX versions 0.6.27 through 1.30.0 and involves a heap buffer overflow in ngx_http_rewrite_module.
  • The flaw can be triggered by particular configurations combining rewrite and set directives; a crafted request can reliably crash worker processes.
  • DepthFirst AI demonstrated unauthenticated RCE in a setup with ASLR disabled. Researchers cited in the article say dependable RCE on systems with ASLR enabled is not established.
  • The article also reports three other NGINX memory-corruption flaws: CVE-2026-42946, CVE-2026-40701, and CVE-2026-42934.
  • F5 released fixes including NGINX Open Source 1.31.0 and 1.30.1; affected products also include NGINX Plus and other F5 NGINX products.
  • For systems that cannot be upgraded, F5 recommends replacing unnamed PCRE capture groups in vulnerable rewrite rules with named captures.

Article Details

Vulnerability Types
  • Heap buffer overflow
  • Excessive memory allocation
  • Use-after-free
  • Off-by-one UTF-8 parsing bug causing out-of-bounds reads
Severity
CVE-2026-42945 is rated critical (CVSS 9.2). The other flaws are described as medium severity, although CVE-2026-42946 is also labeled high in one passage.
Affected Versions
  • NGINX Open Source 0.6.27 through 1.30.0
  • NGINX Plus R32 through R36
  • NGINX Instance Manager 2.16.0 through 2.21.1
  • F5 WAF for NGINX 5.9.0 through 5.12.1
  • NGINX App Protect WAF 4.9.0 through 4.16.0 and 5.1.0 through 5.8.0
  • F5 DoS for NGINX 4.8.0
  • NGINX App Protect DoS 4.3.0 through 4.7.0
  • NGINX Gateway Fabric 1.3.0 through 1.6.2 and 2.0.0 through 2.5.1
  • NGINX Ingress Controller 3.5.0 through 3.7.2, 4.0.0 through 4.0.1, and 5.0.0 through 5.4.1
Exploitation Status
reported
Exploit Availability
public_poc
Patch Status
available
Workarounds
  • For vulnerable rewrite rules, replace unnamed PCRE capture groups ($1, $2, etc.) with named captures.

MITRE ATT&CK

CVE

People

Vendors

Products

Industries

Related Articles