CVE-2026-42945
nginx: NGINX: Arbitrary Code Execution Vulnerability
Overview
Description
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.
Source: OX vulnerability database
Severity
8.1 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-122, CWE-131
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | nginx | >=0.6.27, <1.30.1 | 1.30.1 |
| Bitnami | nginx-gateway | >=0.6.27, <1.30.1 | 1.30.1 |
Open a package to see all its vulnerabilities.
Operating systems · 64 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nginx | 0:1.28.3-2.azl3 |
Oracle Linux 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | nginx +8 | 1:1.24.0-3.0.1.module+el8.10.0+90893+b2195e14.1 |
| 9 | nginx +9 | 2:1.26.3-9.0.1.module+el9.8.0+90902+e2e6d896 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nginx | 1.26.3-3.ph4 |
Red Hat 4 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1 | RHSA-2026:18041 |
| 9 | nginx +7 | 1:1.20.1-10.el9_0.4 | RHSA-2026:17791 |
| 9 | nginx +8 | 1:1.20.1-14.el9_2.6 | RHSA-2026:17751 |
| 9 | nginx +9 | 1:1.20.1-16.el9_4.6 | RHSA-2026:17792 |
| 9 | nginx +9 | 2:1.20.1-22.el9_6.6 | RHSA-2026:17794 |
| 9 | nginx +9 | 2:1.20.1-24.el9_7.3 | RHSA-2026:18029 |
6 more rows
SUSE Linux Enterprise 5 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | nginx +1 | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| 15.5 | nginx +1 | 1.21.5-150400.3.20.1 | SUSE-SU-2026:2370-1 |
| 15.6 | nginx +1 | 1.21.5-150600.10.18.1 | SUSE-SU-2026:2050-1 |
| 15.7 | nginx +1 | 1.21.5-150600.10.18.1 | SUSE-SU-2026:2050-1 |
| 16.0 | nginx +1 | 1.27.2-160000.4.1 | SUSE-SU-2026:21832-1 |
alma 5 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nginx-all-modules +1 | 2:1.26.3-2.el10_1.2 |
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1 |
| 9 | nginx +9 | 2:1.20.1-28.el9_8.2.alma.1 |
| 9 (nginx:1.24) | nginx-all-modules +1 | 1:1.24.0-7.module_el9.8.0+246+ef96a02d.1.alma.1 |
| 9 (nginx:1.26) | nginx-all-modules +1 | 2:1.26.3-9.module_el9.8.0+247+aa936373 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nginx | 1.28.3-r1 |
| 3.23 | nginx | 1.28.3-r1 |
| 3.24 | nginx | 1.30.1-r0 |
| edge | nginx | 1.30.1-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nginx +17 | 1:1.30.1-1.amzn2023.0.1 |
chainguard 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| ingress-nginx-controller-1-13 +1 | 1.13.9-r9 | |
| ingress-nginx-controller-1-14 | 1.14.5-r12 | |
| ingress-nginx-controller-fips-1-14 | 1.14.5-r9 | |
| ingress-nginx-controller-1-15 +1 | 1.15.5-r1 | |
| nginx-stable | 1.30.1-r0 | |
| nginx-mainline | 1.31.0-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nginx | 1.18.0-6.1+deb11u6 |
| 12 | nginx | 1.22.1-9+deb12u7 |
| 13 | nginx | 1.26.3-3+deb13u5 |
| 14 | nginx | 1.30.0-3 |
echo 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| nginx | 1.22.1-9+deb12u7 | |
| nginx-1-30 | 1.30.1 | |
| nginx-1-31 | 1.31.0 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nginx-1-30 | 1.30.1-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | nginx +1 | 1.31.0-1.1 | openSUSE-SU-2026:10796-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | nginx +1 | 1.27.2-160000.4.1 | openSUSE-SU-2026:20796-1 |
rocky 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | nginx +8 | 2:1.26.3-2.el10_1.2 |
| 10 | nginx +8 | 2:1.26.3-6.el10_2.3 |
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module+el8.10.0+40144+38158758 |
| 8 (nginx:1.24) | nginx +8 | 1:1.24.0-3.module+el8.10.0+40187+52bedf24.1 |
| 9 | nginx +8 | 2:1.20.1-24.el9_7.3.rocky.0.1 |
| 9 | nginx +8 | 2:1.20.1-28.el9_8.2.rocky.0.1 |
2 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-nginx | 1.22.1-9+deb12u7 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | nginx | 1.14.0-0ubuntu1.11+esm2 |
| 20.04-ESM | nginx | 1.18.0-0ubuntu1.7+esm1 |
| 22.04 | nginx | 1.18.0-6ubuntu14.11 |
| 24.04 | nginx | 1.24.0-2ubuntu7.8 |
| 26.04 | nginx | 1.28.3-2ubuntu1.1 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| ingress-nginx-controller-1-15 | 1.15.5-r1 | |
| nginx-stable | 1.30.1-r0 | |
| nginx-mainline | 1.31.0-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17417
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17751
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17752
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17753
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17790
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17791
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17792
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17793
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:17794
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:18029
Show all 48 references
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:18041
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:18063
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:19159
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:19371
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:19372
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:19374
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:20442
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:20444
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:21275
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22382
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22383
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22388
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22389
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22390
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22393
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22394
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22396
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:58981
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-42945
- bugzilla.redhat.com https://bugzilla.redhat.com/2477116
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2477116
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42945
- depthfirst.com https://depthfirst.com/nginx-rift
- depthfirst.com https://depthfirst.com/research/nginx-rift-achieving-nginx-rce-via-an-18-year-old-vulnerability
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-19374.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:18041
- github.com https://github.com/DepthFirstDisclosures/Nginx-Rift
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-42945.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-19374.html
- my.f5.com https://my.f5.com/manage/s/article/K000161019
- nginx.org https://nginx.org/en/security_advisories.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-42945
- security.access.redhat.com https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.json
- ubuntu.com https://ubuntu.com/security/notices/USN-8271-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8375-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-42945
- www.openwall.com https://www.openwall.com/lists/oss-security/2026/05/13/7
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.