A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-9256

CVE-2026-9256: NGINX Buffer Overflow Vulnerability

CVE-2026-9256 is a heap buffer overflow vulnerability in NGINX's rewrite module that can lead to worker process crashes or remote code execution. This article covers the technical details, affected systems, and mitigation.

Published: May 28, 2026

CVE-2026-9256 Overview

CVE-2026-9256 is a heap buffer overflow [CWE-122] in the ngx_http_rewrite_module of NGINX Plus and NGINX Open Source. The flaw triggers when a rewrite directive uses a regex pattern with distinct, overlapping Perl-Compatible Regular Expression (PCRE) captures, such as ^/((.*))$, and a replacement string referencing multiple captures like $1$2 in a redirect or arguments context. An unauthenticated remote attacker can send crafted HTTP requests to corrupt heap memory in the NGINX worker process. The result is typically a worker restart, but code execution is possible on systems where Address Space Layout Randomization (ASLR) is disabled or can be bypassed.

Critical Impact

Unauthenticated network attackers can corrupt heap memory in NGINX worker processes, causing denial of service and potential remote code execution when ASLR protections are absent or bypassed.

Affected Products

  • NGINX Plus
  • NGINX Open Source
  • Configurations using ngx_http_rewrite_module with overlapping PCRE captures in redirect or arguments contexts

Discovery Timeline

  • 2026-05-22 - CVE-2026-9256 published to NVD
  • 2026-05-23 - Last updated in NVD database

Technical Details for CVE-2026-9256

Vulnerability Analysis

The vulnerability resides in how ngx_http_rewrite_module constructs replacement strings during regex-based URL rewrites. When a rewrite directive defines overlapping PCRE captures, such as nested parenthesized groups in ^/((.*))$, NGINX miscalculates the buffer size required to hold the substituted result. The replacement string referencing both captures, for example $1$2, expands beyond the allocated heap region.

The overflow occurs in the worker process during request handling. The most common outcome is a crash followed by worker restart, producing a denial of service condition. On systems without ASLR or where an attacker can leak addresses to defeat ASLR, the heap corruption can be steered toward arbitrary code execution in the worker context.

The CWE-122 classification confirms heap-based buffer overflow as the underlying weakness. The EPSS score is 0.177% at the 38.87 percentile as of 2026-05-28, reflecting the high attack complexity noted in the CVSS vector.

Root Cause

The root cause is incorrect length calculation when expanding regex back-references that originate from distinct but overlapping capture groups. The module reserves heap space sized for the expected expansion but fails to account for the additional bytes produced when multiple overlapping captures are concatenated in the replacement string.

Attack Vector

Exploitation requires an HTTP request that traverses an NGINX location containing a vulnerable rewrite directive in a redirect (return 301/return 302) or arguments context. The attacker sends a request whose URI matches the regex in a way that maximizes the overlap between captures, forcing the heap write to exceed the allocated boundary. No authentication is required. The CVSS vector reflects high attack complexity because the vulnerable directive pattern must already be present in the server configuration.

No public proof-of-concept code is available. Refer to the F5 Security Article K000161377 and the Openwall OSS Security advisory for technical detail provided by the vendor.

Detection Methods for CVE-2026-9256

Indicators of Compromise

  • Unexpected NGINX worker process crashes or signal 11 (SIGSEGV) entries in error.log correlated with HTTP requests against locations that use rewrite directives.
  • Repeated worker process exited on signal messages followed by worker process restart events within short intervals.
  • HTTP request URIs containing unusually long or repetitive path segments targeting endpoints handled by rewrite ... redirect or rewrites that populate query arguments.

Detection Strategies

  • Audit all NGINX configurations for rewrite directives whose regex contains overlapping captures such as ((.*)) combined with replacements referencing multiple back-references like $1$2.
  • Enable and monitor NGINX error.log at warn level or higher and forward worker crash signals to centralized logging.
  • Correlate access log entries with worker restart timestamps to identify the specific request that triggered the crash.

Monitoring Recommendations

  • Alert on any NGINX worker process termination by signal in production environments.
  • Track HTTP 502/504 spikes from upstream NGINX tiers that may indicate worker churn caused by exploitation attempts.
  • Verify that ASLR is enabled on all hosts running NGINX by confirming /proc/sys/kernel/randomize_va_space returns 2.

How to Mitigate CVE-2026-9256

Immediate Actions Required

  • Apply the patched NGINX Plus or NGINX Open Source release referenced in F5 Security Article K000161377 as soon as available for your distribution.
  • Inventory all rewrite directives across server blocks and identify any using overlapping PCRE captures with multi-reference replacements.
  • Confirm ASLR is enabled on every host running NGINX to reduce the likelihood of code execution outcomes.

Patch Information

F5 has published guidance under article K000161377 covering fixed versions for NGINX Plus and NGINX Open Source. Versions that have reached End of Technical Support (EoTS) are not evaluated by the vendor and should be upgraded to a supported, patched release. Consult the F5 advisory and the Openwall OSS Security notice for the precise fixed version numbers applicable to your build.

Workarounds

  • Rewrite vulnerable directives to avoid overlapping captures; replace patterns like ^/((.*))$ with a single non-overlapping group such as ^/(.*)$ and adjust replacements to reference one capture.
  • Remove unnecessary rewrite ... redirect and argument-context rewrites from public-facing server blocks until patching is complete.
  • Place a web application firewall (WAF) or upstream proxy in front of NGINX to filter requests whose URIs trigger the vulnerable rewrite paths.
bash
# Configuration example - replace overlapping captures with a single group
# Vulnerable pattern:
#   rewrite ^/((.*))$ /new/$1$2 redirect;
#
# Safer rewrite using a single, non-overlapping capture:
location / {
    rewrite ^/(.*)$ /new/$1 redirect;
}

# Verify ASLR is fully enabled on Linux hosts running NGINX
cat /proc/sys/kernel/randomize_va_space   # expect: 2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechNginx

  • SeverityCRITICAL

  • CVSS Score9.2

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS 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
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Technical References
  • F5 Security Article K000161377

  • Openwall OSS Security Update
  • Related CVEs
  • CVE-2026-8711: NGINX JavaScript Buffer Overflow Flaw

  • CVE-2026-42945: NGINX Buffer Overflow Vulnerability

  • CVE-2026-27654: F5 Nginx Plus Buffer Overflow Vulnerability

  • CVE-2021-46461: Nginx Njs Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English