The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-34069

CVE-2024-34069: Werkzeug Debugger RCE Vulnerability

CVE-2024-34069 is a remote code execution vulnerability in Werkzeug's debugger that enables attackers to execute arbitrary code on developer machines. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-34069 Overview

CVE-2024-34069 is a Cross-Site Request Forgery (CSRF) vulnerability in Werkzeug, a comprehensive WSGI web application library widely used in Python web development. The debugger component in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under specific circumstances. This requires the attacker to trick the developer into interacting with a domain and subdomain they control and entering the debugger PIN. If successful, this allows access to the debugger even when it is only running on localhost.

Critical Impact

Successful exploitation enables attackers to achieve remote code execution on developer machines through the Werkzeug debugger, potentially compromising development environments and source code repositories.

Affected Products

  • Palletsprojects Werkzeug (versions prior to 3.0.3)
  • Debian Linux 11.0
  • Fedora 38 and 40

Discovery Timeline

  • May 6, 2024 - CVE-2024-34069 published to NVD
  • December 3, 2025 - Last updated in NVD database

Technical Details for CVE-2024-34069

Vulnerability Analysis

The vulnerability exists in Werkzeug's interactive debugger, which is commonly used during Python web application development with frameworks like Flask. The debugger provides an interactive console that allows developers to inspect variables and execute Python code when exceptions occur.

The core issue is a Cross-Site Request Forgery weakness (CWE-352) in how the debugger handles cross-origin requests. While the debugger typically requires a PIN for authentication, an attacker controlling a malicious domain and subdomain can craft requests that bypass certain security controls when a developer is tricked into visiting the attacker's site.

For successful exploitation, several conditions must be met: the attacker must control a domain the developer visits, the developer must enter the debugger PIN on the attacker's site, and the attacker must be able to guess a URL in the developer's application that will trigger the debugger. Despite these prerequisites, the attack vector is network-based and requires user interaction.

Root Cause

The vulnerability stems from insufficient cross-origin request validation in the Werkzeug debugger. The debugger did not adequately verify the origin of requests, allowing malicious sites to interact with the debugger interface running on localhost when combined with PIN entry from an unsuspecting developer.

Attack Vector

The attack leverages a network-based vector requiring social engineering. An attacker must:

  1. Set up a malicious domain and subdomain under their control
  2. Lure a developer to visit their malicious site while running a Werkzeug-based application with the debugger enabled
  3. Trick the developer into entering the debugger PIN
  4. Guess or enumerate a URL in the target application that triggers an exception and activates the debugger

Once these conditions are met, the attacker can execute arbitrary Python code through the debugger console, effectively achieving remote code execution on the developer's machine.

The vulnerability primarily affects development environments where the Werkzeug debugger is enabled. Production deployments should never have the debugger enabled, limiting the exposure to developer workstations. See the GitHub Security Advisory for additional technical details.

Detection Methods for CVE-2024-34069

Indicators of Compromise

  • Unexpected outbound connections from development machines to unfamiliar domains
  • Unusual process spawning from Python or Werkzeug debugger processes
  • Log entries showing debugger access from non-localhost origins
  • Evidence of cross-origin requests targeting the debugger endpoint

Detection Strategies

  • Monitor for Flask or Werkzeug applications running with WERKZEUG_DEBUG_PIN environment variable in development environments
  • Implement network monitoring to detect connections to the Werkzeug debugger port from external sources
  • Review web server logs for suspicious requests targeting debugger endpoints (typically containing __debugger__ in the URL path)
  • Deploy endpoint detection solutions to identify unexpected code execution patterns from Python processes

Monitoring Recommendations

  • Configure SentinelOne agents to monitor Python process behavior on developer workstations
  • Implement DNS monitoring to detect developer machines connecting to newly registered or suspicious domains
  • Enable logging of all debugger access attempts in development environments
  • Set up alerts for any production systems that may inadvertently have the debugger enabled

How to Mitigate CVE-2024-34069

Immediate Actions Required

  • Upgrade Werkzeug to version 3.0.3 or later immediately across all development environments
  • Audit all Python applications to ensure the Werkzeug debugger is not enabled in production
  • Review recent developer activity for signs of social engineering attempts
  • Implement network segmentation to isolate development environments

Patch Information

The vulnerability has been fixed in Werkzeug version 3.0.3. The fix is available in GitHub commit 3386395b24c7371db11a5b8eaac0c91da5362692. Users should update their Werkzeug installation using pip:

Additionally, security advisories have been issued by Fedora, Debian LTS, and NetApp.

Workarounds

  • Disable the Werkzeug debugger entirely by setting debug=False in Flask applications
  • Configure the debugger to only accept connections from 127.0.0.1 and ensure proper CORS policies
  • Use environment-based configuration to ensure the debugger is never accidentally enabled in non-development environments
  • Implement browser security extensions to warn developers about suspicious cross-origin interactions
bash
# Upgrade Werkzeug to patched version
pip install --upgrade werkzeug>=3.0.3

# Verify installed version
pip show werkzeug | grep Version

# For Flask applications, ensure debug mode is disabled in production
export FLASK_DEBUG=0
export FLASK_ENV=production

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWerkzeug

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability41.94%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-352
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27199: Werkzeug Path Traversal Vulnerability

  • CVE-2026-21860: Werkzeug Path Traversal Vulnerability

  • CVE-2024-49767: Palletsprojects Quart DoS Vulnerability

  • CVE-2023-46136: Werkzeug Multipart Parsing DoS Vulnerability
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