Skip to main content
Mallory
← Back to News
widely-deployed-product-advisoryinternet-facing-service-vulnerability

NGINX fixes `ngx_http_rewrite_module` heap overflow with possible RCE

Patch & Detection Intelligence · 4 sources · Updated 5mo ago · First seen Dec 25, 2025

NGINX fixes `ngx_http_rewrite_module` heap overflow with possible RCE

NGINX released versions 1.31.1 and 1.30.2 to fix CVE-2026-9256, a heap buffer overflow in ngx_http_rewrite_module that can be triggered by unauthenticated attackers with specially crafted HTTP requests. The flaw affects NGINX Open Source and NGINX Plus when rewrite directives use overlapping or nested PCRE capture groups and replacement strings that reference multiple captures in redirect or arguments contexts, creating memory corruption in the worker process. Successful exploitation can force worker restarts and denial of service, and may lead to arbitrary code execution if protections such as ASLR are absent or bypassed; NGINX described the issue as a data plane exposure with no control plane impact.

Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · May 22, 2026 – May 29, 2026
  1. May 29, 20266mo ago

    Researchers publish ngxray analysis of nginx RCE exposure

    Researchers published an analysis of CVE-2026-9256 and CVE-2026-42945 using an open-source static scanner called ngxray to measure exposure in public GitHub nginx configurations. Their scan of 35,633 parseable configs found mostly proofs of concept and test cases, with one publicly available real configuration identified as vulnerable.

    Needle in a haystack: measuring the impact of two nginx RCEs - Malware Analysis - Malware Analysis, News and Indicators
  2. May 22, 20266mo ago

    NGINX discloses and fixes CVE-2026-9256 in versions 1.31.1 and 1.30.2

    NGINX disclosed a buffer overflow vulnerability in ngx_http_rewrite_module, tracked as CVE-2026-9256, affecting NGINX Plus and NGINX Open Source when overlapping PCRE captures are used in certain rewrite directives. The issue was fixed in releases 1.31.1 and 1.30.2.

    CVE-2026-9256 - NGINX ngx_http_rewrite_module vulnerability
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

4 linked
Nginx PlusNginxNginxNginx Open Source
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.