CVEfocus › CVE database › CVE-2026-9256

CVE-2026-9256NGINX ngx_http_rewrite_module vulnerability

CVSS 8.1 HighEPSS 8.3% (higher than 95% of CVEs)Published 2026-05-22Updated 2026-08-25Assigner: f5

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.

CWE-122

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

64Fixed
4Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04nginxFixed1.28.3-2ubuntu1.2UBUNTU-CVE-2026-9256
Ubuntu 25.10nginxFixed1.28.0-6ubuntu1.4UBUNTU-CVE-2026-9256
Ubuntu 24.04nginxFixed1.24.0-2ubuntu7.9UBUNTU-CVE-2026-9256
Ubuntu 22.04nginxFixed1.18.0-6ubuntu14.12UBUNTU-CVE-2026-9256
Ubuntu 20.04nginxFix pending1.18.0-0ubuntu1.7+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-9256
Ubuntu 18.04nginxFix pending1.14.0-0ubuntu1.11+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-9256
Ubuntu 16.04nginxFix pending1.10.3-0ubuntu0.16.04.5+esm7 (Ubuntu Pro)UBUNTU-CVE-2026-9256
Ubuntu 14.04nginxFix pending1.4.6-1ubuntu3.9+esm6 (Ubuntu Pro)UBUNTU-CVE-2026-9256
Debian 14nginxFixed1.30.1-3DEBIAN-CVE-2026-9256
Debian 13nginxFixed1.26.3-3+deb13u6DEBIAN-CVE-2026-9256
Debian 12nginxFixed1.22.1-9+deb12u8DEBIAN-CVE-2026-9256
Red Hat Enterprise Linux 10nginxFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-all-modulesFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-coreFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-filesystemFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-mod-develFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-mod-http-image-filterFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-mod-http-perlFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-mod-http-xslt-filterFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-mod-mailFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 10nginx-mod-streamFixed2:1.26.3-6.el10_2.4RHSA-2026:29874
Red Hat Enterprise Linux 9nginxFixed2:1.26.3-9.module+el9.8.0+24374+c0e15309.1RHSA-2026:28973
Red Hat Enterprise Linux 9nginx-all-modulesFixed2:1.26.3-9.module+el9.8.0+24374+c0e15309.1RHSA-2026:28212
Red Hat Enterprise Linux 9nginx-coreFixed2:1.26.3-9.module+el9.8.0+24374+c0e15309.1RHSA-2026:28973
Red Hat Enterprise Linux 9nginx-filesystemFixed2:1.20.1-28.el9_8.3RHSA-2026:28212
Red Hat Enterprise Linux 9nginx-mod-develFixed2:1.26.3-9.module+el9.8.0+24374+c0e15309.1RHSA-2026:28973
Red Hat Enterprise Linux 9nginx-mod-http-image-filterFixed1:1.24.0-7.module+el9.8.0+24379+0344c460.2RHSA-2026:29151
Red Hat Enterprise Linux 9nginx-mod-http-perlFixed2:1.26.3-9.module+el9.8.0+24374+c0e15309.1RHSA-2026:28973
Red Hat Enterprise Linux 9nginx-mod-http-xslt-filterFixed2:1.20.1-28.el9_8.3RHSA-2026:28212
Red Hat Enterprise Linux 9nginx-mod-mailFixed2:1.26.3-9.module+el9.8.0+24374+c0e15309.1RHSA-2026:28973
Red Hat Enterprise Linux 9nginx-mod-streamFixed2:1.20.1-28.el9_8.3RHSA-2026:29151
Red Hat Enterprise Linux 8nginxFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-all-modulesFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-filesystemFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-mod-develFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-mod-http-image-filterFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-mod-http-perlFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-mod-http-xslt-filterFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-mod-mailFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
Red Hat Enterprise Linux 8nginx-mod-streamFixed1:1.24.0-3.module+el8.10.0+24380+8b0811ed.2RHSA-2026:28921
AlmaLinux 10nginx-all-modulesFixed2:1.26.3-6.el10_2.4ALSA-2026:29874
AlmaLinux 10nginx-filesystemFixed2:1.26.3-6.el10_2.4ALSA-2026:29874
AlmaLinux 9nginxFixed2:1.20.1-28.el9_8.3.alma.1ALSA-2026:28212
AlmaLinux 9nginx-all-modulesFixed2:1.20.1-28.el9_8.3.alma.1ALSA-2026:29151
AlmaLinux 9nginx-coreFixed2:1.20.1-28.el9_8.3.alma.1ALSA-2026:29151
AlmaLinux 9nginx-filesystemFixed2:1.26.3-9.module_el9.8.0+260+95b8e5ed.1ALSA-2026:28212
AlmaLinux 9nginx-mod-develFixed2:1.26.3-9.module_el9.8.0+260+95b8e5ed.1ALSA-2026:28212
AlmaLinux 9nginx-mod-http-image-filterFixed2:1.26.3-9.module_el9.8.0+260+95b8e5ed.1ALSA-2026:28212
AlmaLinux 9nginx-mod-http-perlFixed1:1.24.0-7.module_el9.8.0+259+a3b861bb.2.alma.1ALSA-2026:29151
AlmaLinux 9nginx-mod-http-xslt-filterFixed2:1.26.3-9.module_el9.8.0+260+95b8e5ed.1ALSA-2026:28212
AlmaLinux 9nginx-mod-mailFixed1:1.24.0-7.module_el9.8.0+259+a3b861bb.2.alma.1ALSA-2026:28973
AlmaLinux 9nginx-mod-streamFixed1:1.24.0-7.module_el9.8.0+259+a3b861bb.2.alma.1ALSA-2026:28973
AlmaLinux 8nginxFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-all-modulesFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-filesystemFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-mod-develFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-mod-http-image-filterFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-mod-http-perlFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-mod-http-xslt-filterFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-mod-mailFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
AlmaLinux 8nginx-mod-streamFixed1:1.24.0-3.module_el8.10.0+4200+fea3b4c7.2.alma.1ALSA-2026:28921
Rocky Linux 10nginxFixed2:1.26.3-6.el10_2.4RLSA-2026:29874
Rocky Linux 9nginxFixed2:1.26.3-9.module+el9.8.0+40194+40adfc1bRLSA-2026:28212
Rocky Linux 8nginxFixed1:1.24.0-3.module+el8.10.0+40144+38158758RLSA-2026:28921
Alpine Linux 3.24nginxFixed1.30.2-r0ALPINE-CVE-2026-9256
Alpine Linux 3.23nginxFixed1.28.3-r2ALPINE-CVE-2026-9256
Alpine Linux 3.22nginxFixed1.28.3-r2ALPINE-CVE-2026-9256
Alpine Linux 3.21nginxFixed1.26.3-r1ALPINE-CVE-2026-9256

What the vendor says

As published in the CVE record by f5, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.