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-2025-0182

CVE-2025-0182: Danswer AI Memory Exhaustion DoS Vulnerability

CVE-2025-0182 is a denial of service vulnerability in danswer-ai/danswer 0.9.0 that enables memory exhaustion attacks. Attackers can exploit the /auth/saml/callback endpoint to crash the service. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Updated: May 19, 2026

CVE-2025-0182 Overview

CVE-2025-0182 is a denial of service vulnerability affecting danswer-ai/danswer version 0.9.0. The flaw stems from a transitive dependency on a vulnerable version of the starlette package (<=0.49) pulled in through fastapi. Attackers can send repeated requests to the /auth/saml/callback endpoint to trigger uncontrolled memory consumption, eventually exhausting available memory and crashing the service. The weakness is classified as [CWE-770] (Allocation of Resources Without Limits or Throttling). No authentication is required, and the attack can be launched remotely over the network.

Critical Impact

Unauthenticated remote attackers can exhaust application memory by flooding the SAML callback endpoint, causing service downtime.

Affected Products

  • danswer-ai/danswer version 0.9.0
  • fastapi versions prior to 0.115.3
  • starlette versions <=0.49

Discovery Timeline

  • 2025-03-20 - CVE-2025-0182 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-0182

Vulnerability Analysis

The vulnerability resides in how danswer-ai/danswer 0.9.0 processes inbound requests through its fastapi web layer. fastapi versions before 0.115.3 depend on starlette releases <=0.49, which contain a memory handling flaw in request parsing. The /auth/saml/callback endpoint accepts SAML response payloads without enforcing strict allocation limits.

An attacker submits repeated requests to this endpoint, each causing the server to allocate memory that is not promptly released. As request volume grows, resident memory climbs until the worker process is killed by the operating system or becomes unresponsive. The end result is a denial of service condition affecting all legitimate users of the application.

Because the endpoint participates in authentication flows, it is exposed on the network perimeter of typical danswer deployments. The Huntr bounty report confirms reproducibility against an unpatched 0.9.0 instance.

Root Cause

The root cause is improper resource management in the upstream starlette package. Request body and form parsing routines allocate buffers without imposing upper bounds tied to client behavior. When chained behind fastapi and exposed through the SAML callback handler, the missing throttling allows attacker-controlled memory growth aligned with [CWE-770].

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker scripts a loop that issues HTTP POST requests to /auth/saml/callback with crafted bodies. Each request consumes additional memory on the target host. Sustained traffic exhausts memory, leading to process termination or system-level OOM events. Refer to the Huntr Bounty Report for reproduction details.

Detection Methods for CVE-2025-0182

Indicators of Compromise

  • Sustained high volume of HTTP POST requests to /auth/saml/callback from a single source or small set of sources.
  • Rapid growth in resident memory (RSS) of the danswer or uvicorn/gunicorn worker processes.
  • OOM killer events in dmesg or systemd journal terminating danswer worker processes.
  • HTTP 5xx error spikes from the danswer service correlated with traffic to the SAML endpoint.

Detection Strategies

  • Monitor request rates per client IP against the /auth/saml/callback route and alert on anomalous volumes.
  • Correlate web server access logs with host memory metrics to surface allocation patterns tied to specific endpoints.
  • Inventory Python dependencies in deployed images and flag installations of starlette<=0.49 or fastapi<0.115.3.

Monitoring Recommendations

  • Track process memory growth rates for danswer workers and alert when usage exceeds defined thresholds.
  • Forward web access logs and OOM kill events to a centralized logging platform for correlation.
  • Run scheduled Software Composition Analysis (SCA) scans against danswer container images to catch vulnerable transitive dependencies.

How to Mitigate CVE-2025-0182

Immediate Actions Required

  • Upgrade fastapi to version 0.115.3 or later, which pulls in a patched starlette release.
  • If a danswer release that bundles the fix is unavailable, pin starlette to a fixed version in the deployment manifest.
  • Place the danswer application behind a reverse proxy or WAF configured to rate-limit /auth/saml/callback.
  • Restrict network exposure of the SAML callback endpoint to trusted identity provider IP ranges where feasible.

Patch Information

The upstream fix is delivered through fastapi version 0.115.3, which depends on a patched starlette release above 0.49. Operators of danswer-ai/danswer 0.9.0 should update the dependency set and rebuild deployment images. See the Huntr Bounty Report for the disclosure record.

Workarounds

  • Apply rate limiting at the ingress layer to cap requests per second to /auth/saml/callback per source IP.
  • Set process-level memory limits using cgroups, container memory caps, or systemd MemoryMax to contain blast radius.
  • Temporarily disable SAML authentication if it is not in use, removing the vulnerable route from the attack surface.
bash
# Configuration example
# Upgrade the vulnerable dependencies
pip install --upgrade 'fastapi>=0.115.3' 'starlette>0.49'

# Verify installed versions
pip show fastapi starlette

# Example nginx rate limit for the SAML callback endpoint
# Add to the http {} block:
#   limit_req_zone $binary_remote_addr zone=saml:10m rate=5r/s;
# Add to the location block:
#   location /auth/saml/callback {
#       limit_req zone=saml burst=10 nodelay;
#       proxy_pass http://danswer_backend;
#   }

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechFastapi

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-770
  • Technical References
  • Huntr Bounty Report
  • Related CVEs
  • CVE-2026-36724: FastapiAdmin DoS Vulnerability

  • CVE-2026-36725: FastapiAdmin XSS Vulnerability

  • CVE-2026-36728: FastapiAdmin XSS Vulnerability

  • CVE-2025-49126: Visionatrix 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