# CVE-2026-42945: NGINX ngx_http_rewrite_module vulnerability

- Severity: Critical 9.2 (CVSS:4.0, scored by f5) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 69.4%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-13T14:12:43.971Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: BIT-NGINX-2026-42945, BIT-NGINX-GATEWAY-2026-42945
- Weaknesses: CWE-122, CWE-131
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: f5

## Description

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.

(As written by CVE List.)

## Affected

- F5 NGINX Plus: from R36 before R36 P4; from R32 before R32 P6 (not affected: from R37 before *)
- F5 NGINX Open Source: from 0.6.27 before 1.30.1 (not affected: from 1.31.0 before *)
- nginx: no versions given (not affected: from 2:1.26.3-2.el10_1.2 before *; from 2:1.26.3-6.el10_2.3 before *; from 2:1.26.3-1.el10_0.9 before *; from 2:1.20.1-24.el9_7.3 before *; from 2:1.20.1-28.el9_8.2 before *; from 1:1.20.1-10.el9_0.4 before *; from 1:1.20.1-14.el9_2.6 before *; from 1:1.20.1-16.el9_4.6 before *; from 2:1.20.1-22.el9_6.6 before *)
- nginx:1.24: no versions given (not affected: from 8100020260514165201.489197e6 before *; from 9080020260514160836.9 before *; from 9040020260514192210.9 before *; from 9060020260514175739.9 before *)
- nginx:1.26: no versions given (not affected: from 9080020260514152324.9 before *; from 9060020260514170123.9 before *)
- nginx-main: no versions given (not affected: from 1.30.1-1.hum1 before *)
- odf4/ocs-client-console-rhel9: no versions given (not affected: from 1779972138 before *; from 1779967811 before *; from 1779959318 before *; from 1779952245 before *; from 1779881302 before *; from 1779881012 before *; from 1779879463 before *; from 1779946521 before *)
- odf4/odf-console-rhel9: no versions given (not affected: from 1779972283 before *; from 1779967813 before *; from 1779959527 before *; from 1779952279 before *; from 1779881608 before *; from 1779881008 before *; from 1779877770 before *; from 1779946525 before *)
- odf4/odf-multicluster-console-rhel9: no versions given (not affected: from 1779972179 before *; from 1779968303 before *; from 1779959592 before *; from 1779952463 before *; from 1779881122 before *; from 1779881332 before *; from 1779881377 before *; from 1779946691 before *)
- satellite/iop-gateway-rhel9: no versions given (not affected: from 1779706745 before *; from 1779706797 before *)
- rhui5/cds-rhel9: no versions given (not affected: from 1779798159 before *)
- rhui5/rhua-rhel9: no versions given (not affected: from 1779798222 before *)
- rhui5/cds-kubernetes-tp-rhel9: no versions given (not affected: from 1787241211 before *)
- rhui5/rhua-tp-rhel9: no versions given (not affected: from 1787241260 before *)
- 3scale-amp2/apicast-gateway-rhel8: no versions given
- insights-proxy/insights-proxy-container-rhel9: no versions given
- f5 dos: from 4.3.0 up to 4.7.0; 4.8.0
- f5 nginx_gateway_fabric: from 1.3.0 up to 1.6.2; from 2.0.0 up to 2.5.1
- f5 nginx_ingress_controller: from 3.5.0 up to 3.7.2; from 4.0.0 up to 4.0.1; from 5.0.0 up to 5.4.1
- f5 nginx_instance_manager: from 2.16.0 up to 2.21.1
- f5 nginx_open_source: from 0.6.27 up to 1.30.0
- f5 nginx_plus: from r32 up to r36
- f5 waf: from 4.9.0 up to 4.16.0; from 5.1.0 up to 5.8.0; from 5.9.0 up to 5.12.1
- nginx (Bitnami): from 0.6.27 before 1.30.1
- nginx-gateway (Bitnami): from 0.6.27 before 1.30.1

## Every score

- f5: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- f5: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- redhat-SADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/DepthFirstDisclosures/Nginx-Rift> (exploit, advisory, third-party-advisory)
- <https://my.f5.com/manage/s/article/K000161019> (advisory, mitigation, patch, vendor-advisory)
- <https://depthfirst.com/nginx-rift> (advisory, mitigation, technical-description, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-42945> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2477116> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:17790> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:18063> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19159> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:18041> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17791> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17751> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17792> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17793> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17752> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17794> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17753> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:18029> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19371> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19374> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19372> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17417> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22396> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22393> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22394> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22390> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22388> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22389> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22383> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22382> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:20442> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:20444> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:58981> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:21275> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42945> (web)

## Sources

- CVE List: [CVE-2026-42945](https://www.cve.org/CVERecord?id=CVE-2026-42945), CVE Terms of Use, modified 2026-09-10
- NVD: [CVE-2026-42945](https://nvd.nist.gov/vuln/detail/CVE-2026-42945), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-NGINX-2026-42945](https://osv.dev/vulnerability/BIT-NGINX-2026-42945), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-NGINX-GATEWAY-2026-42945](https://osv.dev/vulnerability/BIT-NGINX-GATEWAY-2026-42945), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-42945 · Whole record: https://cve.day/CVE-2026-42945.json · Rebuilt by cve.day 2026-11-25T22:59:21.583Z
