Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2020-36309

CVE-2020-36309: Lua-nginx-module Input Validation Flaw

CVE-2020-36309 is an input validation vulnerability in OpenResty lua-nginx-module that allows unsafe characters in URI and header mutations. This article covers the security risks, affected versions, and remediation.

Published: March 4, 2026

CVE-2020-36309 Overview

CVE-2020-36309 is an input validation vulnerability affecting ngx_http_lua_module (also known as lua-nginx-module) before version 0.10.16 in OpenResty. The vulnerability allows unsafe characters in an argument when using the API to mutate a URI, or a request or response header, potentially enabling header injection or request manipulation attacks.

Critical Impact

Attackers can inject unsafe characters through the lua-nginx-module API when modifying URIs or HTTP headers, potentially leading to HTTP header injection, request smuggling, or response splitting attacks.

Affected Products

  • OpenResty lua-nginx-module versions prior to 0.10.16

Discovery Timeline

  • 2021-04-06 - CVE CVE-2020-36309 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2020-36309

Vulnerability Analysis

This vulnerability stems from insufficient input validation in the lua-nginx-module's API functions responsible for URI and HTTP header manipulation. When developers use the module's API to dynamically modify request URIs, request headers, or response headers, the module fails to properly sanitize or reject unsafe characters. This inadequate character validation creates an integrity issue where malicious actors can inject control characters or special sequences that alter the intended behavior of HTTP requests and responses.

The vulnerability is exploitable over the network without requiring authentication or user interaction, making it accessible to remote attackers. While the impact is limited to integrity concerns (no direct confidentiality breach or denial of service), successful exploitation could enable HTTP response splitting, header injection attacks, or cache poisoning scenarios depending on the application context.

Root Cause

The root cause is improper input validation within the lua-nginx-module API. Specifically, when the API functions are called to mutate URIs or HTTP headers, the module does not adequately filter or escape special characters such as carriage returns (\r), line feeds (\n), or other control characters that have semantic meaning in the HTTP protocol. This oversight allows these characters to pass through unchecked, breaking HTTP message boundaries.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Sending crafted input to an application that uses the vulnerable lua-nginx-module API to modify URIs or headers
  2. Including unsafe characters (such as CRLF sequences) in the input that gets passed to the API
  3. The unsanitized characters are incorporated into the modified URI or headers
  4. Depending on the application logic, this could result in HTTP header injection, response splitting, or request manipulation

The vulnerability specifically affects applications that use OpenResty's Lua APIs such as ngx.req.set_uri(), ngx.req.set_header(), or ngx.header for dynamic header/URI manipulation where user-controlled input may be incorporated.

Detection Methods for CVE-2020-36309

Indicators of Compromise

  • Unusual HTTP requests containing CRLF sequences (%0d%0a or \r\n) in URI parameters or header values
  • Log entries showing malformed or duplicated HTTP headers in requests
  • Evidence of HTTP response splitting attacks such as injected Set-Cookie headers or cache poisoning
  • Anomalous behavior in downstream systems receiving manipulated requests

Detection Strategies

  • Monitor nginx access and error logs for requests containing encoded CRLF characters (%0d, %0a, %0D, %0A)
  • Implement web application firewall (WAF) rules to detect and block HTTP header injection patterns
  • Review application code that uses ngx.req.set_uri(), ngx.req.set_header(), or response header manipulation for user-controlled input
  • Audit lua-nginx-module version across all OpenResty deployments to identify vulnerable instances

Monitoring Recommendations

  • Configure SentinelOne to monitor for unusual HTTP traffic patterns indicative of header injection attempts
  • Set up alerts for nginx error logs indicating malformed headers or invalid characters
  • Monitor for cache poisoning indicators if caching layers are in use
  • Track lua-nginx-module version deployments as part of software inventory management

How to Mitigate CVE-2020-36309

Immediate Actions Required

  • Upgrade lua-nginx-module to version 0.10.16 or later immediately
  • Audit all Lua code that uses URI or header mutation APIs for proper input sanitization
  • Implement input validation at the application layer to filter CRLF and other control characters before passing to lua-nginx-module APIs
  • Consider deploying WAF rules to block requests containing header injection patterns as an interim measure

Patch Information

The vulnerability has been addressed in lua-nginx-module version 0.10.16. The fix is documented in GitHub Pull Request #1654. Organizations should upgrade to version 0.10.16 or later. The complete changelog between affected and fixed versions can be reviewed in the GitHub version comparison.

Additional advisories are available from NetApp Security Advisory NTAP-20210507-0005 and the Debian LTS Announcement.

Workarounds

  • Implement strict input validation in application code before calling any lua-nginx-module API that modifies URIs or headers
  • Filter out or reject any input containing CRLF sequences, null bytes, or other HTTP control characters
  • Use allowlist-based validation for header values and URI components where possible
  • Deploy a reverse proxy or WAF in front of vulnerable OpenResty instances to filter malicious requests
bash
# Example nginx configuration to help mitigate header injection
# Add to nginx.conf or relevant server block

# Block requests with CRLF in common injection points
if ($args ~* "(%0d|%0a|%0D|%0A)") {
    return 400;
}

# Log suspicious requests for monitoring
log_format security '$remote_addr - $remote_user [$time_local] '
                    '"$request" $status $body_bytes_sent '
                    '"$http_referer" "$http_user_agent" '
                    'args="$args"';

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechOpenresty

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.42%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Hacker News Discussion

  • NetApp Security Advisory NTAP-20210507-0005

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Compare v0.10.15 to v0.10.16

  • GitHub Pull Request #1654
  • Related CVEs
  • CVE-2020-11724: OpenResty HTTP Request Smuggling Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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