Vendors › F5

K000161019

Critical (9.2) EPSS 69.4% F5 · NGINX

NGINX ngx_http_rewrite_module vulnerability CVE-2026-42945

A heap buffer overflow in NGINX's rewrite module can be triggered by crafted requests when a rewrite directive with a query string is followed by an if or set directive with an unnamed PCRE capture, letting a remote unauthenticated attacker crash the worker process or potentially execute code.

Published2026-05-13
Updated2026-06-23
AffectedNGINX Plus Rx: R32 - R36 - ngx_http_rewrite_module; NGINX Open Source 1.x: 1.0.0 - 1.30.0 - ngx_http_rewrite_module; NGINX Open Source 0.x: 0.6.27 - 0.9.7 - ngx_http_rewrite_module; NGINX Instance Manager 2.x: 2.16.0 - 2.22.0 - Base NGINX Open Source software components; F5 WAF for NGINX 5.x: 5.9.0 - 5.12.1 - Base NGINX Plus software components; NGINX App Protect WAF 5.x: 5.1.0 - 5.8.0 - Base NGINX Plus software components; NGINX App Protect WAF 4.x: 4.9.0 - 4.16.0 - Base NGINX Plus software components; F5 DoS for NGINX 4.x: 4.8.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.0 - 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 Rx fixed in R36 P4, R32 P6; NGINX Open Source 1.x fixed in 1.31.0, 1.30.1; NGINX Instance Manager 2.x fixed in 2.22.1; F5 WAF for NGINX 5.x fixed in 5.13.0; F5 DoS for NGINX 4.x fixed in 4.9.0; NGINX Open Source 0.x, NGINX App Protect WAF/DoS, NGINX Gateway Fabric, NGINX Ingress Controller: No fix yet (mitigate by using named captures instead of unnamed captures in rewrite definitions)
Vendor advisoryhttps://my.f5.com/manage/s/article/K000161019

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-42945CWE-122;CWE-131OverflowCode 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.