Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-9256

Опубликовано: 22 мая 2026
Источник: redhat
CVSS3: 8.1
EPSS Низкий

Описание

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.

A flaw was found in the ngx_http_rewrite_module module of NGINX. When a rewrite directive uses a regex pattern with distinct, overlapping Perl-Compatible Regular Expression (PCRE) captures and a replacement string that references multiple such captures in a redirect or arguments context, an unauthenticated attacker can send crafted HTTP requests and cause a heap-based buffer overflow in the worker process, potentially allowing code execution or a denial of service by forcing the process to restart.

Отчет

To exploit this vulnerability, a rewrite directive must be configured with a regex pattern that uses distinct, overlapping PCRE captures and a replacement string referencing multiple such captures, limiting its exposure as this is not the default configuration. This issue allows an attacker to potentially execute arbitrary code or cause a denial of service by forcing the worker process to restart. Default Red Hat Enterprise Linux security features, including SELinux enforcement, Address Space Layout Randomization (ASLR) and NX (No-Execute) stack protection, significantly increase the difficulty of achieving arbitrary code execution, limiting the impact of this vulnerability. Due to these reasons, this flaw has been rated with an important severity.

Меры по смягчению последствий

To 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 vulnerability for this example, replace $1 and $2 with the appropriate named captures, $user_id and $section:

rewrite ^/users/(?<user_id>[0-9]+)/profile/(?<section>.*)$ /profile.php?id=$user_id&tab=$section last;

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Lightspeed proxy 1insights-proxy/insights-proxy-container-rhel9Affected
Red Hat Enterprise Linux 10nginxFixedRHSA-2026:2987425.06.2026
Red Hat Enterprise Linux 8nginxFixedRHSA-2026:2892124.06.2026
Red Hat Enterprise Linux 9nginxFixedRHSA-2026:2821223.06.2026
Red Hat Enterprise Linux 9nginxFixedRHSA-2026:2897324.06.2026
Red Hat Enterprise Linux 9nginxFixedRHSA-2026:2915125.06.2026
Red Hat Discovery 2discovery/discovery-ui-rhel9FixedRHSA-2026:3331329.06.2026
Red Hat Hardened Imagesnginx-main-1.30.2-1.hum1FixedRHSA-2026:2035123.05.2026
Red Hat Update Infrastructure 5rhui5/cds-kubernetes-rhel9FixedRHSA-2026:4448123.07.2026
Red Hat Update Infrastructure 5rhui5/cds-rhel9FixedRHSA-2026:4448123.07.2026

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-122
https://bugzilla.redhat.com/show_bug.cgi?id=2480746nginx: ngx_http_rewrite_module: code execution and denial of service

EPSS

Процентиль: 95%
0.09884
Низкий

8.1 High

CVSS3

Связанные уязвимости

CVSS3: 8.1
ubuntu
2 месяца назад

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.

CVSS3: 8.1
nvd
2 месяца назад

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.

CVSS3: 8.1
msrc
2 месяца назад

NGINX ngx_http_rewrite_module vulnerability

CVSS3: 8.1
debian
2 месяца назад

NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_ ...

suse-cvrf
около 1 месяца назад

Security update for nginx

EPSS

Процентиль: 95%
0.09884
Низкий

8.1 High

CVSS3