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, 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.
AI Analysis
Technical Summary
CVE-2026-42945 is a heap-based buffer overflow vulnerability in the ngx_http_rewrite_module of NGINX Plus and NGINX Open Source. The flaw arises when a rewrite directive is followed by rewrite, if, or set directives that use unnamed Perl-Compatible Regular Expression (PCRE) captures (e.g., $1, $2) with replacement strings containing a question mark (?). This can be exploited by unauthenticated attackers sending crafted HTTP requests, leading to a heap buffer overflow in the NGINX worker process. The overflow may cause the worker process to restart and, on systems with Address Space Layout Randomization (ASLR) disabled or bypassed, may allow arbitrary code execution. The vulnerability affects certain NGINX Plus versions (R32 and R36). Red Hat has published multiple advisories and errata providing security updates that fix this vulnerability, including updated nginx packages for Red Hat Enterprise Linux 10.0 Extended Update Support. The CVSS v3.1 base 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.
Potential Impact
Successful exploitation can cause a heap buffer overflow in the NGINX worker process, resulting in process restart (denial of service). On systems where ASLR is disabled or can be bypassed, attackers may achieve arbitrary code execution, compromising system confidentiality, integrity, and availability. The vulnerability is exploitable remotely by unauthenticated attackers via crafted HTTP requests.
Mitigation Recommendations
Red Hat has released security updates that address this vulnerability. Users should apply the updated nginx packages provided in the Red Hat advisories (e.g., RHSA-2026:17790) for Red Hat Enterprise Linux 10.0 Extended Update Support and related variants. Refer to Red Hat's official guidance at https://access.redhat.com/articles/11258 for update instructions. No other mitigations or workarounds are specified. Patch status is confirmed by vendor advisories; applying these official fixes mitigates the vulnerability.
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, 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.
CVSS v3.1
Score 8.1high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42945 is a heap-based buffer overflow vulnerability in the ngx_http_rewrite_module of NGINX Plus and NGINX Open Source. The flaw arises when a rewrite directive is followed by rewrite, if, or set directives that use unnamed Perl-Compatible Regular Expression (PCRE) captures (e.g., $1, $2) with replacement strings containing a question mark (?). This can be exploited by unauthenticated attackers sending crafted HTTP requests, leading to a heap buffer overflow in the NGINX worker process. The overflow may cause the worker process to restart and, on systems with Address Space Layout Randomization (ASLR) disabled or bypassed, may allow arbitrary code execution. The vulnerability affects certain NGINX Plus versions (R32 and R36). Red Hat has published multiple advisories and errata providing security updates that fix this vulnerability, including updated nginx packages for Red Hat Enterprise Linux 10.0 Extended Update Support. The CVSS v3.1 base 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.
Potential Impact
Successful exploitation can cause a heap buffer overflow in the NGINX worker process, resulting in process restart (denial of service). On systems where ASLR is disabled or can be bypassed, attackers may achieve arbitrary code execution, compromising system confidentiality, integrity, and availability. The vulnerability is exploitable remotely by unauthenticated attackers via crafted HTTP requests.
Mitigation Recommendations
Red Hat has released security updates that address this vulnerability. Users should apply the updated nginx packages provided in the Red Hat advisories (e.g., RHSA-2026:17790) for Red Hat Enterprise Linux 10.0 Extended Update Support and related variants. Refer to Red Hat's official guidance at https://access.redhat.com/articles/11258 for update instructions. No other mitigations or workarounds are specified. Patch status is confirmed by vendor advisories; applying these official fixes mitigates the vulnerability.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-42945","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17790","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18063","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19159","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18041","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17791","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17751","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17792","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17793","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17752","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17794","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17753","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18029","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19371","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19374","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19372","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17417","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22396","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22393","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22394","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22390","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22388","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22389","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22382","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22383","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20442","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20444","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21275","vendor":"Red Hat"}]
Threat ID: 6a049717cbff5d8610e0031e
Added to database: 05/13/2026, 15:21:59 UTC
Last enriched: 07/22/2026, 22:46:00 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 244
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.
External Links
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.