CVE-2026-9256

NGINX ngx_http_rewrite_module vulnerability

Published May 22, 2026 CVSS 4.0 · 9.2 Critical EPSS 10.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4634-1 nginx security update
Debian DSA Debian DSA DSA-6326-1 nginx security update
Ubuntu USN Ubuntu USN USN-8375-1 nginx vulnerabilities
Ubuntu USN Ubuntu USN USN-8354-1 nginx vulnerabilities
History
Type Values Removed Values Added
First Time appeared Debian
Debian debian Linux
F5 dos
F5 nginx Gateway Fabric
F5 nginx Ingress Controller
F5 nginx Instance Manager
F5 waf
Redhat
Redhat discovery
Redhat enterprise Linux
Redhat hardened Images
Redhat update Infrastructure
CPEs cpe:2.3:a:f5:nginx_plus:*:*:*:*:*:*:*:* cpe:2.3:a:f5:dos:*:*:*:*:*:nginx:*:*
cpe:2.3:a:f5:dos:4.9.0:*:*:*:*:nginx:*:*
cpe:2.3:a:f5:nginx_gateway_fabric:*:*:*:*:*:*:*:*
cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_instance_manager:*:*:*:*:*:*:*:*
cpe:2.3:a:f5:nginx_plus:*:*:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:37.0.0.1:*:*:*:long-term_support:*:*:*
cpe:2.3:a:f5:nginx_plus:r32:-:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r32:p1:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r32:p2:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r32:p3:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r32:p4:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r32:p5:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r32:p6:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r36:-:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r36:p1:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r36:p2:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r36:p3:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:nginx_plus:r36:p4:*:*:continuous_releases:*:*:*
cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:*
cpe:2.3:a:redhat:discovery:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:update_infrastructure:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Vendors & Products Debian
Debian debian Linux
F5 dos
F5 nginx Gateway Fabric
F5 nginx Ingress Controller
F5 nginx Instance Manager
F5 waf
Redhat
Redhat discovery
Redhat enterprise Linux
Redhat hardened Images
Redhat update Infrastructure
Type Values Removed Values Added
CPEs cpe:2.3:a:f5:nginx_open_source:*:*:*:*:*:*:*:*
cpe:2.3:a:f5:nginx_open_source:1.31.0:*:*:*:*:*:*:*
cpe:2.3:a:f5:nginx_plus:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared F5
F5 nginx Open Source
F5 nginx Plus
Vendors & Products F5
F5 nginx Open Source
F5 nginx Plus
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title NGINX ngx_http_rewrite_module vulnerability
Weaknesses CWE-122
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, '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'}