CVEfocus › CVE database › CVE-2026-42945

CVE-2026-42945NGINX ngx_http_rewrite_module vulnerability

CVSS 8.1 HighEPSS 3.4% (higher than 90% of CVEs)Published 2026-05-13Updated 2026-09-10Assigner: f5

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.

CWE-122CWE-131

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

72Fixed
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.1UBUNTU-CVE-2026-42945
Ubuntu 25.10nginxFixed1.28.0-6ubuntu1.3UBUNTU-CVE-2026-42945
Ubuntu 24.04nginxFixed1.24.0-2ubuntu7.8UBUNTU-CVE-2026-42945
Ubuntu 22.04nginxFixed1.18.0-6ubuntu14.11UBUNTU-CVE-2026-42945
Ubuntu 20.04nginxFix pending1.18.0-0ubuntu1.7+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-42945
Ubuntu 18.04nginxFix pending1.14.0-0ubuntu1.11+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-42945
Ubuntu 16.04nginxFix pending1.10.3-0ubuntu0.16.04.5+esm7 (Ubuntu Pro)UBUNTU-CVE-2026-42945
Ubuntu 14.04nginxFix pending1.4.6-1ubuntu3.9+esm6 (Ubuntu Pro)UBUNTU-CVE-2026-42945
Debian 14nginxFixed1.30.0-3DEBIAN-CVE-2026-42945
Debian 13nginxFixed1.26.3-3+deb13u5DEBIAN-CVE-2026-42945
Debian 12nginxFixed1.22.1-9+deb12u7DEBIAN-CVE-2026-42945
Red Hat Enterprise Linux 10nginxFixed2:1.26.3-2.el10_1.2RHSA-2026:19159
Red Hat Enterprise Linux 10nginx-all-modulesFixed2:1.26.3-2.el10_1.2RHSA-2026:19159
Red Hat Enterprise Linux 10nginx-coreFixed2:1.26.3-6.el10_2.3RHSA-2026:18063
Red Hat Enterprise Linux 10nginx-filesystemFixed2:1.26.3-6.el10_2.3RHSA-2026:18063
Red Hat Enterprise Linux 10nginx-mod-develFixed2:1.26.3-6.el10_2.3RHSA-2026:18063
Red Hat Enterprise Linux 10nginx-mod-http-image-filterFixed2:1.26.3-2.el10_1.2RHSA-2026:19159
Red Hat Enterprise Linux 10nginx-mod-http-perlFixed2:1.26.3-2.el10_1.2RHSA-2026:19159
Red Hat Enterprise Linux 10nginx-mod-http-xslt-filterFixed2:1.26.3-6.el10_2.3RHSA-2026:18063
Red Hat Enterprise Linux 10nginx-mod-mailFixed2:1.26.3-2.el10_1.2RHSA-2026:19159
Red Hat Enterprise Linux 10nginx-mod-streamFixed2:1.26.3-2.el10_1.2RHSA-2026:19159
Red Hat Enterprise Linux 9nginxFixed2:1.20.1-28.el9_8.2RHSA-2026:19371
Red Hat Enterprise Linux 9nginx-all-modulesFixed2:1.20.1-24.el9_7.3RHSA-2026:19374
Red Hat Enterprise Linux 9nginx-coreFixed2:1.26.3-9.module+el9.8.0+24288+e2e6d896RHSA-2026:19374
Red Hat Enterprise Linux 9nginx-filesystemFixed2:1.26.3-9.module+el9.8.0+24288+e2e6d896RHSA-2026:18029
Red Hat Enterprise Linux 9nginx-mod-develFixed2:1.20.1-24.el9_7.3RHSA-2026:19372
Red Hat Enterprise Linux 9nginx-mod-http-image-filterFixed2:1.26.3-9.module+el9.8.0+24288+e2e6d896RHSA-2026:18029
Red Hat Enterprise Linux 9nginx-mod-http-perlFixed1:1.24.0-7.module+el9.8.0+24289+833e4c02.1RHSA-2026:19372
Red Hat Enterprise Linux 9nginx-mod-http-xslt-filterFixed2:1.20.1-28.el9_8.2RHSA-2026:19372
Red Hat Enterprise Linux 9nginx-mod-mailFixed2:1.20.1-28.el9_8.2RHSA-2026:18029
Red Hat Enterprise Linux 9nginx-mod-streamFixed2:1.26.3-9.module+el9.8.0+24288+e2e6d896RHSA-2026:19371
Red Hat Enterprise Linux 8nginxFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-all-modulesFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-filesystemFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-mod-develFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-mod-http-image-filterFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-mod-http-perlFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-mod-http-xslt-filterFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-mod-mailFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hat Enterprise Linux 8nginx-mod-streamFixed1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
AlmaLinux 10nginxFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 10nginx-all-modulesFixed2:1.26.3-6.el10_2.3ALSA-2026:18063
AlmaLinux 10nginx-coreFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 10nginx-filesystemFixed2:1.26.3-6.el10_2.3ALSA-2026:18063
AlmaLinux 10nginx-mod-develFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 10nginx-mod-http-image-filterFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 10nginx-mod-http-perlFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 10nginx-mod-http-xslt-filterFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 10nginx-mod-mailFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 10nginx-mod-streamFixed2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux 9nginxFixed2:1.20.1-28.el9_8.2.alma.1ALSA-2026:18029
AlmaLinux 9nginx-all-modulesFixed2:1.20.1-24.el9_7.3.alma.1ALSA-2026:19372
AlmaLinux 9nginx-coreFixed2:1.20.1-24.el9_7.3.alma.1ALSA-2026:19374
AlmaLinux 9nginx-filesystemFixed2:1.26.3-9.module_el9.8.0+247+aa936373ALSA-2026:19374
AlmaLinux 9nginx-mod-develFixed2:1.20.1-24.el9_7.3.alma.1ALSA-2026:19374
AlmaLinux 9nginx-mod-http-image-filterFixed2:1.20.1-28.el9_8.2.alma.1ALSA-2026:18029
AlmaLinux 9nginx-mod-http-perlFixed2:1.20.1-28.el9_8.2.alma.1ALSA-2026:18029
AlmaLinux 9nginx-mod-http-xslt-filterFixed2:1.20.1-24.el9_7.3.alma.1ALSA-2026:19374
AlmaLinux 9nginx-mod-mailFixed2:1.20.1-28.el9_8.2.alma.1ALSA-2026:18029
AlmaLinux 9nginx-mod-streamFixed2:1.20.1-28.el9_8.2.alma.1ALSA-2026:18029
AlmaLinux 8nginxFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-all-modulesFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-filesystemFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-mod-develFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-mod-http-image-filterFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-mod-http-perlFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-mod-http-xslt-filterFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-mod-mailFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux 8nginx-mod-streamFixed1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
Rocky Linux 10nginxFixed2:1.26.3-2.el10_1.2RLSA-2026:19159
Rocky Linux 9nginxFixed2:1.20.1-28.el9_8.2.rocky.0.1RLSA-2026:18029
Rocky Linux 8nginxFixed1:1.24.0-3.module+el8.10.0+40144+38158758RLSA-2026:18041
Alpine Linux 3.24nginxFixed1.30.1-r0ALPINE-CVE-2026-42945
Alpine Linux 3.23nginxFixed1.28.3-r1ALPINE-CVE-2026-42945
Alpine Linux 3.22nginxFixed1.28.3-r1ALPINE-CVE-2026-42945
Alpine Linux 3.21nginxFixed1.26.3-r1ALPINE-CVE-2026-42945

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.