Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify NGINX endpoint with vulnerable rewrite rule
-
DeliveryCraft HTTP request matching overlapping-capture pattern
-
ExploitTrigger heap overflow in ngx_http_rewrite_module
-
ExecutionCorrupt worker process heap
-
PersistCrash worker (DoS) or hijack control flow
-
ImpactExecute code in worker context when ASLR absent
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target NGINX configuration to contain a rewrite directive whose PCRE pattern uses distinct overlapping captures (e.g., ^/((.*))$) and whose replacement string references multiple such captures (e.g., $1$2) within a redirect or arguments context - this is a non-default configuration choice that the attacker cannot influence, which is precisely why the CVSS 4.0 vector carries AC:H and AT:P. No authentication or user interaction is required (PR:N/UI:N), and the attack is delivered over the network as ordinary HTTP. Reliable arbitrary code execution further depends on ASLR being disabled on the host or the attacker possessing a separate means to bypass it; without that, impact is limited to worker process crash/restart. |
| Impact | Signals point in conflicting directions and require careful interpretation. The CVSS 4.0 vector AV:N/AC:H/AT:P/PR:N/UI:N with VC/VI/VA:H produces a 9.2 score, but AC:H plus AT:P signals significant attack-requirement preconditions - notably the vendor's own wording that exploitation requires 'conditions beyond their control,' i.e., a specific vulnerable rewrite-directive configuration. SSVC reinforces this with Exploitation:none and Automatable:no, while EPSS sits at 0.15% (35th percentile) and the CVE is not in CISA KEV, so widespread or automated abuse is not currently observed. Counterbalancing factors: publicly available exploit code exists (GitHub PoC), the worker-crash path is reliably reachable to cause DoS, and code execution is feasible where ASLR is disabled or bypassable - making this a credible targeted-threat issue rather than mass-exploitation risk. Prioritize for internet-facing NGINX deployments that use complex rewrite rules; deprioritize relative to KEV-listed flaws on otherwise hardened fleets. |
| Exploit ScenarioDerived | An attacker enumerates an internet-facing NGINX server, identifies (via the published PoC at github.com/friparia/NGINX_RIFT_SCAN_CVE_2026_42945) a URI path handled by a vulnerable rewrite directive with overlapping captures, and issues a crafted HTTP request whose path triggers the heap overflow during replacement-string construction. The simplest outcome is repeated worker-process crashes producing intermittent denial of service; on hosts with ASLR disabled or where the attacker has chained an info-leak, the same primitive yields arbitrary code execution in the worker context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 16, 2026
Heap buffer overflow in NGINX Plus and NGINX Open Source ngx_http_rewrite_module can be triggered by unauthenticated remote attackers sending crafted HTTP requests that target rewrite directives using overlapping PCRE captures (e.g., $1$2 referencing ^/((.*))$) in redirect or arguments contexts. Impact ranges from worker process crash/restart to arbitrary code execution where ASLR is disabled or bypassed; publicly available exploit code exists, though EPSS exploitation probability is low (0.15%, 35th percentile) and the issue is not in CISA KEV.
Earlier versions of this analysis (2)
Heap buffer overflow in NGINX Plus and NGINX Open Source ngx_http_rewrite_module allows remote unauthenticated attackers to crash worker processes and, when ASLR is disabled or bypassed, achieve code execution by sending crafted HTTP requests against configurations using overlapping PCRE captures in rewrite directives. Publicly available exploit code exists but EPSS is low (0.15%) and SSVC reports no observed exploitation, indicating the bug is realistically constrained by the non-default config pattern and 'conditions beyond the attacker's control' noted by F5.
Heap buffer overflow in NGINX Plus and NGINX Open Source ngx_http_rewrite_module allows unauthenticated remote attackers to crash worker processes and potentially achieve code execution via crafted HTTP requests targeting servers using rewrite directives with overlapping PCRE captures. The flaw affects a core HTTP module shipped in default builds, making widespread exposure plausible wherever vulnerable rewrite rules are configured, though exploitation requires specific configuration prerequisites and ASLR bypass for full RCE. No public exploit identified at time of analysis and the issue is not listed in CISA KEV.
RemediationAI
Vendor-released patches available: upgrade NGINX Open Source to 1.30.2 or 1.31.1 (or newer), NGINX Plus to R32 P7, R36 P5, or 37.0.1.1 per F5 advisory https://my.f5.com/manage/s/article/K000161377; Ubuntu users should apply USN-8354-1 (https://ubuntu.com/security/notices/USN-8354-1). If patching must be deferred, audit nginx.conf and included files for rewrite directives that combine PCRE patterns containing overlapping captures (e.g., ^/((.*))$) with replacement strings referencing multiple captures (e.g., $1$2) inside redirect or args contexts, and rewrite them to use a single non-overlapping capture group - this fully removes the trigger but may require URL-handling logic changes. As an interim control, place a WAF rule in front of NGINX to block requests targeting the specific URI paths handled by vulnerable rewrite rules; ensure ASLR remains enabled on the host to keep impact bounded to worker restart rather than code execution, accepting that repeated crashes still degrade availability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NGINX's ngx_http_rewrite_module compiles PCRE patterns from rewrite directives and performs variable substitution against captured groups. CWE-122 (Heap-based Buffer Overflow) applies here: when a configuration uses distinct yet overlapping captures and the replacement string concatenates multiple capture references in a redirect/args context, NGINX miscomputes the destination buffer size and writes beyond the heap allocation in the worker process. CPE strings (cpe:2.3:a:f5:nginx_plus and cpe:2.3:a:f5:nginx_open_source) confirm both the commercial F5 distribution and the upstream open-source web server/reverse-proxy are affected across multiple branches.
Know when Nginx Plus gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable HTTP request with no auth or interaction, but AC:H because exploitation requires a non-default vulnerable rewrite configuration and ASLR-bypass for code execution; full CIA impact on the worker.
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (f5).
CVSS VectorVendor: f5
Lifecycle Timeline
5DescriptionCVE.org
NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when a rewrite directive uses a regex pattern with distinct, overlapping Perl-Compatible Regular Expression (PCRE) captures (for example, ^/((.*))$) and a replacement string that references multiple such captures (for example, $1$2) in a redirect or arguments context. An unauthenticated attacker along with conditions beyond their 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.
Articles & Coverage 1
Executive ViewAI
A critical vulnerability in NGINX web servers (CVE-2026-9256) can be exploited by remote, unauthenticated attackers, threatening application availability and security. Publicly available exploit code exists for this vulnerability; however, actual exploitation probability remains low (0.1% EPSS). Organizations must patch urgently to protect customer-facing services from operational disruption and potential unauthorized access.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
More in Nginx Plus
View allDenial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Heap buffer overflow in NGINX Plus and NGINX Open Source ngx_http_rewrite_module allows remote attackers to crash worker
Heap-based buffer overflow in NGINX Plus and NGINX Open Source affects deployments that proxy HTTP/2 or gRPC traffic ups
Heap buffer overflow in NGINX Plus and NGINX Open Source lets unauthenticated remote attackers crash worker processes (D
Heap buffer overflow in NGINX Plus and NGINX Open Source can be triggered by crafted HTTP requests when a non-default ma
Heap buffer overflow in NGINX Plus and NGINX Open Source can be triggered by unauthenticated remote attackers through cr
Unauthenticated remote attackers can trigger a use-after-free in NGINX's ngx_http_core_module when asynchronous file I/O
Limited memory disclosure and worker-process restart in NGINX Plus and NGINX Open Source arise when the optional ngx_htt
Buffer overflow in NGINX's DAV module allows remote attackers to crash worker processes or manipulate file names outside
NGINX worker process crashes via null pointer dereference in the mail authentication module when CRAM-MD5 or APOP authen
When the NGINX Plus is configured to use the MQTT pre-read module, undisclosed requests can cause an increase in memory
NGINX Open Source and NGINX Plus contain a buffer over-read or over-write vulnerability in the ngx_http_mp4_module that
Same weakness CWE-122 – Heap-based Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE CaaS Platform 4.0 | Fixed |
| SUSE Enterprise Storage 6 | Fixed |
| SUSE Enterprise Storage 7 | Fixed |
| SUSE Enterprise Storage 7.1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP2 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP1 | Fixed |
| SUSE Linux Enterprise Server 15 SP1-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP2 | Fixed |
| SUSE Linux Enterprise Server 15 SP2-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP3 | Fixed |
| SUSE Linux Enterprise Server 15 SP3-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Manager Proxy 4.0 | Fixed |
| SUSE Manager Proxy 4.1 | Fixed |
| SUSE Manager Proxy 4.2 | Fixed |
| SUSE Manager Retail Branch Server 4.0 | Fixed |
| SUSE Manager Retail Branch Server 4.1 | Fixed |
| SUSE Manager Retail Branch Server 4.2 | Fixed |
| SUSE Manager Server 4.0 | Fixed |
| SUSE Manager Server 4.1 | Fixed |
| SUSE Manager Server 4.2 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| private-registry/1.2/harbor-portal private-registry/harbor-nginx private-registry/harbor-portal suse/nginx suse/rmt-nginx | Fixed |
EUVD-2026-31444
GHSA-h78r-86c6-jgp4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB