CVE Wiki Pixee · CVE intelligence
← All CVEs

CVE-2026-9256

High · CVSS 8.1

NGINX Plus / NGINX Open Source — Heap buffer overflow via PCRE regex capture groups in rewrite module (RCE)

CVSS
8.1
nvd
EPSS
10.1%
95th pct
KEV
No
Class
oss containerizable
CWE-122, CWE-122

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.

Search profile — drives PoC discovery

Symbols ngx_http_rewrite_modulerewrite directivePCRE capturesoverlapping captures^/((.*))$$1$2ngx_http_script_regex_start_codengx_http_rewrite_handlerngx_http_rewrite
Keywords CVE-2026-9256NGINX heap buffer overflowngx_http_rewrite_module PCRENGINX rewrite regex capture overflowNGINX PCRE overlapping captures exploitNGINX worker process crash rewriteNGINX ASLR bypass RCEnginx rewrite heap overflow PoC
Versions: NGINX Plus and NGINX Open Source (all versions prior to patch; EoTS versions not evaluated)

Ranked PoCs (5) — best first

Heuristic ranking — not yet expert-vetted. Scored on structure + provenance, not execution.

Recall-favoring discovery; ranking by the Stage-4 scorer (Adam's rubric). Scanner/aggregator repos are hidden.

Affected packages

Bitnami nginx 0.1.17 → 1.24.0
Bitnami nginx 1.30.0 → 1.30.2
Bitnami nginx 1.31.0 → 1.31.1
Bitnami nginx-gateway 0.1.17 → 2.2.1

References

Status: enriched · ingested 2026-06-30T06:00:22.000Z · profiled 2026-07-02T00:30:43.000Z