NGINX ngx_http_rewrite_module vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-122 and the CVSS impact.
Summary
NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| F5 | NGINX Plus | R36 to before R36 P4; R32 to before R32 P6 | R37, R36 P4, R32 P6 | Patch available | CNA |
| F5 | NGINX Open Source | 0.6.27 to before 1.30.1 | 1.31.0, 1.30.1 | Patch available | CNA |
- NGINX Plus VendorF5 Affected R36 to before R36 P4; R32 to before R32 P6 Fixed in R37, R36 P4, R32 P6 Patch available CNA
- NGINX Open Source VendorF5 Affected 0.6.27 to before 1.30.1 Fixed in 1.31.0, 1.30.1 Patch available CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:f5:dos:*:*:*:*:*:nginx:*:* | 4.3.0 – 4.7.0 | Vulnerable | F5 |
| cpe:2.3:a:f5:dos:4.8.0:*:*:*:*:nginx:*:* | 4.8.0 | Vulnerable | F5 |
| cpe:2.3:a:f5:nginx_gateway_fabric:*:*:*:*:*:*:*:* | 1.3.0 – 1.6.2; 2.0.0 – 2.5.1 | Vulnerable | F5 |
| cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:*:*:*:* | 3.5.0 – 3.7.2; 4.0.0 – 4.0.1; 5.0.0 – 5.4.1 | Vulnerable | F5 |
| cpe:2.3:a:f5:nginx_instance_manager:*:*:*:*:*:*:*:* | 2.16.0 – 2.21.1 | Vulnerable | F5 |
| cpe:2.3:a:f5:nginx_open_source:*:*:*:*:*:*:*:* | 0.6.27 – 1.30.0 | Vulnerable | F5 |
| cpe:2.3:a:f5:nginx_plus:*:*:*:*:*:*:*:* | r32 – r36 | Vulnerable | F5 |
| cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:* | 4.9.0 – 4.16.0; 5.1.0 – 5.8.0; 5.9.0 – 5.12.1 | Vulnerable | F5 |
- cpe:2.3:a:f5:dos:*:*:*:*:*:nginx:*:* Versions 4.3.0 – 4.7.0 Vulnerable ·F5
- cpe:2.3:a:f5:dos:4.8.0:*:*:*:*:nginx:*:* Versions 4.8.0 Vulnerable ·F5
- cpe:2.3:a:f5:nginx_gateway_fabric:*:*:*:*:*:*:*:* Versions 1.3.0 – 1.6.2; 2.0.0 – 2.5.1 Vulnerable ·F5
- cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:*:*:*:* Versions 3.5.0 – 3.7.2; 4.0.0 – 4.0.1; 5.0.0 – 5.4.1 Vulnerable ·F5
- cpe:2.3:a:f5:nginx_instance_manager:*:*:*:*:*:*:*:* Versions 2.16.0 – 2.21.1 Vulnerable ·F5
- cpe:2.3:a:f5:nginx_open_source:*:*:*:*:*:*:*:* Versions 0.6.27 – 1.30.0 Vulnerable ·F5
- cpe:2.3:a:f5:nginx_plus:*:*:*:*:*:*:*:* Versions r32 – r36 Vulnerable ·F5
- cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:* Versions 4.9.0 – 4.16.0; 5.1.0 – 5.8.0; 5.9.0 – 5.12.1 Vulnerable ·F5
Remediation
- Fix · CNA NGINX Plus (F5) Fixed in R37, R36 P4, R32 P6
- Fix · CNA NGINX Open Source (F5) Fixed in 1.31.0, 1.30.1
Red Hat 28 advisories
- RHSA-2026:58981 Released 2026-08-24 · Red Hat rating CriticalRed Hat Update Infrastructure 5.3 Technology Preview security update
- Red Hat Update Infrastructure 5 registry.redhat.io/rhui5/cds-kubernetes-tp-rhel9, registry.redhat.io/rhui5/installer-tp-rhel9, registry.redhat.io/rhui5/rhua-tp-rhel9
- RHSA-2026:22396 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.14.33 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.14 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
- RHSA-2026:22394 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.16.29 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.16 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
Show 25 more Red Hat advisories
- RHSA-2026:22393 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.15.29 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.15 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
- RHSA-2026:22390 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.17.27 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.17 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
- RHSA-2026:22389 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.19.18 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.19 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
- RHSA-2026:22388 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.18.23 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.18 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
- RHSA-2026:22383 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.20.13 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.20 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
- RHSA-2026:22382 Released 2026-06-02 · Red Hat rating CriticalRed Hat OpenShift Data Foundation 4.21.6 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.21 registry.redhat.io/odf4/ocs-client-console-rhel9, registry.redhat.io/odf4/odf-console-rhel9, registry.redhat.io/odf4/odf-multicluster-console-rhel9
- RHSA-2026:21275 Released 2026-05-27 · Red Hat rating CriticalRed Hat Update Infrastructure 5.1 security update
- Red Hat Update Infrastructure 5 registry.redhat.io/rhui5/cds-rhel9, registry.redhat.io/rhui5/haproxy-rhel9, registry.redhat.io/rhui5/installer-rhel9 +1
- RHSA-2026:20444 Released 2026-05-25 · Red Hat rating CriticalGeneral availability of the satellite/iop-gateway-rhel9 container image
- Red Hat Satellite 6.19 registry.redhat.io/satellite/iop-gateway-rhel9
- RHSA-2026:20442 Released 2026-05-25 · Red Hat rating CriticalGeneral availability of the satellite/iop-gateway-rhel9 container image
- Red Hat Satellite 6.18 registry.redhat.io/satellite/iop-gateway-rhel9
- RHSA-2026:19374 Released 2026-05-19 · Red Hat rating Criticalnginx security update
- Red Hat Enterprise Linux AppStream (v. 9) nginx-2:1.20.1-28.el9_8.2, nginx-all-modules-2:1.20.1-28.el9_8.2, nginx-core-2:1.20.1-28.el9_8.2 +6
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) nginx-mod-devel-2:1.20.1-28.el9_8.2
- RHSA-2026:19372 Released 2026-05-19 · Red Hat rating Criticalnginx:1.26 security update
- Red Hat Enterprise Linux AppStream (v. 9) nginx-2:1.26.3-9.module+el9.8.0+24288+e2e6d896.aarch64::nginx:1.26, nginx-2:1.26.3-9.module+el9.8.0+24288+e2e6d896.ppc64le::nginx:1.26, nginx-2:1.26.3-9.module+el9.8.0+24288+e2e6d896.s390x::nginx:1.26 +32
- RHSA-2026:19371 Released 2026-05-19 · Red Hat rating Criticalnginx:1.24 security update
- Red Hat Enterprise Linux AppStream (v. 9) nginx-1:1.24.0-7.module+el9.8.0+24289+833e4c02.1.aarch64::nginx:1.24, nginx-1:1.24.0-7.module+el9.8.0+24289+833e4c02.1.ppc64le::nginx:1.24, nginx-1:1.24.0-7.module+el9.8.0+24289+833e4c02.1.s390x::nginx:1.24 +32
- RHSA-2026:19159 Released 2026-05-19 · Red Hat rating Criticalnginx security update
- Red Hat Enterprise Linux AppStream (v. 10) nginx-2:1.26.3-6.el10_2.3, nginx-all-modules-2:1.26.3-6.el10_2.3, nginx-core-2:1.26.3-6.el10_2.3 +6
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) nginx-mod-devel-2:1.26.3-6.el10_2.3
- RHSA-2026:18029 Released 2026-05-18 · Red Hat rating Criticalnginx security update
- Red Hat Enterprise Linux AppStream (v. 9) nginx-2:1.20.1-24.el9_7.3, nginx-all-modules-2:1.20.1-24.el9_7.3, nginx-core-2:1.20.1-24.el9_7.3 +6
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) nginx-mod-devel-2:1.20.1-24.el9_7.3
- RHSA-2026:18063 Released 2026-05-18 · Red Hat rating Criticalnginx security update
- Red Hat Enterprise Linux AppStream (v. 10) nginx-2:1.26.3-2.el10_1.2, nginx-all-modules-2:1.26.3-2.el10_1.2, nginx-core-2:1.26.3-2.el10_1.2 +6
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) nginx-mod-devel-2:1.26.3-2.el10_1.2
- RHSA-2026:18041 Released 2026-05-18 · Red Hat rating Criticalnginx:1.24 security update
- Red Hat Enterprise Linux AppStream (v. 8) nginx-1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1.aarch64::nginx:1.24, nginx-1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1.ppc64le::nginx:1.24, nginx-1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1.s390x::nginx:1.24 +28
- RHSA-2026:17792 Released 2026-05-15 · Red Hat rating Criticalnginx security update
- Red Hat CodeReady Linux Builder EUS (v.9.4) nginx-mod-devel-1:1.20.1-16.el9_4.6
- Red Hat Enterprise Linux AppStream EUS (v.9.4) nginx-1:1.20.1-16.el9_4.6, nginx-all-modules-1:1.20.1-16.el9_4.6, nginx-core-1:1.20.1-16.el9_4.6 +6
- RHSA-2026:17794 Released 2026-05-15 · Red Hat rating Criticalnginx security update
- Red Hat CodeReady Linux Builder EUS (v.9.6) nginx-mod-devel-2:1.20.1-22.el9_6.6
- Red Hat Enterprise Linux AppStream EUS (v.9.6) nginx-2:1.20.1-22.el9_6.6, nginx-all-modules-2:1.20.1-22.el9_6.6, nginx-core-2:1.20.1-22.el9_6.6 +6
- RHSA-2026:17793 Released 2026-05-15 · Red Hat rating Criticalnginx:1.24 security update
- Red Hat Enterprise Linux AppStream EUS (v.9.4) nginx-1:1.24.0-1.module+el9.4.0+24298+389e3815.5.aarch64::nginx:1.24, nginx-1:1.24.0-1.module+el9.4.0+24298+389e3815.5.ppc64le::nginx:1.24, nginx-1:1.24.0-1.module+el9.4.0+24298+389e3815.5.s390x::nginx:1.24 +32
- RHSA-2026:17790 Released 2026-05-15 · Red Hat rating Criticalnginx security update
- Red Hat Enterprise Linux AppStream EUS (v. 10.0) nginx-2:1.26.3-1.el10_0.9, nginx-all-modules-2:1.26.3-1.el10_0.9, nginx-core-2:1.26.3-1.el10_0.9 +6
- Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) nginx-mod-devel-2:1.26.3-1.el10_0.9
- RHSA-2026:17791 Released 2026-05-15 · Red Hat rating Criticalnginx security update
- Red Hat Enterprise Linux AppStream E4S (v.9.0) nginx-1:1.20.1-10.el9_0.4, nginx-all-modules-1:1.20.1-10.el9_0.4, nginx-filesystem-1:1.20.1-10.el9_0.4 +5
- RHSA-2026:17753 Released 2026-05-15 · Red Hat rating Criticalnginx:1.26 security update
- Red Hat Enterprise Linux AppStream EUS (v.9.6) nginx-2:1.26.3-1.module+el9.6.0+24296+87cb744c.3.aarch64::nginx:1.26, nginx-2:1.26.3-1.module+el9.6.0+24296+87cb744c.3.ppc64le::nginx:1.26, nginx-2:1.26.3-1.module+el9.6.0+24296+87cb744c.3.s390x::nginx:1.26 +32
- RHSA-2026:17752 Released 2026-05-15 · Red Hat rating Criticalnginx:1.24 security update
- Red Hat Enterprise Linux AppStream EUS (v.9.6) nginx-1:1.24.0-4.module+el9.6.0+24297+b3b39a7f.3.aarch64::nginx:1.24, nginx-1:1.24.0-4.module+el9.6.0+24297+b3b39a7f.3.ppc64le::nginx:1.24, nginx-1:1.24.0-4.module+el9.6.0+24297+b3b39a7f.3.s390x::nginx:1.24 +32
- RHSA-2026:17751 Released 2026-05-15 · Red Hat rating Criticalnginx security update
- Red Hat Enterprise Linux AppStream E4S (v.9.2) nginx-1:1.20.1-14.el9_2.6, nginx-all-modules-1:1.20.1-14.el9_2.6, nginx-core-1:1.20.1-14.el9_2.6 +6
- RHSA-2026:17417 Released 2026-05-14 · Red Hat rating CriticalRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images nginx-1.30.1-1.hum1@aarch64, nginx-1.30.1-1.hum1@src, nginx-1.30.1-1.hum1@x86_64 +22
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
F5 NGINX Open Source 1.30.1
6 records Highest priority Priority HIGH 1 HIGH, 5 LOW
Other records, highest priority first
- TI-2026-31137 NGINX ngx_http_scgi_module and ngx_http_uwsgi_module vulnerabilityPriority LOW 38
- TI-2026-29212 NGINX ngx_quic_module vulnerabilityPriority LOW 37
- TI-2026-31125 NGINX ngx_http_proxy_v2_module vulnerabilityPriority LOW 34
- Release ·
F5 NGINX Plus R32 P6, R36 P4
5 records Highest priority Priority HIGH 1 HIGH, 4 LOW
Other records, highest priority first
- TI-2026-31137 NGINX ngx_http_scgi_module and ngx_http_uwsgi_module vulnerabilityPriority LOW 38
- TI-2026-29212 NGINX ngx_quic_module vulnerabilityPriority LOW 37
- TI-2026-31131 NGINX ngx_http_charset_module vulnerabilityPriority LOW 29
Vendor assessments
Red Hat
Red Hat rating: Critical. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat CodeReady Linux Builder EUS (v.9.4) | Fixed | RHSA-2026:17792 |
| Red Hat CodeReady Linux Builder EUS (v.9.6) | Fixed | RHSA-2026:17794 |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:18063, RHSA-2026:19159 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2026:18041 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:18029, RHSA-2026:19371, RHSA-2026:19372, RHSA-2026:19374 |
| Red Hat Enterprise Linux AppStream E4S (v.9.0) | Fixed | RHSA-2026:17791 |
| Red Hat Enterprise Linux AppStream E4S (v.9.2) | Fixed | RHSA-2026:17751 |
| Red Hat Enterprise Linux AppStream EUS (v. 10.0) | Fixed | RHSA-2026:17790 |
| Red Hat Enterprise Linux AppStream EUS (v.9.4) | Fixed | RHSA-2026:17792, RHSA-2026:17793 |
| Red Hat Enterprise Linux AppStream EUS (v.9.6) | Fixed | RHSA-2026:17752, RHSA-2026:17753, RHSA-2026:17794 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | Fixed | RHSA-2026:18063, RHSA-2026:19159 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | Fixed | RHSA-2026:18029, RHSA-2026:19374 |
| Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) | Fixed | RHSA-2026:17790 |
| Red Hat Hardened Images | Fixed | RHSA-2026:17417 |
| Red Hat Openshift Data Foundation 4.14 | Fixed | RHSA-2026:22396 |
| Red Hat Openshift Data Foundation 4.15 | Fixed | RHSA-2026:22393 |
| Red Hat Openshift Data Foundation 4.16 | Fixed | RHSA-2026:22394 |
| Red Hat Openshift Data Foundation 4.17 | Fixed | RHSA-2026:22390 |
| Red Hat Openshift Data Foundation 4.18 | Fixed | RHSA-2026:22388 |
| Red Hat Openshift Data Foundation 4.19 | Fixed | RHSA-2026:22389 |
| Red Hat Openshift Data Foundation 4.20 | Fixed | RHSA-2026:22383 |
| Red Hat Openshift Data Foundation 4.21 | Fixed | RHSA-2026:22382 |
| Red Hat Satellite 6.18 | Fixed | RHSA-2026:20442 |
| Red Hat Satellite 6.19 | Fixed | RHSA-2026:20444 |
| Red Hat Update Infrastructure 5 | Fixed | RHSA-2026:21275, RHSA-2026:58981 |
Not affected: 18 products
- Red Hat 3scale API Management Platform 2
- Red Hat CodeReady Linux Builder EUS (v.9.4)
- Red Hat CodeReady Linux Builder EUS (v.9.6)
- Red Hat Enterprise Linux AppStream E4S (v.9.0)
- Red Hat Enterprise Linux AppStream EUS (v. 10.0)
- Red Hat Enterprise Linux AppStream EUS (v.9.4)
- Red Hat Enterprise Linux AppStream EUS (v.9.6)
- Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)
- Red Hat Lightspeed proxy 1
- Red Hat Openshift Data Foundation 4.14
- Red Hat Openshift Data Foundation 4.15
- Red Hat Openshift Data Foundation 4.16
- Red Hat Openshift Data Foundation 4.17
- Red Hat Openshift Data Foundation 4.18
- Red Hat Openshift Data Foundation 4.19
- Red Hat Openshift Data Foundation 4.20
- Red Hat Openshift Data Foundation 4.21
- Red Hat Update Infrastructure 5
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42945
- 2026-10-03 Alias added: GHSA-gcgv-v5gf-c543
- 2026-10-25 EPSS moved to the 99th percentile and above
- 2026-10-25 Priority changed: MEDIUM → HIGH
References
More F5 Dos vulnerabilities
- TI-2026-08132 NGINX ngx_http_rewrite_module vulnerability CVSS 4.0CRITICAL 9.2
- TI-2026-30432 NGINX ngx_http_proxy_v2_module and ngx_http_grpc_module vulnerability CVSS 4.0CRITICAL 9.2
- TI-2026-31137 NGINX ngx_http_scgi_module and ngx_http_uwsgi_module vulnerability CVSS 4.0HIGH 8.3
- TI-2026-29212 NGINX ngx_quic_module vulnerability CVSS 4.0MEDIUM 6.9
- TI-2026-35579 NGINX ngx_http_charset_module vulnerability CVSS 4.0MEDIUM 6.3
- TI-2026-31131 NGINX ngx_http_charset_module vulnerability CVSS 4.0MEDIUM 6.3
Sources
- CVE-2026-42945 · CVE Program
- CVE-2026-42945 · NVD
- FIRST EPSS
- GHSA-gcgv-v5gf-c543 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-42945 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences