Skip to content
OpenAdvisories
High · 8.1 Public exploit CVE-2026-9256 EUVD-2026-31444GHSA-h78r-86c6-jgp4

NGINX ngx_http_rewrite_module vulnerability

Published May 22, 2026 · Updated Aug 25, 2026 · Assigned by f5

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 nginx 1.30.1-3 —
Debian 13 nginx 1.26.3-3+deb13u6 —
Debian 12 nginx 1.22.1-9+deb12u8 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 nginx +11 1.30.2-1.hum1 RHSA-2026:20351

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nginx +9 1:1.30.2-1.amzn2023.0.1 ALAS2023-2026-1773

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nginx 1.28.3-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 4 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 29

References