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
    • 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-3466

CVE-2025-3466: Langgenius Dify RCE Vulnerability

CVE-2025-3466 is a remote code execution vulnerability in Langgenius Dify versions 1.1.0 to 1.1.2 that allows attackers to execute arbitrary code with root permissions. This article covers technical details, affected versions, impact, and mitigation.

Published: May 11, 2026

CVE-2025-3466 Overview

CVE-2025-3466 affects langgenius/dify versions 1.1.0 through 1.1.2, an open-source LLM application development platform. The vulnerability resides in the code node, which fails to sanitize user-supplied JavaScript input before sandbox restrictions are applied. Attackers can override global functions such as parseInt to break out of the sandbox and execute arbitrary code with root privileges. Successful exploitation grants access to secret keys, internal network servers, and enables lateral movement within dify.ai deployments. The maintainers fixed the issue in version 1.1.3.

Critical Impact

Authenticated attackers can escape the JavaScript sandbox in the dify code node and execute arbitrary code as root, exposing secrets and enabling lateral movement.

Affected Products

  • langgenius dify 1.1.0
  • langgenius dify 1.1.1
  • langgenius dify 1.1.2

Discovery Timeline

  • 2025-07-07 - CVE-2025-3466 published to NVD
  • 2025-07-10 - Last updated in NVD database

Technical Details for CVE-2025-3466

Vulnerability Analysis

The dify platform exposes a code node that lets users run JavaScript snippets as part of application workflows. The runtime invokes user-supplied code before the sandbox security layer fully isolates the execution context. This ordering flaw lets an attacker redefine built-in global functions such as parseInt so that subsequent sandbox or platform logic calls the attacker-controlled implementation. Once a host-side function consumes the overridden global, the attacker's code runs with the privileges of the dify worker process, which executes as root.

This class of weakness maps to CWE-1100, insufficient isolation of system-dependent functions. The result is a full sandbox escape that yields arbitrary code execution on the host. Attackers can read environment secrets, API keys, and database credentials. They can also pivot to internal services reachable from the dify host, enabling lateral movement across the dify.ai environment.

Root Cause

The code node initializes the JavaScript execution context without freezing or shadowing global built-ins before running untrusted code. User code can therefore reassign globals like parseInt. When the sandbox harness or supporting library later invokes that global, it executes the attacker's function in a privileged context.

Attack Vector

Exploitation requires an authenticated user with permission to define or edit a workflow containing a code node. The attacker submits JavaScript that overrides a commonly used global, then triggers the workflow. The vulnerability is exploitable over the network against any dify instance running an affected version. Refer to the Huntr bounty listing for the technical writeup.

Detection Methods for CVE-2025-3466

Indicators of Compromise

  • Workflow code nodes containing reassignments of JavaScript globals such as parseInt, parseFloat, Array, or Object.prototype members.
  • Unexpected outbound connections from the dify worker container to internal network ranges or metadata services.
  • Process executions spawned by the dify runtime that are inconsistent with normal workflow operations, such as sh, curl, or nc.
  • Access to environment files, /proc/self/environ, or secret stores from the dify worker process.

Detection Strategies

  • Audit stored workflow definitions for code nodes that redefine global identifiers or wrap built-in functions.
  • Monitor the dify worker process for child processes outside the expected JavaScript runtime.
  • Alert on dify host egress to non-approved internal subnets, especially cloud metadata endpoints such as 169.254.169.254.

Monitoring Recommendations

  • Enable verbose logging on the dify code node executor and forward logs to a central SIEM for review.
  • Track authentication events for accounts with workflow edit privileges and flag bulk workflow modifications.
  • Baseline normal network behavior for the dify deployment and alert on deviations indicating lateral movement.

How to Mitigate CVE-2025-3466

Immediate Actions Required

  • Upgrade all dify instances to version 1.1.3 or later, which contains the official fix.
  • Review workflow audit logs for code nodes created or modified between the 1.1.0 release and patch deployment.
  • Rotate any secrets, API keys, and credentials accessible to the dify worker process if exploitation is suspected.
  • Restrict the user roles permitted to create or edit code nodes until patching is complete.

Patch Information

The langgenius maintainers released the fix in dify 1.1.3. The remediation is published in the upstream GitHub commit. Operators running self-hosted deployments should pull the patched image or rebuild from the tagged release.

Workarounds

  • Disable the code node feature in dify until the upgrade to 1.1.3 is applied.
  • Place the dify worker behind strict egress filtering that blocks access to internal services and cloud metadata endpoints.
  • Run the dify worker container as a non-root user and with a read-only filesystem to limit the impact of a sandbox escape.
bash
# Upgrade dify to the patched release
git fetch --tags
git checkout 1.1.3
docker compose pull
docker compose up -d

# Verify running version
docker compose exec api python -c "import dify; print(dify.__version__)"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLanggenius Dify

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability1.00%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1100
  • Technical References
  • Huntr Bounty Listing
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2025-63386: Langgenius Dify Auth Bypass Vulnerability

  • CVE-2025-56157: Langgenius Dify Auth Bypass Vulnerability

  • CVE-2025-63388: Langgenius Dify Auth Bypass Vulnerability

  • CVE-2025-63387: Langgenius Dify Auth Bypass 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