CVE-2026-9256: 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 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.
AI Analysis
Technical Summary
CVE-2026-9256 is a heap-based buffer overflow vulnerability in the ngx_http_rewrite_module of NGINX Plus and NGINX Open Source. It arises when a rewrite directive uses regex patterns with distinct, overlapping PCRE captures and replacement strings referencing multiple captures in redirect or arguments contexts. Exploitation by unauthenticated attackers sending crafted HTTP requests can lead to a worker process restart or code execution on systems without effective ASLR. Red Hat advisories confirm the issue and provide updated packages to remediate the vulnerability.
Potential Impact
Successful exploitation can cause denial of service by crashing the NGINX worker process due to heap buffer overflow. On systems where ASLR is disabled or bypassed, attackers may achieve arbitrary code execution, leading to full compromise of the affected system. The vulnerability is exploitable remotely without authentication, increasing risk.
Mitigation Recommendations
Red Hat has issued security updates that fix this vulnerability. Users should apply the provided patches from Red Hat Enterprise Linux 10 and related distributions as detailed in the Red Hat advisories (e.g., RHSA-2026:29874). Since this is not a cloud service, remediation requires updating affected software versions. Patch status is confirmed by Red Hat advisories. No alternative mitigations are specified.
CVE-2026-9256: 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 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.
CVSS v3.1
Score 8.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-9256 is a heap-based buffer overflow vulnerability in the ngx_http_rewrite_module of NGINX Plus and NGINX Open Source. It arises when a rewrite directive uses regex patterns with distinct, overlapping PCRE captures and replacement strings referencing multiple captures in redirect or arguments contexts. Exploitation by unauthenticated attackers sending crafted HTTP requests can lead to a worker process restart or code execution on systems without effective ASLR. Red Hat advisories confirm the issue and provide updated packages to remediate the vulnerability.
Potential Impact
Successful exploitation can cause denial of service by crashing the NGINX worker process due to heap buffer overflow. On systems where ASLR is disabled or bypassed, attackers may achieve arbitrary code execution, leading to full compromise of the affected system. The vulnerability is exploitable remotely without authentication, increasing risk.
Mitigation Recommendations
Red Hat has issued security updates that fix this vulnerability. Users should apply the provided patches from Red Hat Enterprise Linux 10 and related distributions as detailed in the Red Hat advisories (e.g., RHSA-2026:29874). Since this is not a cloud service, remediation requires updating affected software versions. Patch status is confirmed by Red Hat advisories. No alternative mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- f5
- Date Reserved
- 2026-05-21T20:58:58.484Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-9256","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29874","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:28921","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:28212","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:28973","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29151","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33313","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20351","vendor":"Red Hat"}]
Threat ID: 6a10685ce1370fbb4807627c
Added to database: 05/22/2026, 14:29:48 UTC
Last enriched: 07/24/2026, 21:43:36 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 359
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.