NGINX ngx_http_rewrite_module vulnerability
CVE-2026-9256Published 22 May 2026, 14:11 UTC
Real-world risk
1.9/ 10Low
Routine
If the vulnerable configuration applies to you: 4.3
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.2
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from f5)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| NGINX Open SourceCommon | >= 1.31.0, < 1.31.1; >= 1.30.0, < 1.30.2; >= 0.1.17, <= 0.9.7 | 1.31.1, 1.30.2 |
| NGINX PlusCommon | >= 37.0, < 37.0.1.1; >= R36, < R36 P5; >= R32, < R32 P7 | 37.0.1.1 |
What to do
Update to a fixed version: 1.31.1, 1.30.2, 37.0.1.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Public proof of concept on GitHub
- Public proof of concept on GitHub
EPSS 8.3% chance of exploitation in 30 days (percentile 95), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.203
- Threat T3: Public proof of concept0.950
- 10 × impact 1 × prerequisites 0.2025 × threat 0.951.924
- Rounded to one decimal between 0.1 and 101.9
Exploitation and evidence timeline
- 22 May 2026 Published
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Risk 1.9 (cvss fallback)
Weakness
CWE-122
References
- https://my.f5.com/manage/s/article/K000161377vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/05/22/14
- https://lists.debian.org/debian-lts-announce/2026/06/msg00023.html
- https://access.redhat.com/security/cve/CVE-2026-9256redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2480746issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9256.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:29874redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:28921redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:28212redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:28973redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:29151redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:33313redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:20351redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:44481redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:58981redhat, vendor-advisory
- CVE-2026-9256 on CVE.org