PoC Exploit Published for Critical NGINX Flaw as Exploitation Begins

· Original article ↗

Summary

PoC code is available for CVE-2026-42945, a critical heap buffer overflow in NGINX’s ngx_http_rewrite_module. F5 says it can cause DoS and potentially RCE if ASLR is disabled; exploitation has started, and patched versions are listed.

Key points

  • CVE-2026-42945 is a heap buffer overflow in NGINX’s ngx_http_rewrite_module, affecting servers using rewrite and set directives.
  • A crafted rewrite replacement containing a question mark can trigger an undersized allocation and an out-of-bounds heap write, according to Depthfirst.
  • The flaw can cause a worker restart and denial of service; F5 warned that remote code execution is possible if ASLR is disabled.
  • Depthfirst describes using cross-request heap feng shui to overwrite a pool cleanup pointer and redirect it to system() on pool destruction.
  • The article’s May 18 update says exploitation of the vulnerability has started.
  • F5 patched NGINX Plus versions 37.0.0, R36 P4, and R32 P6, and open source versions 1.31.0 and 1.30.1.

Article Details

Vulnerability Types
  • Heap buffer overflow
Severity
Critical (CVSS 9.2)
Exploitation Status
active
Exploit Availability
public_poc
Patch Status
available

MITRE ATT&CK

CVE

Vendors

Products

Related Articles