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-2024-8998

CVE-2024-8998: Lunary Regular Expression DoS Vulnerability

CVE-2024-8998 is a Regular Expression Denial of Service flaw in Lunary that allows attackers to cause server hangs through crafted payloads. This article covers the technical details, affected versions, and mitigation.

Published: June 2, 2026

CVE-2024-8998 Overview

CVE-2024-8998 is a Regular Expression Denial of Service (ReDoS) vulnerability in lunary-ai/lunary, an open-source observability platform for large language model (LLM) applications. The flaw affects the server-side regex pattern /{.*?}/, which is applied to user-controlled input. Under the default JavaScript regex engine, this pattern exhibits polynomial-time complexity against crafted strings. Attackers can submit specially designed payloads over the network to cause the server to hang for an arbitrary duration, exhausting CPU resources. The issue is tracked under [CWE-1333] (Inefficient Regular Expression Complexity) and is resolved in Lunary version 1.4.26.

Critical Impact

An unauthenticated remote attacker can stall the Lunary server indefinitely with a single crafted HTTP payload, denying service to all users.

Affected Products

  • lunary-ai/lunary at commit f07a845
  • All Lunary versions prior to 1.4.26
  • Lunary self-hosted deployments using the default regex engine

Discovery Timeline

  • 2025-03-20 - CVE-2024-8998 published to NVD
  • 2025-04-04 - Last updated in NVD database

Technical Details for CVE-2024-8998

Vulnerability Analysis

The vulnerability resides in a server-side handler that applies the regular expression /{.*?}/ to strings supplied by the client. The pattern uses a lazy quantifier inside curly brace delimiters, intended to locate template-style placeholders within user content. While the pattern appears benign, the default V8 regex engine used by Node.js exhibits non-linear matching behavior when the input contains many opening braces without matching closing braces, or other adversarial sequences. Each additional character in the malicious payload amplifies CPU time spent in backtracking and lazy-match expansion. The Lunary server, running a single-threaded Node.js event loop, becomes unresponsive to all concurrent requests during this matching. Refer to the Huntr Bounty Details for the published proof-of-concept and matching benchmarks.

Root Cause

The root cause is the use of an inefficient regex pattern against unbounded, untrusted input without size limits, timeout enforcement, or use of a linear-time regex engine. Input validation and length capping are absent on the affected endpoint.

Attack Vector

The attack is network-reachable and requires no authentication or user interaction. An adversary sends an HTTP request containing a crafted string designed to maximize regex backtracking. The Lunary server applies the vulnerable regex during request processing and blocks the event loop, halting all incoming traffic until matching completes or the process is terminated.

No public exploit code is referenced in the CVE record. The vulnerability mechanism is described in prose because no verified proof-of-concept payload is published in the available references beyond the Huntr report.

Detection Methods for CVE-2024-8998

Indicators of Compromise

  • Sustained 100% CPU utilization on the Node.js process hosting Lunary while inbound traffic volume remains low.
  • HTTP requests to Lunary endpoints containing unusually long strings with repeated { characters or unbalanced brace sequences.
  • Application logs showing request handlers that never return or time out on inputs to fields parsed by the template regex.

Detection Strategies

  • Inspect web access logs for POST or query parameters exceeding expected length thresholds on Lunary API routes.
  • Correlate process-level CPU spikes with specific inbound request IDs to isolate offending payloads.
  • Deploy a Web Application Firewall (WAF) rule that flags request bodies containing more than a configurable number of unmatched { characters.

Monitoring Recommendations

  • Track event loop lag metrics for the Lunary Node.js process and alert on sustained latency above 500ms.
  • Monitor HTTP request duration percentiles; alert when the p99 latency on Lunary endpoints exceeds normal baselines.
  • Forward Lunary application and reverse-proxy logs to a centralized SIEM for retroactive payload analysis.

How to Mitigate CVE-2024-8998

Immediate Actions Required

  • Upgrade lunary-ai/lunary to version 1.4.26 or later, which replaces the vulnerable regex with a safe implementation.
  • Restrict network exposure of self-hosted Lunary instances to trusted networks until the patch is applied.
  • Apply request size limits at the reverse proxy or load balancer in front of Lunary.

Patch Information

The maintainers fixed the issue in the upstream commit referenced in the GitHub Commit Update. The fix is included in Lunary 1.4.26. Operators running container images should rebuild from the patched release tag.

Workarounds

  • Place a reverse proxy such as NGINX in front of Lunary and cap request body size with client_max_body_size to limit payload length.
  • Add a WAF rule that rejects requests containing more than a small number of { characters in body or query parameters.
  • Run the Lunary process behind a watchdog that restarts the service when CPU saturation persists beyond a defined threshold.
bash
# NGINX example: cap request body and reject suspicious payloads
http {
    client_max_body_size 64k;
    client_body_timeout 5s;

    map $request_body $redos_payload {
        "~*\{{20,}"  1;
        default       0;
    }

    server {
        location /api/ {
            if ($redos_payload) { return 400; }
            proxy_pass http://lunary_upstream;
            proxy_read_timeout 10s;
        }
    }
}

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLunary

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.36%

  • 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-1333
  • Technical References
  • Huntr Bounty Details
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2024-4148: Lunary Application ReDoS DoS Vulnerability

  • CVE-2024-5386: Lunary Auth Bypass Vulnerability

  • CVE-2025-9803: Lunary Authentication Bypass Vulnerability

  • CVE-2025-5352: Lunary Analytics Stored XSS 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