NGINX Plus: Heap-based Buffer Overflow
CVE-2026-42945 is a high-severity heap-based buffer overflow vulnerability in NGINX Plus from F5, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions R36 P4, R32 P6 as the first without the flaw, so updating NGINX Plus to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 68% chance of exploitation within 30 days, which is in the top 0.66% of all scored CVEs.
Exploitation in the next 30 days is more likely than not, according to EPSS.
What to do
- Update NGINX Plus to R36 P4 or R32 P6, whichever matches your release line, or a later version.
- Update NGINX Open Source to 1.30.1 or a later version.
- Read the advisory on my.f5.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| F5 | NGINX Plus | R36 up to, but not including, R36 P4; R32 up to, but not including, R32 P6 | R36 P4, R32 P6 |
| F5 | NGINX Open Source | 0.6.27 up to, but not including, 1.30.1 | 1.30.1 |
| Red Hat | Red Hat Enterprise Linux 10 | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8 | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9 | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Hardened Images | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.14 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.15 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.16 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.17 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.18 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.19 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.20 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.21 | Not specified in the record | Not stated |
| Red Hat | Red Hat Satellite 6.18 | Not specified in the record | Not stated |
| Red Hat | Red Hat Satellite 6.19 | Not specified in the record | Not stated |
| Red Hat | Red Hat Update Infrastructure 5 | Not specified in the record | Not stated |
| Red Hat | Red Hat 3scale API Management Platform 2 | Not specified in the record | Not stated |
| Red Hat | Red Hat Lightspeed proxy 1 | Not specified in the record | Not stated |
| F5 | Dos | 4.3.0 through 4.7.0; 4.8.0 | Not stated |
Version data comes from the organisation that assigned the CVE; 4 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- HighSuccess depends on conditions outside the attacker's control.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by CNA (f5.com).
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 4.0 | 9.2 | Critical | CNA (f5.com) |
| CVSS 3.1 | 8.1 | High | CNA (f5.com) |
| CVSS 3.1 | 8.1 | High | CNA |
Official 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: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Heap-based Buffer Overflow
The product writes past the end of a buffer that was allocated on the heap.
How developers prevent this class of flaw
- Pre-design: Use a language or compiler that performs automatic bounds checking.
- Use an abstraction library to abstract away risky APIs. Not a complete solution.
- Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND discusses canary-based detection in detail.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- my.f5.com/manage/s/article/K000161019Mitigation
Patches and release notes
- depthfirst.com/nginx-riftMitigation, Technical Description, Third Party Advisory
Technical write-ups (may include proof of concept)
- github.com/DepthFirstDisclosures/Nginx-RiftExploit, Third Party Advisory
Other references
- access.redhat.com/errata/RHSA-2026:17417
- access.redhat.com/errata/RHSA-2026:17751
- access.redhat.com/errata/RHSA-2026:17752
- access.redhat.com/errata/RHSA-2026:17753
- access.redhat.com/errata/RHSA-2026:17790
- access.redhat.com/errata/RHSA-2026:17791
- access.redhat.com/errata/RHSA-2026:17792
- access.redhat.com/errata/RHSA-2026:17793
- access.redhat.com/errata/RHSA-2026:17794
- access.redhat.com/errata/RHSA-2026:18029
- access.redhat.com/errata/RHSA-2026:18041
- access.redhat.com/errata/RHSA-2026:18063
- access.redhat.com/errata/RHSA-2026:19159
- access.redhat.com/errata/RHSA-2026:19371
- access.redhat.com/errata/RHSA-2026:19372
Other vulnerabilities in NGINX Plus
- 8.1 High severity
- 8.1 High severity
- 8.1 High severity
- 8.2 High severity
- 8.1 High severity
- 8.1 High severity
Recent Heap-based Buffer Overflow vulnerabilities
- 9.8 Critical severity
- 8.8 High severity
- 7.5 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.