CVE-2026-42945
CVE-2026-42945 · NGINX ngx_http_rewrite_module vulnerability
This page contains facts from public vulnerability sources. Check the original advisory before updating.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
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.
CVSS 9.2 · Critical · EPSS 3.4% · Public exploit · Fix available
- Published
- Updated
Affected products and versions
nginx plus
- Versions
- ≥ R37: Not affected (custom)
- ≥ R36, < R36 P4: Affected (custom)
- ≥ R32, < R32 P6: Affected (custom)
No fix published
nginx
- Versions
- ≥ 1.31.0: Not affected (semver)
- ≥ 0.6.27, < 1.30.1: Affected (semver)
Update to 1.30.1
nginx Debian:12
- Versions
- 1.22.1-9
- 1.22.1-9+deb12u1
- 1.22.1-9+deb12u2
- 1.22.1-9+deb12u3
- 1.22.1-9+deb12u4
- 1.22.1-9+deb12u5
- 1.22.1-9+deb12u6
- Affected ranges
- ECOSYSTEM: < 1.22.1-9+deb12u7
Update to 1.22.1-9+deb12u7
nginx Debian:13
- Versions
- 1.26.3-3
- 1.26.3-3+deb13u1
- 1.26.3-3+deb13u2
- 1.26.3-3+deb13u3
- 1.26.3-3+deb13u4
- Affected ranges
- ECOSYSTEM: < 1.26.3-3+deb13u5
Update to 1.26.3-3+deb13u5
nginx Debian:14
- Versions
- 1.26.3-3
- 1.28.0-1
- 1.28.0-2
- 1.28.0-3
- 1.28.0-4
- 1.28.0-5
- 1.28.0-6
- 1.28.1-1
- 1.28.1-2
- 1.28.1-3
- 1.28.2-1
- 1.28.2-2
- 1.28.2-3
- 1.28.2-4
- 1.28.3-1
- 1.28.3-2
- 1.30.0-1
- 1.30.0-2
- Affected ranges
- ECOSYSTEM: < 1.30.0-3
Update to 1.30.0-3
nginx Ubuntu:Pro:14.04:LTS
- Versions
- 1.4.1-3ubuntu1
- 1.4.3-2ubuntu1
- 1.4.4-1ubuntu1
- 1.4.4-2ubuntu1
- 1.4.4-4ubuntu1
- 1.4.5-1ubuntu1
- 1.4.6-1ubuntu2
- 1.4.6-1ubuntu3
- 1.4.6-1ubuntu3.1
- 1.4.6-1ubuntu3.2
- 1.4.6-1ubuntu3.3
- 1.4.6-1ubuntu3.4
- 1.4.6-1ubuntu3.5
- 1.4.6-1ubuntu3.6
- 1.4.6-1ubuntu3.7
- 1.4.6-1ubuntu3.8
- 1.4.6-1ubuntu3.9
- 1.4.6-1ubuntu3.9+esm1
- 1.4.6-1ubuntu3.9+esm2
- 1.4.6-1ubuntu3.9+esm3
- 1.4.6-1ubuntu3.9+esm4
- 1.4.6-1ubuntu3.9+esm5
- Affected ranges
- ECOSYSTEM: < 1.4.6-1ubuntu3.9+esm6
Update to 1.4.6-1ubuntu3.9+esm6
nginx Ubuntu:Pro:16.04:LTS
- Versions
- 1.9.3-1ubuntu1
- 1.9.6-2ubuntu1
- 1.9.6-2ubuntu2
- 1.9.9-0ubuntu1
- 1.9.9-1ubuntu1
- 1.9.10-0ubuntu1
- 1.9.10-1ubuntu1
- 1.9.11-0ubuntu1
- 1.9.11-0ubuntu2
- 1.9.12-0ubuntu1
- 1.9.13-0ubuntu1
- 1.9.14-0ubuntu1
- 1.9.15-0ubuntu1
- 1.10.0-0ubuntu0.16.04.1
- 1.10.0-0ubuntu0.16.04.2
- 1.10.0-0ubuntu0.16.04.3
- 1.10.0-0ubuntu0.16.04.4
- 1.10.3-0ubuntu0.16.04.1
- 1.10.3-0ubuntu0.16.04.2
- 1.10.3-0ubuntu0.16.04.3
- 1.10.3-0ubuntu0.16.04.4
- 1.10.3-0ubuntu0.16.04.5
- 1.10.3-0ubuntu0.16.04.5+esm1
- 1.10.3-0ubuntu0.16.04.5+esm2
- 1.10.3-0ubuntu0.16.04.5+esm3
- 1.10.3-0ubuntu0.16.04.5+esm4
- 1.10.3-0ubuntu0.16.04.5+esm5
- 1.10.3-0ubuntu0.16.04.5+esm6
- Affected ranges
- ECOSYSTEM: < 1.10.3-0ubuntu0.16.04.5+esm7
Update to 1.10.3-0ubuntu0.16.04.5+esm7
nginx Ubuntu:Pro:18.04:LTS
- Versions
- 1.12.1-0ubuntu2
- 1.13.6-2ubuntu1
- 1.13.6-2ubuntu2
- 1.13.10-1ubuntu1
- 1.13.12-0ubuntu1
- 1.14.0-0ubuntu1
- 1.14.0-0ubuntu1.1
- 1.14.0-0ubuntu1.2
- 1.14.0-0ubuntu1.3
- 1.14.0-0ubuntu1.4
- 1.14.0-0ubuntu1.5
- 1.14.0-0ubuntu1.6
- 1.14.0-0ubuntu1.7
- 1.14.0-0ubuntu1.9
- 1.14.0-0ubuntu1.10
- 1.14.0-0ubuntu1.11
- 1.14.0-0ubuntu1.11+esm1
- Affected ranges
- ECOSYSTEM: < 1.14.0-0ubuntu1.11+esm2
Update to 1.14.0-0ubuntu1.11+esm2
nginx Ubuntu:Pro:20.04:LTS
- Versions
- 1.16.1-0ubuntu2
- 1.16.1-0ubuntu3
- 1.17.5-0ubuntu1
- 1.17.6-0ubuntu1
- 1.17.7-0ubuntu1
- 1.17.8-0ubuntu1
- 1.17.8-0ubuntu2
- 1.17.8-0ubuntu3
- 1.17.9-0ubuntu1
- 1.17.9-0ubuntu2
- 1.17.9-0ubuntu3
- 1.17.10-0ubuntu1
- 1.18.0-0ubuntu1
- 1.18.0-0ubuntu1.2
- 1.18.0-0ubuntu1.3
- 1.18.0-0ubuntu1.4
- 1.18.0-0ubuntu1.5
- 1.18.0-0ubuntu1.6
- 1.18.0-0ubuntu1.7
- Affected ranges
- ECOSYSTEM: < 1.18.0-0ubuntu1.7+esm1
Update to 1.18.0-0ubuntu1.7+esm1
nginx Ubuntu:22.04:LTS
- Versions
- 1.18.0-6ubuntu11
- 1.18.0-6ubuntu12
- 1.18.0-6ubuntu14
- 1.18.0-6ubuntu14.1
- 1.18.0-6ubuntu14.2
- 1.18.0-6ubuntu14.3
- 1.18.0-6ubuntu14.4
- 1.18.0-6ubuntu14.5
- 1.18.0-6ubuntu14.6
- 1.18.0-6ubuntu14.7
- 1.18.0-6ubuntu14.8
- 1.18.0-6ubuntu14.10
- Affected ranges
- ECOSYSTEM: < 1.18.0-6ubuntu14.11
Update to 1.18.0-6ubuntu14.11
nginx Ubuntu:24.04:LTS
- Versions
- 1.24.0-1ubuntu1
- 1.24.0-2ubuntu1
- 1.24.0-2ubuntu2
- 1.24.0-2ubuntu3
- 1.24.0-2ubuntu4
- 1.24.0-2ubuntu6
- 1.24.0-2ubuntu7
- 1.24.0-2ubuntu7.1
- 1.24.0-2ubuntu7.3
- 1.24.0-2ubuntu7.4
- 1.24.0-2ubuntu7.5
- 1.24.0-2ubuntu7.6
- 1.24.0-2ubuntu7.7
- Affected ranges
- ECOSYSTEM: < 1.24.0-2ubuntu7.8
Update to 1.24.0-2ubuntu7.8
nginx Ubuntu:25.10
- Versions
- 1.26.3-2ubuntu1
- 1.26.3-3ubuntu1
- 1.26.3-3ubuntu2
- 1.26.3-3ubuntu3
- 1.28.0-3ubuntu1
- 1.28.0-4ubuntu1
- 1.28.0-6ubuntu1
- 1.28.0-6ubuntu1.1
- 1.28.0-6ubuntu1.2
- Affected ranges
- ECOSYSTEM: < 1.28.0-6ubuntu1.3
Update to 1.28.0-6ubuntu1.3
nginx Ubuntu:26.04:LTS
- Versions
- 1.28.0-6ubuntu1
- 1.28.1-2ubuntu1
- 1.28.1-3ubuntu1
- 1.28.2-2ubuntu1
- 1.28.3-2ubuntu1
- Affected ranges
- ECOSYSTEM: < 1.28.3-2ubuntu1.1
Update to 1.28.3-2ubuntu1.1
Original sources
- https://my.f5.com/manage/s/article/K000161019
- https://depthfirst.com/nginx-rift
- https://github.com/DepthFirstDisclosures/Nginx-Rift
- https://access.redhat.com/security/cve/CVE-2026-42945
- https://bugzilla.redhat.com/show_bug.cgi?id=2477116
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.json
- https://access.redhat.com/errata/RHSA-2026:17790
- https://access.redhat.com/errata/RHSA-2026:18063
- https://access.redhat.com/errata/RHSA-2026:19159
- https://access.redhat.com/errata/RHSA-2026:18041
- https://access.redhat.com/errata/RHSA-2026:17791
- https://access.redhat.com/errata/RHSA-2026:17751
- https://access.redhat.com/errata/RHSA-2026:17792
- https://access.redhat.com/errata/RHSA-2026:17793
- https://access.redhat.com/errata/RHSA-2026:17752
- https://access.redhat.com/errata/RHSA-2026:17794
- https://access.redhat.com/errata/RHSA-2026:17753
- https://access.redhat.com/errata/RHSA-2026:18029
- https://access.redhat.com/errata/RHSA-2026:19371
- https://access.redhat.com/errata/RHSA-2026:19374
- https://access.redhat.com/errata/RHSA-2026:19372
- https://access.redhat.com/errata/RHSA-2026:17417
- https://access.redhat.com/errata/RHSA-2026:22396
- https://nvd.nist.gov/vuln/detail/CVE-2026-42945