CVE-2026-9256
nginx: ngx_http_rewrite_module: code execution and denial of service
Overview
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.
Source: OX vulnerability database
Severity
8.1 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-122
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | nginx | >=0.1.17, <1.24.0>=1.30.0, <1.30.2>=1.31.0, <1.31.1 | 1.24.01.30.21.31.1 |
| Bitnami | nginx-gateway | >=0.1.17, <2.2.1 | 2.2.1 |
Open a package to see all its vulnerabilities.
Operating systems · 52 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nginx | 0:1.28.3-4.azl3 |
Oracle Linux 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | nginx +8 | 1:1.24.0-3.0.1.module+el8.10.0+90930+6a64aa8a.2 |
| 9 | nginx +9 | 2:1.26.3-9.0.1.module+el9.8.0+90931+68e8e4c5.1 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nginx | 1.26.3-3.ph4 |
Red Hat 4 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2 | RHSA-2026:28921 |
| 9 | nginx +8 | 1:1.20.1-14.el9_2.7 | RHSA-2026:93472 |
| 9 | nginx +8 | 1:1.20.1-16.el9_4.7 | RHSA-2026:93468 |
| 9 | nginx +9 | 2:1.20.1-22.el9_6.7 | RHSA-2026:93467 |
| 9 | nginx +9 | 2:1.20.1-28.el9_8.3 | RHSA-2026:28973 |
| 9 (nginx:1.24) | nginx +9 | 1:1.24.0-7.module+el9.8.0+24379+0344c460.2 | RHSA-2026:28212 |
1 more row
SUSE Linux Enterprise 5 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | nginx +1 | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| 15.5 | nginx +1 | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| 15.6 | nginx +1 | 1.21.5-150600.10.21.1 | SUSE-SU-2026:2307-1 |
| 15.7 | nginx +1 | 1.21.5-150600.10.21.1 | SUSE-SU-2026:2307-1 |
| 16.0 | nginx +1 | 1.27.2-160000.5.1 | SUSE-SU-2026:22178-1 |
alma 5 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nginx-all-modules +1 | 2:1.26.3-6.el10_2.4 |
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1 |
| 9 | nginx +9 | 2:1.20.1-28.el9_8.3.alma.1 |
| 9 (nginx:1.24) | nginx +9 | 1:1.24.0-7.module_el9.8.0+259+a3b861bb.2.alma.1 |
| 9 (nginx:1.26) | nginx +9 | 2:1.26.3-9.module_el9.8.0+260+95b8e5ed.1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nginx | 1.28.3-r2 |
| 3.23 | nginx | 1.28.3-r2 |
| 3.24 | nginx | 1.30.2-r0 |
| edge | nginx | 1.30.2-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nginx +17 | 1:1.30.2-1.amzn2023.0.1 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| nginx-stable | 1.30.2-r0 | |
| nginx-mainline | 1.31.1-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nginx | 1.18.0-6.1+deb11u7 |
| 12 | nginx | 1.22.1-9+deb12u8 |
| 13 | nginx | 1.26.3-3+deb13u6 |
| 14 | nginx | 1.30.1-3 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nginx | 1.22.1-9+deb12u8 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| nginx-1-30 | 1.30.2-r0 | |
| nginx-1-31 | 1.31.1-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | nginx +1 | 1.31.1-1.1 | openSUSE-SU-2026:10852-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | nginx +1 | 1.27.2-160000.5.1 | openSUSE-SU-2026:21107-1 |
rocky 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | nginx +8 | 2:1.26.3-6.el10_2.4 |
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module+el8.10.0+40144+38158758 |
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module+el8.10.0+40187+52bedf24.1 |
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module+el8.10.0+40220+e6a4bcb0.2 |
| 9 (nginx:1.24) | nginx +9 | 1:1.24.0-7.module+el9.8.0+40193+7b2d11e4.1.rocky.0.1 |
| 9 (nginx:1.24) | nginx +9 | 1:1.24.0-7.module+el9.8.0+40218+76099d32.2.rocky.0.1 |
1 more row
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-nginx | affected |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | nginx | 1.14.0-0ubuntu1.11+esm2 |
| 20.04-ESM | nginx | 1.18.0-0ubuntu1.7+esm1 |
| 22.04 | nginx | 1.18.0-6ubuntu14.12 |
| 24.04 | nginx | 1.24.0-2ubuntu7.9 |
| 26.04 | nginx | 1.28.3-2ubuntu1.2 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| nginx-stable | 1.30.2-r0 | |
| nginx-mainline | 1.31.1-r0 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2026/05/22/14
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:20351
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:28212
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:28921
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:28973
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:29151
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:29874
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:33313
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:44481
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:58981
Show all 26 references
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-9256
- bugzilla.redhat.com https://bugzilla.redhat.com/2480746
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2480746
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-9256
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-29151.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:28921
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-9256.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-29874.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2026/06/msg00023.html
- my.f5.com https://my.f5.com/manage/s/article/K000161377
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-9256
- security.access.redhat.com https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9256.json
- ubuntu.com https://ubuntu.com/security/notices/USN-8354-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8375-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-9256
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.