CVE-2026-42945
NGINX ngx_http_rewrite_module vulnerability
Reported by f5 · Published May 13, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nginx-filesystem | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-mod-http-image-filter | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-mod-http-image-filter-debuginfo | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-mod-mail | errata.rockylinux.org | 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-3.module |
| nginx-mod-stream-debuginfo | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-all-modules | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-core-debuginfo | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| ingress-nginx-controller-1.13 | Chainguard | 1.13.9-r9 |
| nginx-debugsource | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-core | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-mod-http-xslt-filter | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9 |
| nginx-mod-stream | errata.rockylinux.org | 1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9 |
17 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| F5 | NGINX Plus | R37, R36, R32 |
| F5 | NGINX Open Source | 1.31.0, 0.6.27 |
| Red Hat | Red Hat Enterprise Linux 9 | 9080020260514152324.9 |
| Red Hat | Red Hat 3scale API Management Platform 2 | |
| Red Hat | Red Hat Openshift Data Foundation 4.2 | 1779879463 |
| Red Hat | Red Hat Openshift Data Foundation 4.15 | 1779968303 |
| Red Hat | Red Hat Update Infrastructure 5 | 1787241260 |
| F5 | NGINX Plus | *, *, * |
| Red Hat | Red Hat Satellite 6.18 | |
| chainguard | ingress-nginx-controller-1.13 | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | 9080020260514160836.9 |
| Red Hat | Red Hat Enterprise Linux AppStream (v. 9) | |
| Red Hat | Red Hat Enterprise Linux AppStream (v. 10) | |
| amazon:2023 | nginx-core | 0 |
| chainguard | nginx-mainline | 0 |
| Red Hat | Red Hat Update Infrastructure 5 | |
| Red Hat | Red Hat Satellite 6.19 | |
| Red Hat | Red Hat Openshift Data Foundation 4.19 | 1779881012 |
| Red Hat | Red Hat Openshift Data Foundation 4.14 | 1779972179 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | 9040020260514192210.9 |
…and 84 more
Timeline
- May 12, 2026 VulnCheck XDB Entry (25 in total, the first dated here)
- May 13, 2026 CVE Published
- May 13, 2026 PoC Published (43 in total, the first dated here)
- May 15, 2026 Security Advisory (35 in total, the first dated here)
- May 16, 2026 VulnCheck KEV Exploitation (2 in total, the first dated here)
- May 16, 2026 Distribution Patch (40 in total, the first dated here)
- May 18, 2026 EPSS Score (23 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-42945
vulnetix vdb fixes CVE-2026-42945
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42945/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisorypatch
- https://depthfirst.com/nginx-rift url
- https://github.com/DepthFirstDisclosures/Nginx-Rift url
- https://access.redhat.com/security/cve/CVE-2026-42945 vdb
- RHBZ#2477116 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.json url
- https://access.redhat.com/errata/RHSA-2026:17790 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:18063 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19159 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:18041 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17791 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17751 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17792 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17793 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17752 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17794 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17753 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:18029 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19371 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19374 vendor-advisory
…and 14 more