{"id":"CVE-2026-9256","published":"2026-05-22T14:11:41Z","modified":"2026-08-25T12:05:55Z","title":"NGINX ngx_http_rewrite_module vulnerability","vendor":"F5","product":"NGINX Plus","tier":"tail","description":{"text":"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. \n\n\nNote: Software versions which have reached End of Technical Support (EoTS) are not evaluated.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.08278,"percentile":0.95048,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://my.f5.com/manage/s/article/K000161377","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/22/14","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2026/06/msg00023.html","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-9256","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2480746","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9256.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:29874","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:28921","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:28212","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:28973","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:29151","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33313","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:20351","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:44481","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:58981","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":29.7,"factors":[{"name":"EPSS percentile","points":19.01},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":4,"skipped":0,"earliest":"2026-05-24","earliestUrl":"https://github.com/suominen/CVE-2026-9256","repos":[{"name":"3nou9h/CVE-2026-9256-Poc","url":"https://github.com/3nou9h/CVE-2026-9256-Poc","stars":3,"created":"2026-05-28"},{"name":"W5M1n9/NGINX-ngx_http_rewrite_module-heap-buffer-overflow-CVE-2026-9256","url":"https://github.com/W5M1n9/NGINX-ngx_http_rewrite_module-heap-buffer-overflow-CVE-2026-9256","stars":2,"created":"2026-05-28"},{"name":"06-ux/CVE-2026-9256-POC","url":"https://github.com/06-ux/CVE-2026-9256-POC","stars":1,"created":"2026-06-03"},{"name":"suominen/CVE-2026-9256","url":"https://github.com/suominen/CVE-2026-9256","stars":0,"created":"2026-05-24"}]},"first":{"date":"2026-05-24","source":"PoC-in-GitHub","url":"https://github.com/suominen/CVE-2026-9256"},"provenance":"source"},"vendorSlug":"f5","affectedVersions":[{"vendor":"F5","product":"NGINX Plus","versions":[">= 37.0, < 37.0.1.1",">= R36, < R36 P5",">= R32, < R32 P7"]},{"vendor":"F5","product":"NGINX Open Source","versions":[">= 1.31.0, < 1.31.1",">= 1.30.0, < 1.30.2",">= 0.1.17, <= 0.9.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-22T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is a heap-based buffer overflow in the ngx_http_rewrite_module of NGINX Plus and NGINX Open Source, triggered when a rewrite directive combines a PCRE regex with overlapping captures and a replacement string that references several of those captures in a redirect or arguments context. An unauthenticated remote attacker can exploit it by sending crafted HTTP requests, though the attack depends on conditions outside the attacker's control; successful exploitation can crash the NGINX worker process, and code execution is possible where ASLR is disabled or can be bypassed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:35:23Z"},"euvd":{"id":"EUVD-2026-31444","exploited":false,"provenance":"source"}}