Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-42945

nginx: NGINX: Arbitrary Code Execution Vulnerability

Overview

Published
13 May 2026
Modified
26 Oct 2026
Critical CVE
2 Registry packages
30 OS packages
18 Linux distributions
Yes Fix available

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

Packages affected by CVE-2026-42945
EcosystemPackageVulnerableFixed 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

fixed 1
nginx
Azure Linux fixes for CVE-2026-42945
ReleasePackageFixed in
3.0 nginx 0:1.28.3-2.azl3

Oracle Linux 2 releases · 1 package

fixed 2
nginx
Oracle Linux fixes for CVE-2026-42945
ReleasePackageFixed 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

fixed 1
nginx
Photon OS fixes for CVE-2026-42945
ReleasePackageFixed in
4.0 nginx 1.26.3-3.ph4

Red Hat 4 releases · 1 package

fixed 12
nginx
Red Hat fixes for CVE-2026-42945
ReleasePackageFixed inAdvisory
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

fixed 5
nginx
SUSE Linux Enterprise fixes for CVE-2026-42945
ReleasePackageFixed inAdvisory
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

fixed 5
nginx-all-modules nginx
alma fixes for CVE-2026-42945
ReleasePackageFixed 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

fixed 4
nginx
alpine fixes for CVE-2026-42945
ReleasePackageFixed 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

fixed 1
nginx
amazon linux fixes for CVE-2026-42945
ReleasePackageFixed in
2023 nginx +17 1:1.30.1-1.amzn2023.0.1

chainguard 1 release · 6 packages

fixed 6
ingress-nginx-controller-1-13 ingress-nginx-controller-1-14 ingress-nginx-controller-fips-1-14 ingress-nginx-controller-1-15 nginx-stable nginx-mainline
chainguard fixes for CVE-2026-42945
ReleasePackageFixed 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

fixed 4
nginx
debian fixes for CVE-2026-42945
ReleasePackageFixed 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

fixed 3
nginx nginx-1-30 nginx-1-31
echo fixes for CVE-2026-42945
ReleasePackageFixed in
nginx 1.22.1-9+deb12u7
nginx-1-30 1.30.1
nginx-1-31 1.31.0

minimos 1 release · 1 package

fixed 1
nginx-1-30
minimos fixes for CVE-2026-42945
ReleasePackageFixed in
nginx-1-30 1.30.1-r0

openSUSE 1 release · 1 package

fixed 1
nginx
openSUSE fixes for CVE-2026-42945
ReleasePackageFixed inAdvisory
Tumbleweed nginx +1 1.31.0-1.1 openSUSE-SU-2026:10796-1

openSUSE Leap 1 release · 1 package

fixed 1
nginx
openSUSE Leap fixes for CVE-2026-42945
ReleasePackageFixed inAdvisory
16.0 nginx +1 1.27.2-160000.4.1 openSUSE-SU-2026:20796-1

rocky 5 releases · 1 package

fixed 8
nginx
rocky fixes for CVE-2026-42945
ReleasePackageFixed 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

fixed 1
rootio-nginx
root.io debian fixes for CVE-2026-42945
ReleasePackageFixed in
12 rootio-nginx 1.22.1-9+deb12u7

ubuntu 5 releases · 1 package

fixed 5
nginx
ubuntu fixes for CVE-2026-42945
ReleasePackageFixed 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

fixed 3
ingress-nginx-controller-1-15 nginx-stable nginx-mainline
wolfi fixes for CVE-2026-42945
ReleasePackageFixed in
ingress-nginx-controller-1-15 1.15.5-r1
nginx-stable 1.30.1-r0
nginx-mainline 1.31.0-r0

References

Show all 48 references

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.