CVE-2026-42945: CWE-122 Heap-based Buffer Overflow. in F5 NGINX Plus
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.
AI Analysis
Technical Summary
This vulnerability in the ngx_http_rewrite_module arises from improper handling of unnamed PCRE captures in rewrite directives when combined with certain replacement strings containing a question mark. Exploitation requires sending specially crafted HTTP requests and can lead to a heap buffer overflow in the NGINX worker process. The overflow may cause process restarts and, if ASLR is disabled, could enable remote code execution. The vulnerability affects NGINX Plus versions R32 and R36. The CVSS 3.1 score is 8.1, indicating high severity with network attack vector, high impact on confidentiality, integrity, and availability, and no privileges or user interaction required. No official fix or patch has been documented as of the published date.
Potential Impact
Successful exploitation can cause a denial of service via worker process restart due to heap buffer overflow. On systems with ASLR disabled, it may lead to remote code execution, compromising confidentiality, integrity, and availability of the affected system. The vulnerability is exploitable remotely without authentication but requires conditions beyond the attacker's control. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided, monitor F5's advisories for updates. Until a fix is available, consider disabling or limiting use of the ngx_http_rewrite_module with the affected directive patterns if feasible to reduce exposure.
CVE-2026-42945: CWE-122 Heap-based Buffer Overflow. in F5 NGINX Plus
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, 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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in the ngx_http_rewrite_module arises from improper handling of unnamed PCRE captures in rewrite directives when combined with certain replacement strings containing a question mark. Exploitation requires sending specially crafted HTTP requests and can lead to a heap buffer overflow in the NGINX worker process. The overflow may cause process restarts and, if ASLR is disabled, could enable remote code execution. The vulnerability affects NGINX Plus versions R32 and R36. The CVSS 3.1 score is 8.1, indicating high severity with network attack vector, high impact on confidentiality, integrity, and availability, and no privileges or user interaction required. No official fix or patch has been documented as of the published date.
Potential Impact
Successful exploitation can cause a denial of service via worker process restart due to heap buffer overflow. On systems with ASLR disabled, it may lead to remote code execution, compromising confidentiality, integrity, and availability of the affected system. The vulnerability is exploitable remotely without authentication but requires conditions beyond the attacker's control. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided, monitor F5's advisories for updates. Until a fix is available, consider disabling or limiting use of the ngx_http_rewrite_module with the affected directive patterns if feasible to reduce exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- f5
- Date Reserved
- 2026-04-30T23:04:27.955Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a049717cbff5d8610e0031e
Added to database: 5/13/2026, 3:21:59 PM
Last enriched: 5/13/2026, 3:37:15 PM
Last updated: 5/14/2026, 6:49:08 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.