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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| F5 | NGINX Plus | R36 – < R36 P4, R32 – < R32 P6 | R36 P4 |
| F5 | NGINX Open Source | 0.6.27 – < 1.30.1 | 1.30.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nginx | 1.30.0-3 | — |
| Debian 13 | nginx | 1.26.3-3+deb13u5 | — |
| Debian 12 | nginx | 1.22.1-9+deb12u7 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | nginx | 1.28.3-2ubuntu1.1 | — |
| Ubuntu 25.10 | nginx | 1.28.0-6ubuntu1.3 | — |
| Ubuntu 24.04 LTS | nginx | 1.24.0-2ubuntu7.8 | — |
| Ubuntu 22.04 LTS | nginx | 1.18.0-6ubuntu14.11 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | nginx | 1.18.0-0ubuntu1.7+esm1 | — |
| Ubuntu Pro 18.04 LTS | nginx | 1.14.0-0ubuntu1.11+esm2 | — |
| Ubuntu Pro 16.04 LTS | nginx | 1.10.3-0ubuntu0.16.04.5+esm7 | — |
| Ubuntu Pro 14.04 LTS | nginx | 1.4.6-1ubuntu3.9+esm6 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | nginx +9 | 2:1.26.3-2.el10_1.2 | RHSA-2026:19159, RHSA-2026:18063 |
| RHEL 9 | nginx +9 | 1:1.24.0-7.module+el9.8.0+24289+833e4c02.1 | RHSA-2026:19374, RHSA-2026:19372, RHSA-2026:19371 |
| RHEL 8 | nginx +8 | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10.0 EUS | nginx +9 | 2:1.26.3-1.el10_0.9 | RHSA-2026:17790 |
| RHEL 9.6 EUS | nginx +9 | 1:1.24.0-4.module+el9.6.0+24297+b3b39a7f.3 | RHSA-2026:17794, RHSA-2026:17753, RHSA-2026:17752 |
| RHEL 9.4 EUS | nginx +9 | 1:1.20.1-16.el9_4.6 | RHSA-2026:17793, RHSA-2026:17792 |
| RHEL 9.2 E4S | nginx +8 | 1:1.20.1-14.el9_2.6 | RHSA-2026:17751 |
| RHEL 9.0 E4S | nginx +7 | 1:1.20.1-10.el9_0.4 | RHSA-2026:17791 |
| Red Hat Hardened Images 1 | nginx +11 | 1.30.1-1.hum1 | RHSA-2026:17417 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | nginx +7 | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-filesystem +1 | 2:1.26.3-2.el10_1.2 | ALSA-2026:19159, ALSA-2026:18063 |
| AlmaLinux 9 | nginx +7 | 2:1.20.1-24.el9_7.3.alma.1 | ALSA-2026:19374, ALSA-2026:18029 |
| AlmaLinux 9 | nginx-filesystem +1 | 1:1.24.0-7.module_el9.8.0+246+ef96a02d.1.alma.1 | ALSA-2026:19374, ALSA-2026:19372, ALSA-2026:19371 |
| AlmaLinux 8 | nginx +8 | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | nginx | 2:1.26.3-2.el10_1.2 | RLSA-2026:19159, RLSA-2026:18063 |
| Rocky Linux 9 | nginx | 1:1.24.0-7.module+el9.8.0+40193+7b2d11e4.1.rocky.0.1 | RLSA-2026:19374, RLSA-2026:19372, RLSA-2026:19371 |
| Rocky Linux 8 | nginx | 1:1.24.0-3.module+el8.10.0+40144+38158758 | RLSA-2026:18041 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | nginx | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| SLES 15 SP4 | nginx | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP5 | nginx | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| SLES for SAP 15 SP4 | nginx | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| SLE HPC 15 SP5 | nginx | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| SLE HPC 15 SP4 | nginx | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | nginx | 1.31.0-1.1 | openSUSE-SU-2026:10796-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nginx | 1.30.1-r0 | — |
| Alpine v3.23 | nginx | 1.28.3-r1 | — |
| Alpine v3.22 | nginx | 1.28.3-r1 | — |
| Alpine v3.21 | nginx | 1.26.3-r1 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | nginx +9 | 1:1.30.1-1.amzn2023.0.1 | ALAS2023-2026-1714 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nginx | 1.28.3-4 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | nginx +9 | 2:1.26.3-2.0.1.el10_1.2 | ELSA-2026-19159, ELSA-2026-18063 |
| Oracle Linux 9 | nginx +9 | 1:1.24.0-7.0.1.module+el9.8.0+90907+bb748438.1 | ELSA-2026-19374, ELSA-2026-19372, ELSA-2026-19371 |
| Oracle Linux 8 | nginx +8 | 1:1.24.0-3.0.1.module+el8.10.0+90893+b2195e14.1 | ELSA-2026-18041 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kube-webhook-certgen-1.15 +6 | 1.15.5-r1 | — |
| Wolfi rolling | nginx-mainline | 1.31.0-r0 | — |
| Wolfi rolling | nginx-stable | 1.30.1-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 48 repositories · most starred shown
-
cipherspy/CVE-2026-42945-POC ★ 66 · May 14, 2026
exploit for CVE-2026-42945
-
friparia/NGINX_RIFT_SCAN_CVE_2026_42945 ★ 34 · May 14, 2026
Nginx Rewrite CVE Scan(CVE-2026-42945 nginx-rift CVE-2026-9256)
-
MateusVerass/nGixshell ★ 29 · May 16, 2026
nginx CVE scanner + RCE exploit framework (CVE-2026-42945 + 16 others)
-
rheodev/CVE-2026-42945 ★ 24 · May 14, 2026
NGINX Rift 漏洞分析与复现
-
oseasfr/Scanner_CVE_2026-42945 ★ 18 · May 15, 2026
Script Python para detecção de instâncias Nginx vulneráveis ao CVE-2026-42945 em IPs, CIDRs e ASNs.
-
p3Nt3st3r-sTAr/CVE-2026-42945-POC ★ 15 · May 14, 2026
-
nu0l/NGINX-Rift ★ 5 · May 25, 2026
CVE-2026-42945 NGINX 堆溢出漏洞扫描与验证工具
-
gagaltotal/CVE-2026-42945-NGINX-Rift-Toolkit ★ 4 · May 20, 2026
CVE-2026-42945 - NGINX Rift Toolkit
-
iammerrida-source/nginx-rift-detect ★ 4 · May 15, 2026
Behavioral detection script for CVE-2026-42945 (NGINX Rift) — heap overflow in ngx_http_rewrite_module. No RCE, crash-based detection only.
-
nanwinata/nginxrift-CVE-2026-42945 ★ 3 · May 14, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 44
- WID-SEC-2026-2933 Splunk SOAR: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 2, 2026
- ALSA-2026:19371 Critical: nginx:1.24 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19372 Critical: nginx:1.26 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19374 Critical: nginx security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:18029 Critical: nginx security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19159 Critical: nginx security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:18063 Critical: nginx security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:18041 Critical: nginx:1.24 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:17417 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- RHSA-2026:19374 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:19372 Red Hat Security Advisory: nginx:1.26 security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:19371 Red Hat Security Advisory: nginx:1.24 security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:19159 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:18063 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:18041 Red Hat Security Advisory: nginx:1.24 security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:18029 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17794 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17792 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17793 Red Hat Security Advisory: nginx:1.24 security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17790 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17791 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17752 Red Hat Security Advisory: nginx:1.24 security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17753 Red Hat Security Advisory: nginx:1.26 security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- RHSA-2026:17751 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Sep 24, 2026
- WID-SEC-2026-1527 NGINX Open Source and NGINX Plus: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 16, 2026
- ALAS2023-2026-1714 Important: nginx security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 31, 2026
- ELSA-2026-19159 Critical: nginx security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jul 21, 2026
- ICSA-26-188-03 Hitachi Energy e-mesh EMS CISA ICS & IT advisories · Jul 7, 2026
- ELSA-2026-19372 Critical: nginx:1.26 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 24, 2026
- ELSA-2026-19371 Critical: nginx:1.24 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 23, 2026
- ELSA-2026-19374 Critical: nginx security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 23, 2026
- SUSE-SU-2026:2370-1 Security update for nginx SUSE / openSUSE Security Updates · Jun 12, 2026
- RLSA-2026:19374 Critical: nginx security update Rocky Linux Security Advisories · May 30, 2026
- RLSA-2026:19159 Critical: nginx security update Rocky Linux Security Advisories · May 29, 2026
- RLSA-2026:19371 Critical: nginx:1.24 security update Rocky Linux Security Advisories · May 28, 2026
- RLSA-2026:19372 Critical: nginx:1.26 security update Rocky Linux Security Advisories · May 28, 2026
- RLSA-2026:18029 Critical: nginx security update Rocky Linux Security Advisories · May 21, 2026
- RLSA-2026:18063 Critical: nginx security update Rocky Linux Security Advisories · May 19, 2026
- ELSA-2026-18029 Critical: nginx security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 19, 2026
- ELSA-2026-18041 Critical: nginx:1.24 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 19, 2026
- ELSA-2026-18063 Critical: nginx security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · May 19, 2026
- RLSA-2026:18041 Critical: nginx:1.24 security update Rocky Linux Security Advisories · May 18, 2026
- NCSC-2026-0164 Kwetsbaarheid verholpen in NGINX ngx_http_rewrite_module NCSC-NL (Netherlands) · May 18, 2026
- openSUSE-SU-2026:10796-1 nginx-1.31.0-1.1 on GA media SUSE / openSUSE Security Updates · May 17, 2026
References
- https://my.f5.com/manage/s/article/K000161019 vendor-advisory patch