Vendors › F5

K000161377

Critical (9.2) EPSS 8.3% F5 · NGINX

NGINX ngx_http_rewrite_module vulnerability CVE-2026-9256

A heap buffer overflow in NGINX's rewrite module lets an unauthenticated attacker crash the worker process or potentially execute code when a rewrite directive uses overlapping PCRE captures with a replacement string referencing multiple captures. Only specific rewrite directives are exposed; default configurations are not affected.

Published2026-05-22
Updated2026-06-23
AffectedNGINX Plus 37.x: 37.0.0 - ngx_http_rewrite_module | NGINX Plus R32 - R36: versions not enumerated - ngx_http_rewrite_module | NGINX Open Source 1.x: 1.31.0, 1.0.0 - 1.30.1 - ngx_http_rewrite_module | NGINX Open Source 0.x: 0.1.17 - 0.9.7 - ngx_http_rewrite_module | NGINX Instance Manager 2.x: 2.17.0 - 2.22.0 - Base NGINX Open Source software components | F5 WAF for NGINX 5.x: 5.9.0 - 5.13.0 - Base NGINX Plus software components | NGINX App Protect WAF 5.x: 5.2.0 - 5.8.0 - Base NGINX Plus software components | NGINX App Protect WAF 4.x: 4.10.0 - 4.16.0 - Base NGINX Plus software components | F5 DoS for NGINX 4.x: 4.9.0 - Base NGINX Plus software components | NGINX App Protect DoS 4.x: 4.3.0 - 4.7.0 - Base NGINX Plus software components | NGINX Gateway Fabric 2.x: 2.0.0 - 2.6.1 - Base NGINX Plus or NGINX Open Source software components | NGINX Gateway Fabric 1.x: 1.3.0 - 1.6.2 - Base NGINX Plus or NGINX Open Source software components | NGINX Ingress Controller 5.x: 5.0.0 - 5.4.2 - Base NGINX Plus or NGINX Open Source software components | NGINX Ingress Controller 4.x: 4.0.0 - 4.0.1 - Base NGINX Plus or NGINX Open Source software components | NGINX Ingress Controller 3.x: 3.5.0 - 3.7.2 - Base NGINX Plus or NGINX Open Source software components
FixNGINX Plus 37.x: fixed in 37.0.1.1 | NGINX Plus R36: fixed in R36 P5 | NGINX Plus R32: fixed in R32 P7 | NGINX Open Source 1.x: fixed in 1.31.1 / 1.30.2 | NGINX Open Source 0.x: no fix planned (will not fix) - use named captures instead of unnamed captures in rewrite directives | NGINX Instance Manager 2.x: fixed in 2.22.1 | NGINX Gateway Fabric 2.x: fixed in 2.6.2 | NGINX Ingress Controller 5.x: fixed in 5.4.3 | F5 WAF for NGINX 5.x / NGINX App Protect WAF 5.x and 4.x / F5 DoS for NGINX 4.x / NGINX App Protect DoS 4.x / NGINX Gateway Fabric 1.x / NGINX Ingress Controller 4.x and 3.x: No fix yet - use named captures instead of unnamed captures in rewrite directives
Vendor advisoryhttps://my.f5.com/manage/s/article/K000161377

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-9256CWE-122OverflowCode ExecutionNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.