Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRecon vulnerable rewrite config
-
DeliveryCraft malicious HTTP request
-
ExploitTrigger PCRE capture processing
-
ExecutionOverflow heap buffer in worker
-
PersistCrash process or execute code
-
ImpactAchieve system compromise
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 | Requires NGINX configuration with ngx_http_rewrite_module using a rewrite directive immediately followed by another rewrite, if, or set directive where unnamed PCRE capture variables ($1, $2, etc.) appear in replacement strings containing question mark characters. Example vulnerable pattern: 'rewrite ^/(.*)$ /path/$1?param=value; set $var $1;'. Additionally requires attacker-crafted HTTP requests triggering the vulnerable code path combined with unspecified conditions beyond attacker control (likely server-side state, timing, or resource conditions not detailed in available data). Remote unauthenticated exploitation is possible (AV:N/PR:N) but high attack complexity (AC:H) reflects the multiple prerequisites. Systems with ASLR enabled limit impact to denial-of-service, while ASLR-disabled systems face code execution risk. Default NGINX installations without custom rewrite rules using PCRE captures are not exploitable. |
| Impact | The CVSS 4.0 score of 9.2 reflects maximum confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H) with network attack vector (AV:N) and no authentication required (PR:N). However, the high attack complexity (AC:H) and explicit requirement for conditions beyond attacker control significantly constrain real-world exploitability. The vulnerability demands three prerequisites: specific ngx_http_rewrite_module directive chaining, PCRE capture usage with question marks in replacement strings, and exploitable server-side conditions. These requirements explain why no CISA KEV listing or public exploit exists despite the critical CVSS rating. The ASLR dependency creates a two-tier risk profile: modern hardened systems face denial-of-service only, while legacy or embedded systems without ASLR face remote code execution. Organizations must prioritize patching based on their specific rewrite directive configurations and ASLR deployment status rather than CVSS score alone. The phrase 'conditions beyond attacker control' in the description suggests race conditions, timing dependencies, or server state requirements that further reduce exploitation reliability. |
| Exploit ScenarioDerived | An unauthenticated remote attacker identifies an NGINX server using rewrite directives with PCRE captures in the configuration (common in URL normalization and routing rules). The attacker sends specially crafted HTTP requests with payloads designed to trigger heap buffer overflow conditions during URI rewriting. On systems without ASLR, the attacker leverages the overflow to overwrite adjacent heap metadata and inject shellcode, achieving remote code execution in the NGINX worker process context. On ASLR-enabled systems, repeated exploitation causes worker process crashes leading to service degradation. No public exploit identified at time of analysis, though the vulnerability's specificity suggests targeted exploitation against known NGINX configurations rather than automated scanning campaigns. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 13, 2026
Heap buffer overflow in NGINX Plus and NGINX Open Source ngx_http_rewrite_module allows remote attackers to crash worker processes and potentially execute code on systems without ASLR. The vulnerability requires specific rewrite directive configurations using PCRE captures with question marks in replacement strings, combined with attacker-crafted HTTP requests and conditions beyond the attacker's control. F5 has released patches addressing this critical flaw. EPSS data unavailable; no KEV listing or public exploit identified at time of analysis, though the specific configuration requirements and dependency on external conditions likely limit widespread exploitation despite the 9.2 CVSS score.
Earlier versions of this analysis (1)
Heap buffer overflow in NGINX Plus and NGINX Open Source ngx_http_rewrite_module allows remote unauthenticated attackers to crash worker processes and potentially achieve code execution on systems with ASLR disabled. The vulnerability requires specific rewrite directive configurations using unnamed PCRE captures ($1, $2) with question marks in replacement strings - a condition outside direct attacker control. F5 has released patches addressing this vulnerability. EPSS data not provided; no KEV listing or public POC identified at time of analysis, suggesting limited active exploitation despite network-reachable attack vector.
RemediationAI
Apply vendor-released patches immediately per F5 advisory K000161019 available at https://my.f5.com/manage/s/article/K000161019. Exact patched versions are not specified in available data; consult the F5 advisory for version-specific upgrade paths. For environments unable to patch immediately, implement the following compensating controls with noted trade-offs: audit all NGINX configurations for rewrite directives followed by rewrite/if/set directives using unnamed PCRE captures ($1-$9) with question marks in replacement strings, and rewrite these to use named captures or eliminate question marks (may require application changes to URI handling logic); deploy or verify ASLR is enabled on all NGINX host systems to limit exploitation from code execution to denial-of-service only (standard on modern Linux kernels but may conflict with legacy application compatibility requirements); implement rate limiting and request validation at upstream load balancers to reduce attack surface for crafted HTTP requests (adds latency and may block legitimate edge-case requests). Configuration audits can be automated via 'grep -r rewrite /etc/nginx/' combined with regex pattern matching for vulnerable directive sequences.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects the ngx_http_rewrite_module, a core NGINX module that manipulates request URIs using Perl-Compatible Regular Expressions (PCRE). The flaw (CWE-122: Heap-based Buffer Overflow) occurs when the rewrite directive chains with subsequent rewrite, if, or set directives while using unnamed PCRE capture groups ($1, $2, etc.) in replacement strings containing question marks. The heap overflow manifests during request processing when the module incorrectly calculates buffer sizes for URI manipulation. On systems with Address Space Layout Randomization (ASLR) enabled, exploitation is limited to denial-of-service via worker process crashes. However, ASLR-disabled systems face remote code execution risk as attackers can predict memory layouts to hijack control flow. Both NGINX Plus (commercial) and NGINX Open Source are affected according to CPE data cpe:2.3:a:f5:nginx_plus and cpe:2.3:a:f5:nginx_open_source, indicating widespread exposure across F5's NGINX product line.
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:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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
3DescriptionCVE.org
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, for systems with Address Space Layout Randomization (ASLR ) disabled, code execution is possible. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
Articles & Coverage 4
Executive ViewAI
A critical heap buffer overflow in NGINX Plus and NGINX Open Source rewrite modules (CVE-2026-42945, CVSS 9.2) could allow remote attackers to crash worker processes or execute arbitrary code on systems lacking ASLR protections. Organizations running NGINX with specific rewrite directive configurations are at risk of service disruption and potential compromise, requiring immediate patch deployment to maintain application availability and security posture.
Apply vendor patch. If immediate patching is not feasible, implement network-level access controls to restrict HTTP traffic to NGINX instances to trusted sources only, and disable or reconfigure PCRE-based rewrite directives with question marks in replacement strings until patches are deployed.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Nginx Plus
View allDenial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
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 ngx_http_rewrite_module can be triggered by unauthenticated rem
Heap buffer overflow in NGINX Plus and NGINX Open Source lets unauthenticated remote attackers crash worker processes (D
Unauthenticated remote attackers can trigger a use-after-free in NGINX's ngx_http_core_module when asynchronous file I/O
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
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 allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| SUSE Liberty Linux 8 | Fixed |
| SUSE Liberty Linux 9 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Server Applications 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Manager Proxy LTS 4.3 | Affected |
| SUSE Manager Retail Branch Server LTS 4.3 | Affected |
| SUSE Manager Server LTS 4.3 | Affected |
| 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.1 | 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 |
| suse/rmt-nginx | Fixed |
| private-registry/harbor-nginx suse/nginx | Fixed |
EUVD-2026-30010
GHSA-gcgv-v5gf-c543
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB