Skip to main content
← All vulnerabilities
CVE-2026-9256

NGINX ngx_http_rewrite_module vulnerability

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 37.0.1.1, R36 P5, R32 P7, 1.31.1, 1.30.2
4 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when a rewrite directive uses a regex pattern with distinct, overlapping Perl-Compatible Regular Expression (PCRE) captures (for example, ^/((.*))$) and a replacement string that references multiple such captures (for example, $1$2) in a redirect or arguments context. An unauthenticated attacker along with conditions beyond their control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

Timeline

  1. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  2. CVE published
  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • F5 NGINX Plus

    From 37.0 · fixed in 37.0.1.1; From R36 · fixed in R36 P5; From R32 · fixed in R32 P7

  • F5 NGINX Open Source

    From 1.31.0 · fixed in 1.31.1; From 1.30.0 · fixed in 1.30.2; From 0.1.17 · through 0.9.7

References 5

my.f5.com

GitHub · 06-ux/CVE-2026-9256-POC

GitHub · 3nou9h/CVE-2026-9256-Poc

GitHub · W5M1n9/NGINX-ngx_http_rewrite_module-heap-buffer-overflow-CVE-2026-9256

GitHub · suominen/CVE-2026-9256