VDB

CVE-2026-42945

CVE-2026-42945 PUBLISHED CVSS 8.1 HIGH

NGINX ngx_http_rewrite_module vulnerability

Reported by f5 · Published May 13, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nginx-filesystemerrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-mod-http-image-filtererrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-mod-http-image-filter-debuginfoerrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-mod-mailerrata.rockylinux.org1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-3.module
nginx-mod-stream-debuginfoerrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-all-moduleserrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-core-debuginfoerrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9
ingress-nginx-controller-1.13Chainguard1.13.9-r9
nginx-debugsourceerrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-coreerrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-mod-http-xslt-filtererrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9
nginx-mod-streamerrata.rockylinux.org1.26.3-9.module, 1.26.3-6.el10, 1.26.3-2.el10, 1.24.0-7.module, 1.24.0-3.module, 1.20.1-28.el9, 1.20.1-24.el9

17 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
F5NGINX PlusR37, R36, R32
F5NGINX Open Source1.31.0, 0.6.27
Red HatRed Hat Enterprise Linux 99080020260514152324.9
Red HatRed Hat 3scale API Management Platform 2
Red HatRed Hat Openshift Data Foundation 4.21779879463
Red HatRed Hat Openshift Data Foundation 4.151779968303
Red HatRed Hat Update Infrastructure 51787241260
F5NGINX Plus*, *, *
Red HatRed Hat Satellite 6.18
chainguardingress-nginx-controller-1.130
Red HatRed Hat Enterprise Linux 99080020260514160836.9
Red HatRed Hat Enterprise Linux AppStream (v. 9)
Red HatRed Hat Enterprise Linux AppStream (v. 10)
amazon:2023nginx-core0
chainguardnginx-mainline0
Red HatRed Hat Update Infrastructure 5
Red HatRed Hat Satellite 6.19
Red HatRed Hat Openshift Data Foundation 4.191779881012
Red HatRed Hat Openshift Data Foundation 4.141779972179
Red HatRed Hat Enterprise Linux 9.4 Extended Update Support9040020260514192210.9

…and 84 more

Timeline

  • May 12, 2026 VulnCheck XDB Entry (25 in total, the first dated here)
  • May 13, 2026 CVE Published
  • May 13, 2026 PoC Published (43 in total, the first dated here)
  • May 15, 2026 Security Advisory (35 in total, the first dated here)
  • May 16, 2026 VulnCheck KEV Exploitation (2 in total, the first dated here)
  • May 16, 2026 Distribution Patch (40 in total, the first dated here)
  • May 18, 2026 EPSS Score (23 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-42945
vulnetix vdb fixes CVE-2026-42945

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42945/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›