CVE-2026-42945
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.
Weakness
- CWE-122: Heap-based Buffer Overflow
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-05-13 |
Timeline
- 2026-05-13Published by the CNA14:12 UTC
- 2026-05-13CISA SSVC decision recordedsame day
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| f5 nginx_open_source | from 0.6.27 through 1.30.0no fix listed | not listed |
| f5 nginx_plus | ||
| f5 dos | from 4.3.0 through 4.7.0no fix listed4.8.0no fix listed | not listednot listed |
| f5 nginx_gateway_fabric | from 1.3.0 through 1.6.2no fix listedfrom 2.0.0 through 2.5.1no fix listed | not listednot listed |
| f5 nginx_ingress_controller | from 3.5.0 through 3.7.2no fix listedfrom 4.0.0 through 4.0.1no fix listedfrom 5.0.0 through 5.4.1no fix listed | not listednot listednot listed |
| f5 nginx_instance_manager | from 2.16.0 through 2.21.1no fix listed | not listed |
| f5 waf | from 4.9.0 through 4.16.0no fix listedfrom 5.9.0 through 5.12.1no fix listedfrom 5.1.0 through 5.8.0no fix listed | not listednot listednot listed |
References
- https://my.f5.com/manage/s/article/K000161019
- https://github.com/DepthFirstDisclosures/Nginx-Rift
- https://access.redhat.com/errata/RHSA-2026:17417
- https://access.redhat.com/errata/RHSA-2026:17751
- https://access.redhat.com/errata/RHSA-2026:17752
- https://access.redhat.com/errata/RHSA-2026:17753
- https://access.redhat.com/errata/RHSA-2026:17790
- https://access.redhat.com/errata/RHSA-2026:17791
- https://access.redhat.com/errata/RHSA-2026:17792
- https://access.redhat.com/errata/RHSA-2026:17793
- https://access.redhat.com/errata/RHSA-2026:17794
- https://access.redhat.com/errata/RHSA-2026:18029
- https://access.redhat.com/errata/RHSA-2026:18041
- https://access.redhat.com/errata/RHSA-2026:18063
- https://access.redhat.com/errata/RHSA-2026:19159
- https://access.redhat.com/errata/RHSA-2026:19371
- https://access.redhat.com/errata/RHSA-2026:19372
- https://access.redhat.com/errata/RHSA-2026:19374
- https://access.redhat.com/errata/RHSA-2026:20442
- https://access.redhat.com/errata/RHSA-2026:20444
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-42945'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-42945'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-42945'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-42945'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).