Description
NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when a rewrite directive uses a regex pattern with distinct, overlapping Perl-Compatible Regular Expression (PCRE) captures (for example, ^/((.*))$) and a replacement string that references multiple such captures (for example, $1$2) in a redirect or arguments context. An unauthenticated attacker along with conditions beyond their 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 | 37.0 – < 37.0.1.1, R36 – < R36 P5, R32 – < R32 P7 | 37.0.1.1 |
| F5 | NGINX Open Source | 1.31.0 – < 1.31.1, 1.30.0 – < 1.30.2, 0.1.17 – ≤ 0.9.7 | 1.31.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.1-3 | — |
| Debian 13 | nginx | 1.26.3-3+deb13u6 | — |
| Debian 12 | nginx | 1.22.1-9+deb12u8 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | nginx | 1.28.3-2ubuntu1.2 | — |
| Ubuntu 25.10 | nginx | 1.28.0-6ubuntu1.4 | — |
| Ubuntu 24.04 LTS | nginx | 1.24.0-2ubuntu7.9 | — |
| Ubuntu 22.04 LTS | nginx | 1.18.0-6ubuntu14.12 | — |
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-6.el10_2.4 | RHSA-2026:29874 |
| RHEL 9 | nginx +9 | 1:1.24.0-7.module+el9.8.0+24379+0344c460.2 | RHSA-2026:29151, RHSA-2026:28973, RHSA-2026:28212 |
| RHEL 8 | nginx +8 | 1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2 | RHSA-2026:28921 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | nginx +11 | 1.30.2-1.hum1 | RHSA-2026:20351 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | nginx +9 | 2:1.26.3-6.el10_2.4 | ALSA-2026:29874 |
| AlmaLinux 9 | nginx +9 | 1:1.24.0-7.module_el9.8.0+259+a3b861bb.2.alma.1 | ALSA-2026:29151, ALSA-2026:28973, ALSA-2026:28212 |
| AlmaLinux 8 | nginx +8 | 1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1 | ALSA-2026:28921 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | nginx | 2:1.26.3-6.el10_2.4 | RLSA-2026:29874 |
| Rocky Linux 9 | nginx | 1:1.24.0-7.module+el9.8.0+40193+7b2d11e4.1.rocky.0.1 | RLSA-2026:29151, RLSA-2026:28212 |
| Rocky Linux 8 | nginx | 1:1.24.0-3.module+el8.10.0+40144+38158758 | RLSA-2026:28921 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | nginx | 1.21.5-150600.10.21.1 | SUSE-SU-2026:2307-1 |
| SLES 15 SP6 | nginx | 1.21.5-150600.10.21.1 | SUSE-SU-2026:2307-1 |
| 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 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | nginx | 1.27.2-160000.5.1 | SUSE-SU-2026:22178-1 |
| SLES for SAP 15 SP6 | nginx | 1.21.5-150600.10.21.1 | SUSE-SU-2026:2307-1 |
| 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 |
| SLES 16.0 | nginx | 1.27.2-160000.5.1 | SUSE-SU-2026:22178-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.1-1.1 | openSUSE-SU-2026:10852-1 |
| openSUSE Leap 16.0 | nginx | 1.27.2-160000.5.1 | openSUSE-SU-2026:21107-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nginx | 1.30.2-r0 | — |
| Alpine v3.23 | nginx | 1.28.3-r2 | — |
| Alpine v3.22 | nginx | 1.28.3-r2 | — |
| Alpine v3.21 | nginx | 1.26.3-r1 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | nginx +9 | 1:1.30.2-1.amzn2023.0.1 | ALAS2023-2026-1773 |
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-6.0.1.el10_2.5 | ELSA-2026-29874 |
| Oracle Linux 9 | nginx +9 | 1:1.24.0-7.0.1.module+el9.8.0+90934+bc5453bc.2 | ELSA-2026-29151, ELSA-2026-28973, ELSA-2026-28212 |
| Oracle Linux 8 | nginx +8 | 1:1.24.0-3.0.1.module+el8.10.0+90930+6a64aa8a.2 | ELSA-2026-28921 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | nginx-mainline | 1.31.1-r0 | — |
| Wolfi rolling | nginx-stable | 1.30.2-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 4 repositories
-
3nou9h/CVE-2026-9256-Poc ★ 3 · May 28, 2026
-
W5M1n9/NGINX-ngx_http_rewrite_module-heap-buffer-overflow-CVE-2026-9256 ★ 2 · May 28, 2026
-
06-ux/CVE-2026-9256-POC ★ 1 · Jun 3, 2026
CVE-2026-9256 Nginx heap buffer overflow POC
-
suominen/CVE-2026-9256 ★ 0 · May 24, 2026
Tracking the nginx CVE-2026-9256 rewrite-module heap overflow
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 29
- WID-SEC-2026-2933 Splunk SOAR: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 2, 2026
- WID-SEC-2026-1661 NGINX Open Source und NGINX Plus: Schwachstelle ermöglicht Denial of Service und potenziell Codeausführung BSI CERT-Bund (WID) · Nov 1, 2026
- ALSA-2026:28212 Important: nginx:1.24 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:28973 Important: nginx security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:29151 Important: nginx:1.26 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:29874 Important: nginx security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:28921 Important: nginx:1.24 security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2026-2437 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 22, 2026
- RHSA-2026:20351 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:29874 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Jul 26, 2026
- RHSA-2026:29151 Red Hat Security Advisory: nginx:1.26 security update Red Hat Security Advisories (RHSA) · Jul 26, 2026
- RHSA-2026:28973 Red Hat Security Advisory: nginx security update Red Hat Security Advisories (RHSA) · Jul 26, 2026
- RHSA-2026:28921 Red Hat Security Advisory: nginx:1.24 security update Red Hat Security Advisories (RHSA) · Jul 26, 2026
- RHSA-2026:28212 Red Hat Security Advisory: nginx:1.24 security update Red Hat Security Advisories (RHSA) · Jul 26, 2026
- ELSA-2026-29874 Important: nginx security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jul 22, 2026
- openSUSE-SU-2026:21107-1 Security update for nginx SUSE / openSUSE Security Updates · Jun 30, 2026
- ELSA-2026-28973 Important: nginx security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 29, 2026
- ELSA-2026-28212 Important: nginx:1.24 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 29, 2026
- RLSA-2026:29874 Important: nginx security update Rocky Linux Security Advisories · Jun 26, 2026
- RLSA-2026:29151 Important: nginx:1.26 security update Rocky Linux Security Advisories · Jun 25, 2026
- ELSA-2026-29151 Important: nginx:1.26 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 25, 2026
- SUSE-SU-2026:22178-1 Security update for nginx SUSE / openSUSE Security Updates · Jun 24, 2026
- RLSA-2026:28921 Important: nginx:1.24 security update Rocky Linux Security Advisories · Jun 24, 2026
- RLSA-2026:28212 Important: nginx:1.24 security update Rocky Linux Security Advisories · Jun 24, 2026
- ELSA-2026-28921 Important: nginx:1.24 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jun 24, 2026
- SUSE-SU-2026:2370-1 Security update for nginx SUSE / openSUSE Security Updates · Jun 12, 2026
- SUSE-SU-2026:2307-1 Security update for nginx SUSE / openSUSE Security Updates · Jun 10, 2026
- ALAS2023-2026-1773 Important: nginx security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 8, 2026
- openSUSE-SU-2026:10852-1 nginx-1.31.1-1.1 on GA media SUSE / openSUSE Security Updates · May 25, 2026
References
- https://my.f5.com/manage/s/article/K000161377 vendor-advisory