CVE-2026-42945NGINX ngx_http_rewrite_module vulnerability
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | nginx | Fixed | 1.28.3-2ubuntu1.1 | UBUNTU-CVE-2026-42945 |
| Ubuntu 25.10 | nginx | Fixed | 1.28.0-6ubuntu1.3 | UBUNTU-CVE-2026-42945 |
| Ubuntu 24.04 | nginx | Fixed | 1.24.0-2ubuntu7.8 | UBUNTU-CVE-2026-42945 |
| Ubuntu 22.04 | nginx | Fixed | 1.18.0-6ubuntu14.11 | UBUNTU-CVE-2026-42945 |
| Ubuntu 20.04 | nginx | Fix pending | 1.18.0-0ubuntu1.7+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-42945 |
| Ubuntu 18.04 | nginx | Fix pending | 1.14.0-0ubuntu1.11+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-42945 |
| Ubuntu 16.04 | nginx | Fix pending | 1.10.3-0ubuntu0.16.04.5+esm7 (Ubuntu Pro) | UBUNTU-CVE-2026-42945 |
| Ubuntu 14.04 | nginx | Fix pending | 1.4.6-1ubuntu3.9+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-42945 |
| Debian 14 | nginx | Fixed | 1.30.0-3 | DEBIAN-CVE-2026-42945 |
| Debian 13 | nginx | Fixed | 1.26.3-3+deb13u5 | DEBIAN-CVE-2026-42945 |
| Debian 12 | nginx | Fixed | 1.22.1-9+deb12u7 | DEBIAN-CVE-2026-42945 |
| Red Hat Enterprise Linux 10 | nginx | Fixed | 2:1.26.3-2.el10_1.2 | RHSA-2026:19159 |
| Red Hat Enterprise Linux 10 | nginx-all-modules | Fixed | 2:1.26.3-2.el10_1.2 | RHSA-2026:19159 |
| Red Hat Enterprise Linux 10 | nginx-core | Fixed | 2:1.26.3-6.el10_2.3 | RHSA-2026:18063 |
| Red Hat Enterprise Linux 10 | nginx-filesystem | Fixed | 2:1.26.3-6.el10_2.3 | RHSA-2026:18063 |
| Red Hat Enterprise Linux 10 | nginx-mod-devel | Fixed | 2:1.26.3-6.el10_2.3 | RHSA-2026:18063 |
| Red Hat Enterprise Linux 10 | nginx-mod-http-image-filter | Fixed | 2:1.26.3-2.el10_1.2 | RHSA-2026:19159 |
| Red Hat Enterprise Linux 10 | nginx-mod-http-perl | Fixed | 2:1.26.3-2.el10_1.2 | RHSA-2026:19159 |
| Red Hat Enterprise Linux 10 | nginx-mod-http-xslt-filter | Fixed | 2:1.26.3-6.el10_2.3 | RHSA-2026:18063 |
| Red Hat Enterprise Linux 10 | nginx-mod-mail | Fixed | 2:1.26.3-2.el10_1.2 | RHSA-2026:19159 |
| Red Hat Enterprise Linux 10 | nginx-mod-stream | Fixed | 2:1.26.3-2.el10_1.2 | RHSA-2026:19159 |
| Red Hat Enterprise Linux 9 | nginx | Fixed | 2:1.20.1-28.el9_8.2 | RHSA-2026:19371 |
| Red Hat Enterprise Linux 9 | nginx-all-modules | Fixed | 2:1.20.1-24.el9_7.3 | RHSA-2026:19374 |
| Red Hat Enterprise Linux 9 | nginx-core | Fixed | 2:1.26.3-9.module+el9.8.0+24288+e2e6d896 | RHSA-2026:19374 |
| Red Hat Enterprise Linux 9 | nginx-filesystem | Fixed | 2:1.26.3-9.module+el9.8.0+24288+e2e6d896 | RHSA-2026:18029 |
| Red Hat Enterprise Linux 9 | nginx-mod-devel | Fixed | 2:1.20.1-24.el9_7.3 | RHSA-2026:19372 |
| Red Hat Enterprise Linux 9 | nginx-mod-http-image-filter | Fixed | 2:1.26.3-9.module+el9.8.0+24288+e2e6d896 | RHSA-2026:18029 |
| Red Hat Enterprise Linux 9 | nginx-mod-http-perl | Fixed | 1:1.24.0-7.module+el9.8.0+24289+833e4c02.1 | RHSA-2026:19372 |
| Red Hat Enterprise Linux 9 | nginx-mod-http-xslt-filter | Fixed | 2:1.20.1-28.el9_8.2 | RHSA-2026:19372 |
| Red Hat Enterprise Linux 9 | nginx-mod-mail | Fixed | 2:1.20.1-28.el9_8.2 | RHSA-2026:18029 |
| Red Hat Enterprise Linux 9 | nginx-mod-stream | Fixed | 2:1.26.3-9.module+el9.8.0+24288+e2e6d896 | RHSA-2026:19371 |
| Red Hat Enterprise Linux 8 | nginx | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-all-modules | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-filesystem | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-mod-devel | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-mod-http-image-filter | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-mod-http-perl | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-mod-http-xslt-filter | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-mod-mail | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| Red Hat Enterprise Linux 8 | nginx-mod-stream | Fixed | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| AlmaLinux 10 | nginx | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-all-modules | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:18063 |
| AlmaLinux 10 | nginx-core | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-filesystem | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:18063 |
| AlmaLinux 10 | nginx-mod-devel | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-mod-http-image-filter | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-mod-http-perl | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-mod-http-xslt-filter | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-mod-mail | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 10 | nginx-mod-stream | Fixed | 2:1.26.3-6.el10_2.3 | ALSA-2026:19159 |
| AlmaLinux 9 | nginx | Fixed | 2:1.20.1-28.el9_8.2.alma.1 | ALSA-2026:18029 |
| AlmaLinux 9 | nginx-all-modules | Fixed | 2:1.20.1-24.el9_7.3.alma.1 | ALSA-2026:19372 |
| AlmaLinux 9 | nginx-core | Fixed | 2:1.20.1-24.el9_7.3.alma.1 | ALSA-2026:19374 |
| AlmaLinux 9 | nginx-filesystem | Fixed | 2:1.26.3-9.module_el9.8.0+247+aa936373 | ALSA-2026:19374 |
| AlmaLinux 9 | nginx-mod-devel | Fixed | 2:1.20.1-24.el9_7.3.alma.1 | ALSA-2026:19374 |
| AlmaLinux 9 | nginx-mod-http-image-filter | Fixed | 2:1.20.1-28.el9_8.2.alma.1 | ALSA-2026:18029 |
| AlmaLinux 9 | nginx-mod-http-perl | Fixed | 2:1.20.1-28.el9_8.2.alma.1 | ALSA-2026:18029 |
| AlmaLinux 9 | nginx-mod-http-xslt-filter | Fixed | 2:1.20.1-24.el9_7.3.alma.1 | ALSA-2026:19374 |
| AlmaLinux 9 | nginx-mod-mail | Fixed | 2:1.20.1-28.el9_8.2.alma.1 | ALSA-2026:18029 |
| AlmaLinux 9 | nginx-mod-stream | Fixed | 2:1.20.1-28.el9_8.2.alma.1 | ALSA-2026:18029 |
| AlmaLinux 8 | nginx | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-all-modules | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-filesystem | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-mod-devel | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-mod-http-image-filter | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-mod-http-perl | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-mod-http-xslt-filter | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-mod-mail | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| AlmaLinux 8 | nginx-mod-stream | Fixed | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 | ALSA-2026:18041 |
| Rocky Linux 10 | nginx | Fixed | 2:1.26.3-2.el10_1.2 | RLSA-2026:19159 |
| Rocky Linux 9 | nginx | Fixed | 2:1.20.1-28.el9_8.2.rocky.0.1 | RLSA-2026:18029 |
| Rocky Linux 8 | nginx | Fixed | 1:1.24.0-3.module+el8.10.0+40144+38158758 | RLSA-2026:18041 |
| Alpine Linux 3.24 | nginx | Fixed | 1.30.1-r0 | ALPINE-CVE-2026-42945 |
| Alpine Linux 3.23 | nginx | Fixed | 1.28.3-r1 | ALPINE-CVE-2026-42945 |
| Alpine Linux 3.22 | nginx | Fixed | 1.28.3-r1 | ALPINE-CVE-2026-42945 |
| Alpine Linux 3.21 | nginx | Fixed | 1.26.3-r1 | ALPINE-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.
- F5 NGINX Plus: affected: R36 to before R36 P4, R32 to before R32 P6
- F5 NGINX Open Source: affected: 0.6.27 to before 1.30.1; fixed in
1.30.1
Vendor advisories:
- https://my.f5.com/manage/s/article/K000161019 (patch, vendor-advisory)
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.