CVE-2026-9256: Heap buffer overflow in NGINX ngx_http_rewrite_module
- Vendors
- Debian ProjectRed HatF5
CVE-2026-9256 is a heap-based buffer overflow in ngx_http_rewrite_module affecting NGINX Plus and NGINX Open Source. The vulnerability occurs when a rewrite directive uses distinct, overlapping Perl-Compatible Regular Expression (PCRE) capture groups and its replacement string references multiple overlapping captures in a redirect or arguments context. An unauthenticated remote attacker can submit crafted HTTP requests that, subject to additional conditions beyond the attacker's control, corrupt heap memory in an NGINX worker process. Exploitation can cause worker termination and restart, resulting in denial of service. Code execution is also possible when Address Space Layout Randomization (ASLR) is disabled or bypassed. Versions beyond End of Technical Support were not evaluated.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can crash and restart NGINX worker processes, disrupting HTTP service availability. If ASLR is disabled or bypassed, the heap corruption may permit arbitrary code execution in the worker process context, potentially compromising the confidentiality and integrity of data accessible to that process as well as service availability. Code execution does not inherently confer root privileges.
Mitigation
If you can’t patch tonight, do this now.
Remove or rewrite affected rewrite directives so that redirect or arguments replacement strings do not reference multiple distinct, overlapping PCRE capture groups. Maintain ASLR: it reduces the stated code-execution risk but does not prevent the heap overflow or denial of service. Where configuration changes or patching cannot be performed immediately, restrict untrusted network access to affected HTTP services. The Tanzu buildpack advisories list no product-specific workaround.
Remediation
Patch, then assume compromise.
Install the applicable vendor-supported NGINX security update. Fixed Debian packages are 1.22.1-9+deb12u8 for Debian 12 and 1.26.3-3+deb13u6 for Debian 13. For the specified RHEL support streams, fixed package releases are 1.20.1-14.el9_2.7 under RHSA-2026:93472, 1.20.1-16.el9_4.7 under RHSA-2026:93468, and 1.20.1-22.el9_6.7 under RHSA-2026:93467; use these or later vendor-approved fixed releases for the corresponding stream. Affected VMware Tanzu deployments should update NGINX Buildpack to 1.2.87 or Staticfile Buildpack to 1.6.82, as applicable. Upstream NGINX Plus and Open Source fixed version numbers are not specified here; select the update appropriate to the installed product and supported release.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-9256 exploited in the wild?
- As of Nov 5, 2026, Mallory has no reports of CVE-2026-9256 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-9256?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2026-9256, the earliest disclosed May 28, 2026.
- Is there a patch for CVE-2026-9256?
- Install the applicable vendor-supported NGINX security update. Fixed Debian packages are 1.22.1-9+deb12u8 for Debian 12 and 1.26.3-3+deb13u6 for Debian 13.
- What products are affected by CVE-2026-9256?
- F5 Nginx, F5 Nginx Plus, Debian Project Debian Linux, Red Hat Discovery, F5 Dos, and 7 more.
- How severe is CVE-2026-9256?
- CVE-2026-9256 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 10.9% (96th percentile) as of Nov 5, 2026.
Recent activity
82 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.