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-2022-37797

CVE-2022-37797: Lighttpd mod_wstunnel DoS Vulnerability

CVE-2022-37797 is a denial of service vulnerability in Lighttpd's mod_wstunnel module that causes null pointer dereference on invalid websocket requests. This article covers the technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-37797 Overview

CVE-2022-37797 is a null pointer dereference vulnerability in lighttpd version 1.4.65 that affects the mod_wstunnel module. When the server receives an invalid HTTP request during a websocket handshake, the module fails to properly initialize a handler function pointer. This uninitialized pointer leads to a null pointer dereference, causing the server to crash. Remote attackers can exploit this vulnerability to create a denial of service condition against affected lighttpd installations.

Critical Impact

Remote attackers can crash lighttpd servers without authentication by sending specially crafted invalid websocket handshake requests, causing service disruption for all users relying on the affected web server.

Affected Products

  • lighttpd version 1.4.65
  • Debian Linux 10.0

Discovery Timeline

  • 2022-09-12 - CVE-2022-37797 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-37797

Vulnerability Analysis

This vulnerability stems from improper initialization of function pointers within the mod_wstunnel WebSocket tunneling module. When lighttpd receives a malformed HTTP request that fails websocket handshake validation, the code path responsible for setting up the connection handler does not properly initialize the handler function pointer. Subsequently, when the server attempts to invoke this handler, it dereferences a null pointer, triggering an immediate crash.

The vulnerability is classified as CWE-476 (Null Pointer Dereference). The attack can be executed remotely over the network without requiring any privileges or user interaction, making it particularly dangerous for internet-facing lighttpd deployments using WebSocket functionality.

Root Cause

The root cause lies in the mod_wstunnel module's error handling logic during websocket handshake processing. When an invalid HTTP request is received, the module's control flow bypasses the initialization of a critical handler function pointer. The pointer remains in an uninitialized state (null), and when the server later attempts to execute the handler, the null dereference causes the entire lighttpd process to terminate abnormally.

Attack Vector

The attack vector is network-based, requiring no authentication or special privileges. An attacker simply needs to:

  1. Establish a TCP connection to the target lighttpd server
  2. Send a malformed HTTP request that triggers the websocket handshake code path in mod_wstunnel
  3. The invalid request causes the handler function pointer to remain uninitialized
  4. When lighttpd attempts to process the request further, it dereferences the null pointer
  5. The server crashes, resulting in denial of service

The vulnerability can be triggered repeatedly, allowing an attacker to prevent the server from recovering and maintaining persistent denial of service until the attack ceases.

Detection Methods for CVE-2022-37797

Indicators of Compromise

  • Unexpected lighttpd server crashes or restarts, particularly when WebSocket functionality is enabled
  • Abnormal HTTP requests in server logs preceding crash events
  • Malformed websocket handshake requests from unusual source IPs
  • Increased volume of connection attempts to WebSocket endpoints

Detection Strategies

  • Monitor lighttpd process stability and implement alerting on unexpected terminations
  • Analyze HTTP access logs for malformed websocket handshake requests
  • Implement network-level inspection for anomalous HTTP request patterns targeting WebSocket endpoints
  • Use intrusion detection systems (IDS) to identify repeated connection attempts followed by server crashes

Monitoring Recommendations

  • Configure process monitoring to track lighttpd restarts and core dumps
  • Enable detailed logging for the mod_wstunnel module if available
  • Set up automated alerts for service unavailability
  • Monitor network traffic for patterns consistent with DoS attacks targeting websocket endpoints

How to Mitigate CVE-2022-37797

Immediate Actions Required

  • Upgrade lighttpd to a patched version newer than 1.4.65
  • If upgrading is not immediately possible, consider disabling mod_wstunnel if WebSocket functionality is not required
  • Implement rate limiting on incoming connections to mitigate the impact of DoS attempts
  • Deploy a web application firewall (WAF) to filter malformed HTTP requests

Patch Information

The lighttpd project has addressed this vulnerability in versions following 1.4.65. Administrators should consult the Lighttpd Issue #3165 for official patch information. Debian users should apply the security updates referenced in Debian DSA-5243 and the Debian LTS Announcement. Gentoo users can reference GLSA 202210-12 for package update guidance.

Workarounds

  • Disable the mod_wstunnel module entirely if WebSocket tunneling is not a required feature
  • Place lighttpd behind a reverse proxy that can validate HTTP request integrity before forwarding
  • Implement network-level access controls to restrict which clients can reach WebSocket endpoints
  • Use connection rate limiting to reduce the effectiveness of DoS attacks
bash
# Disable mod_wstunnel in lighttpd configuration
# Edit /etc/lighttpd/lighttpd.conf and comment out or remove:
# server.modules += ( "mod_wstunnel" )

# Restart lighttpd to apply changes
systemctl restart lighttpd

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLighttpd

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • Debian LTS Announcement

  • Lighttpd Issue #3165

  • Gentoo GLSA 202210-12

  • Debian DSA-5243 Security Update
  • Related CVEs
  • CVE-2022-41556: Lighttpd Denial of Service Vulnerability

  • CVE-2026-22903: Lighttpd Server RCE Vulnerability

  • CVE-2025-12642: Lighttpd Auth Bypass Vulnerability

  • CVE-2022-22707: Lighttpd Buffer Overflow Vulnerability
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