cve.bz

CVE-2026-42945 f5: Heap-based Buffer Overflow

9.2 criticalExploit referenceEPSS 68%Fix available

Critical (9.2) in f5. EPSS 68% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

9.2 critical
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
68% (unchanged from 68% a week ago; 3.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42945 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42945?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42945?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42945 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-42945

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-42945](https://cve.bz/cve/badge/CVE-2026-42945.svg)](https://cve.bz/cve/CVE-2026-42945)

HTML:

<a href="https://cve.bz/cve/CVE-2026-42945"><img src="https://cve.bz/cve/badge/CVE-2026-42945.svg" alt="CVE-2026-42945"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
F5 NGINX Plusfrom R36 before R36 P4
F5 NGINX Plusfrom R32 before R32 P6
F5 NGINX Open Sourcefrom 0.6.27 before 1.30.1

Fixed in

ProductFixed in
F5 NGINX PlusR37
F5 NGINX Open Source1.31.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12nginx1.22.1-9+deb12u7DEBIAN-CVE-2026-42945
Debian13nginx1.26.3-3+deb13u5DEBIAN-CVE-2026-42945
Debian14nginx1.30.0-3DEBIAN-CVE-2026-42945
Ubuntu22.04:LTSnginx1.18.0-6ubuntu14.11UBUNTU-CVE-2026-42945
Ubuntu24.04:LTSnginx1.24.0-2ubuntu7.8UBUNTU-CVE-2026-42945
Ubuntu25.10nginx1.28.0-6ubuntu1.3UBUNTU-CVE-2026-42945
Ubuntu26.04:LTSnginx1.28.3-2ubuntu1.1UBUNTU-CVE-2026-42945
UbuntuPro:14.04:LTSnginx1.4.6-1ubuntu3.9+esm6UBUNTU-CVE-2026-42945
UbuntuPro:16.04:LTSnginx1.10.3-0ubuntu0.16.04.5+esm7UBUNTU-CVE-2026-42945
UbuntuPro:18.04:LTSnginx1.14.0-0ubuntu1.11+esm2UBUNTU-CVE-2026-42945
UbuntuPro:20.04:LTSnginx1.18.0-0ubuntu1.7+esm1UBUNTU-CVE-2026-42945
Red Hatenterprise_linux:8::appstreamnginx, nginx-mod-mail, nginx-debuginfo and 13 more1:1.24.0-3.module+el8.10.0+24290+dc7f88b5.1RHSA-2026:18041
Red Hatenterprise_linux:9::appstreamnginx, nginx-core, nginx-mod-mail and 14 more2:1.20.1-24.el9_7.3RHSA-2026:18029
Red Hatenterprise_linux:9::appstreamnginx, nginx-core, nginx-mod-mail and 14 more2:1.20.1-28.el9_8.2RHSA-2026:19374
Red Hatenterprise_linux:9::appstreamnginx, nginx-core, nginx-mod-mail and 15 more1:1.24.0-7.module+el9.8.0+24289+833e4c02.1RHSA-2026:19371
Red Hatenterprise_linux:9::appstreamnginx, nginx-core, nginx-mod-mail and 15 more2:1.26.3-9.module+el9.8.0+24288+e2e6d896RHSA-2026:19372
Red Hatenterprise_linux:9::crbnginx-debuginfo, nginx-mod-devel, nginx-debugsource and 6 more2:1.20.1-24.el9_7.3RHSA-2026:18029
Red Hatenterprise_linux:9::crbnginx-debuginfo, nginx-mod-devel, nginx-debugsource and 6 more2:1.20.1-28.el9_8.2RHSA-2026:19374
Red Hatenterprise_linux:10.1nginx, nginx-core, nginx-mod-mail and 15 more2:1.26.3-2.el10_1.2RHSA-2026:18063
Red Hatenterprise_linux:10.2nginx, nginx-core, nginx-mod-mail and 15 more2:1.26.3-6.el10_2.3RHSA-2026:19159
Red Hatenterprise_linux_eus:10.0nginx, nginx-core, nginx-mod-mail and 7 more2:1.26.3-1.el10_0.9RHSA-2026:17790
Red Hathummingbird:1nginx, nginx-core, nginx-mod-mail and 9 more0:1.30.1-1.hum1RHSA-2026:17417
Red Hatrhel_e4s:9.0::appstreamnginx, nginx-mod-mail, nginx-filesystem and 5 more1:1.20.1-10.el9_0.4RHSA-2026:17791
8 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morenginx1.21.5-150400.3.20.1SUSE-SU-2026:2370-1
openSUSETumbleweednginx1.31.0-1.1openSUSE-SU-2026:10796-1
AlmaLinux8nginx, nginx-mod-mail, nginx-mod-devel and 6 more1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1ALSA-2026:18041
AlmaLinux9nginx, nginx-core, nginx-mod-mail and 7 more2:1.20.1-24.el9_7.3.alma.1ALSA-2026:18029
AlmaLinux9nginx, nginx-core, nginx-mod-mail and 7 more2:1.20.1-28.el9_8.2.alma.1ALSA-2026:19374
AlmaLinux9nginx-filesystem, nginx-all-modules1:1.24.0-7.module_el9.8.0+246+ef96a02d.1.alma.1ALSA-2026:19371
AlmaLinux9nginx-filesystem, nginx-all-modules2:1.26.3-9.module_el9.8.0+247+aa936373ALSA-2026:19372
AlmaLinux10nginx, nginx-core, nginx-mod-mail and 7 more2:1.26.3-6.el10_2.3ALSA-2026:19159
AlmaLinux10nginx-filesystem, nginx-all-modules2:1.26.3-2.el10_1.2ALSA-2026:18063
Rocky Linux8nginx1:1.24.0-3.module+el8.10.0+40144+38158758RLSA-2026:18041
Rocky Linux9nginx1:1.24.0-7.module+el9.8.0+40193+7b2d11e4.1.rocky.0.1RLSA-2026:19371
Rocky Linux9nginx2:1.20.1-24.el9_7.3.rocky.0.1RLSA-2026:18029
Rocky Linux9nginx2:1.20.1-28.el9_8.2.rocky.0.1RLSA-2026:19374
Rocky Linux9nginx2:1.26.3-9.module+el9.8.0+40194+40adfc1bRLSA-2026:19372
Rocky Linux10nginx2:1.26.3-2.el10_1.2RLSA-2026:18063
Rocky Linux10nginx2:1.26.3-6.el10_2.3RLSA-2026:19159
Alpinev3.21nginx1.26.3-r1ALPINE-CVE-2026-42945
Alpinev3.22, v3.23nginx1.28.3-r1ALPINE-CVE-2026-42945
Alpinev3.24nginx1.30.1-r0ALPINE-CVE-2026-42945
Azure Linux3nginx1.28.3-4AZL-86856
Alpaquita23nginx1.22.1-r5BELL-CVE-2026-42945
Alpaquita25nginx1.28.3-r2BELL-CVE-2026-42945
Alpaquitastreamnginx1.30.1-r0BELL-CVE-2026-42945

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

Critical: This flaw in NGINX's ngx_http_rewrite_module can lead to arbitrary code execution due to a heap buffer overflow if Address Space Layout Randomization (ASLR) is disabled, or a denial of service otherwise. Exploitation requires specific, non-default NGINX rewrite configurations involving unnamed PCRE captures and a question mark in the replacement string.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10nginx-2:1.26.3-2.el10_1.2Fixed 2026-05-18RHSA-2026:18063
Red Hat Enterprise Linux 10nginx-2:1.26.3-6.el10_2.3Fixed 2026-05-19RHSA-2026:19159
Red Hat Enterprise Linux 10.0 Extended Update Supportnginx-2:1.26.3-1.el10_0.9Fixed 2026-05-15RHSA-2026:17790
Red Hat Enterprise Linux 8nginx:1.24-8100020260514165201.489197e6Fixed 2026-05-18RHSA-2026:18041
Red Hat Enterprise Linux 9nginx-2:1.20.1-24.el9_7.3Fixed 2026-05-18RHSA-2026:18029
Red Hat Enterprise Linux 9nginx:1.24-9080020260514160836.9Fixed 2026-05-19RHSA-2026:19371
Red Hat Enterprise Linux 9nginx:1.26-9080020260514152324.9Fixed 2026-05-19RHSA-2026:19372
Red Hat Enterprise Linux 9nginx-2:1.20.1-28.el9_8.2Fixed 2026-05-19RHSA-2026:19374
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsnginx-1:1.20.1-10.el9_0.4Fixed 2026-05-15RHSA-2026:17791
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsnginx-1:1.20.1-14.el9_2.6Fixed 2026-05-15RHSA-2026:17751
Red Hat Enterprise Linux 9.4 Extended Update Supportnginx-1:1.20.1-16.el9_4.6Fixed 2026-05-15RHSA-2026:17792
Red Hat Enterprise Linux 9.4 Extended Update Supportnginx:1.24-9040020260514192210.9Fixed 2026-05-15RHSA-2026:17793
Red Hat Enterprise Linux 9.6 Extended Update Supportnginx:1.24-9060020260514175739.9Fixed 2026-05-15RHSA-2026:17752
Red Hat Enterprise Linux 9.6 Extended Update Supportnginx:1.26-9060020260514170123.9Fixed 2026-05-15RHSA-2026:17753
Red Hat Enterprise Linux 9.6 Extended Update Supportnginx-2:1.20.1-22.el9_6.6Fixed 2026-05-15RHSA-2026:17794
Red Hat Hardened Imagesnginx-main-1.30.1-1.hum1Fixed 2026-05-14RHSA-2026:17417
Red Hat Openshift Data Foundation 4.14odf4/ocs-client-console-rhel9:1779972138Fixed 2026-06-02RHSA-2026:22396
Red Hat Openshift Data Foundation 4.14odf4/odf-console-rhel9:1779972283Fixed 2026-06-02RHSA-2026:22396
Red Hat 3scale API Management Platform 23scale-amp2/apicast-gateway-rhel8Not affected
Red Hat Lightspeed proxy 1insights-proxy/insights-proxy-container-rhel9Not affected
28 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42945.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-188-03Hitachi Energy e-mesh EMS2026-06-30Energye-mesh EMS versions 4.1.6, e-mesh EMS versions 4.4.2, e-mesh EMS versions 4.7.0none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

35 more

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High
  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON