CVE-2026-9256
NGINX ngx_http_rewrite_module vulnerability
A public proof of concept exists; no exploitation attested.
- Published2026-05-22
- Fixed in1.31.1 · 1.30.2 · 1.24.0
- WeaknessCWE-122
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2026-05-2215:16CVE publishedNVD
- 2026-10-2523:12EPSS crossed 10 %FIRST EPSS
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.31 | ≥ 1.31.0, < 1.31.1 | 1.31.1 | OSV |
| 1.x | ≥ 1.0.0, < 1.30.2 | 1.30.2 | NVD |
| 1.30 | ≥ 1.30.0, < 1.30.2 | 1.30.2 | OSV |
| 1.24 | ≥ 0.1.17, < 1.24.0 | 1.24.0 | OSV |
| 0.x | ≥ 0.1.17, ≤ 0.9.7 | no fix published | NVD |
| 1.31 | = 1.31.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | ≥ r33, < r36 | r36 | NVD |
| 37.0 | = 37.0.0.1 | no fix published | NVD |
| — | = r32 | no fix published | NVD |
| — | = r36 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.x | ≥ 5.0.0, < 5.4.3 | 5.4.3 | NVD |
| 3.x | ≥ 3.5.0, ≤ 3.7.2 | no fix published | NVD |
| 4.0 | ≥ 4.0.0, ≤ 4.0.1 | no fix published | NVD |
10 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA2 products
As f5, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- F5 NGINX Plusother versions: unknownAffected
- ≥ 37.0, < 37.0.1.1fixed in 37.0.1.1custom
- ≥ R36, < R36 P5fixed in R36 P5custom
- ≥ R32, < R32 P7fixed in R32 P7custom
- F5 NGINX Open Sourceother versions: not affectedAffected
- ≥ 1.31.0, < 1.31.1fixed in 1.31.1custom
- ≥ 1.30.0, < 1.30.2fixed in 1.30.2custom
- ≥ 0.1.17, ≤ 0.9.7no fix statedcustom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-05-28
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- nginxUbuntu:Pro:20.04:LTSall versions · fixed in 1.18.0-0ubuntu1.7+esm1
- nginxUbuntu:Pro:18.04:LTSall versions · fixed in 1.14.0-0ubuntu1.11+esm2
- nginxUbuntu:Pro:16.04:LTSall versions · fixed in 1.10.3-0ubuntu0.16.04.5+esm7
- nginxUbuntu:Pro:14.04:LTSall versions · fixed in 1.4.6-1ubuntu3.9+esm6
- nginxUbuntu:26.04:LTSall versions · fixed in 1.28.3-2ubuntu1.2
- nginxUbuntu:25.10all versions · fixed in 1.28.0-6ubuntu1.4
- nginxUbuntu:24.04:LTSall versions · fixed in 1.24.0-2ubuntu7.9
- nginxUbuntu:22.04:LTSall versions · fixed in 1.18.0-6ubuntu14.12
86 more package ranges on OSV.dev
Vendor advisories
nginx: ngx_http_rewrite_module: code execution and denial of service
insights-proxy/insights-proxy-container-rhel9 as a component of Red Hat Lightspeed proxy 1
Red Hat Security Advisory: nginx:1.24 security update
Red Hat Security Advisory: nginx:1.24 security update
Red Hat Security Advisory: nginx security update
Red Hat Security Advisory: nginx:1.26 security update
Red Hat Security Advisory: nginx security update
11 more advisories
Fix
- Update F5 nginx open source to 1.31.1 · 1.30.2 · 1.24.0
- Vendor fix Red Hat Product Security RHSA-2026:100756 · 67 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:58981 · 2 productsPlease consult the RHUI Technology Preview Release Notes at https://access.redhat.com/articles/7141172 for instructions on how to use this image set.
- Vendor fix Red Hat Product Security RHSA-2026:44481 · 3 productsThe container images provided by this release, apart from the installer, should be deployed using rhui-installer utility. See the official documentation for more details.
- Vendor fix Red Hat Product Security RHSA-2026:33313 · 2 productsThe containers required to run Discovery can be installed through discovery-installer RPM. See the official documentation for more details.
- Vendor fix Red Hat Product Security RHSA-2026:20351 · 25 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
- Workaround from the vendor Red Hat Product Security RHSA-2026:100756 · 67 productsTo mitigate this vulnerability, use named captures instead of unnamed captures in rewrite definitions. For example, the following rewrite directive uses unnamed PCRE capture groups, $1 and $2: ~~~ rewrite ^/users/([0-9]+)/profile/(.*)$ /profile.php?id=$1&tab=$2 last; ~~~ To mitigate this vulnera…
Advisories and patches
- my.f5.comMitigation · Vendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub4 repositories, unverifiedknown since 2026-11-01suominen/CVE-2026-9256W5M1n9/NGINX-ngx_http_rewrite_module-heap-buffer-overflow-CVE-2026-92563nou9h/CVE-2026-9256-Poc06-ux/CVE-2026-9256-POC
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2026-05-22
- CNACVSS 4.09.2known since 2026-10-23
- CNACVSS 3.18.1known since 2026-10-23
- CNAweakness (CWE)CWE-122known since 2026-10-23
- FIRST EPSSEPSS score8.3 %read 2026-12-04
- PoC-in-GitHubproof of concept4known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
- Microsoft MSRCadvisory—
Identifiers
- AZL-88116same flawAzure Linux · MIT
- BIT-nginx-2026-9256same flawBitnami · Apache-2.0
- BIT-nginx-gateway-2026-9256same flawBitnami · Apache-2.0
- CGA-6425-976r-j8xhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fqhh-mxp3-x5hqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fx3m-w449-pmj6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-pm53-h97r-3732same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2026-31444same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-h78r-86c6-jgp4same flawGitHub Advisory Database · CC-BY-4.0
- MINI-j5x7-vr73-vfcwsame flawMinimOS · LicenseRef-unstated
- MINI-mxrp-93f6-m62jsame flawMinimOS · LicenseRef-unstated
- ALSA-2026:28212advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:28921advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:28973advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:29151advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:29874advisory covering several CVEsAlmaLinux · MIT
- DLA-4634-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6326-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2026-0159advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2026-2587advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2026:10852-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:21107-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2026:100755advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:100756advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:100757advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:100768advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:20351advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28212advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28921advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28973advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:29151advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:29874advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:93467advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:93468advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:93472advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2026:28212advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2026:28921advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2026:29151advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2026:29874advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2026:22178-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:2307-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:2370-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-8354-1advisory covering several CVEsUbuntu
- USN-8375-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 4.0 vector
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Published
- 2026-05-22
- Last modified
- 2026-08-25
- NVD status
- Modified
- MSRC title
- NGINX ngx_http_rewrite_module vulnerability
- GitHub advisory
- GHSA-h78r-86c6-jgp4
Frequently asked questions
What is CVE-2026-9256?
Is CVE-2026-9256 actively exploited?
What is the CVSS score for CVE-2026-9256?
Running nginx? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2023-44487KEVsame product
- CVE-2026-42945same product
- CVE-2021-23017same product
- CVE-2026-123007same productNGINX ngx_http_v2_module vulnerability
- CVE-2026-49975same productApache HTTP Server: mod_http2 denial of service
- CVE-2026-27654same product
- CVE-2026-123633same productNGINX ngx_http_v2_module vulnerability
- CVE-2026-123634same productNGINX resolver vulnerability
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-h78r-86c6-jgp4
- Microsoft MSRC · Microsoft terms of use (personal and non-commercial use) · terms restrict redistribution
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0