Skip to main content
Public proof of conceptFix available

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?

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
  1. 2026-05-2215:16CVE publishedNVD
  2. 2026-10-2523:12EPSS crossed 10 %FIRST EPSS

Versions per branch

OSV · NVD
F5 nginx open source
BranchAffectedFixed in
1.31≥ 1.31.0, < 1.31.11.31.1
1.x≥ 1.0.0, < 1.30.21.30.2
1.30≥ 1.30.0, < 1.30.21.30.2
1.24≥ 0.1.17, < 1.24.01.24.0
0.x≥ 0.1.17, ≤ 0.9.7no fix published
1.31= 1.31.0no fix published
F5 nginx plus
BranchAffectedFixed in
—≥ r33, < r36r36
37.0= 37.0.0.1no fix published
—= r32no fix published
—= r36no fix published
F5 nginx ingress controller
BranchAffectedFixed in
5.x≥ 5.0.0, < 5.4.35.4.3
3.x≥ 3.5.0, ≤ 3.7.2no fix published
4.0≥ 4.0.0, ≤ 4.0.1no fix published

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: unknown
    Affected
    • ≥ 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 affected
    Affected
    • ≥ 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

  • CVE-2026-9256 Red Hat Product Security879 products fixed · 1 known affected

    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

  • RHSA-2026:100756 Red Hat Product Security67 products fixed

    Red Hat Security Advisory: nginx:1.24 security update

  • RHSA-2026:100755 Red Hat Product Security67 products fixed

    Red Hat Security Advisory: nginx:1.24 security update

  • RHSA-2026:100768 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: nginx security update

  • RHSA-2026:100757 Red Hat Product Security67 products fixed

    Red Hat Security Advisory: nginx:1.26 security update

  • RHSA-2026:93467 Red Hat Product Security99 products fixed

    Red Hat Security Advisory: nginx security update

11 more advisories

Full record on NVD

Fix

  1. Update F5 nginx open source to 1.31.1 · 1.30.2 · 1.24.0
  2. 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
  3. 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.
  4. 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.
  5. 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.
  6. 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/
  7. 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

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2026-9256 actively exploited?

Active exploitation of CVE-2026-9256 has not been confirmed. Its EPSS score was 8.3% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-9256?

CVE-2026-9256 has a CVSS v3 base score of 8.1 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record