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-2026-45089

CVE-2026-45089: Dalfox Path Traversal Vulnerability

CVE-2026-45089 is a path traversal flaw in Dalfox that allows unauthenticated attackers to write to arbitrary files on the host system. This post covers technical details, affected versions, impact, and mitigation.

Published: May 28, 2026

CVE-2026-45089 Overview

CVE-2026-45089 is an arbitrary file write vulnerability in Dalfox, an open-source Cross-Site Scripting (XSS) scanner and automation utility. The flaw affects versions prior to 2.13.0 when Dalfox runs in REST API server mode. Attacker-controlled JSON fields (output, output-all, and debug) in model.Options are deserialized from request bodies and passed unchanged into the logging path. The logger opens the supplied path with os.O_APPEND|os.O_CREATE|os.O_WRONLY and writes scan log content to it. The file write executes outside the IsLibrary guard, so it runs in server mode where file output was never intended. The default configuration requires no API key, exposing the endpoint to unauthenticated network callers. This issue is classified as [CWE-73] External Control of File Name or Path.

Critical Impact

Unauthenticated network attackers can create or append to any file writable by the Dalfox process, enabling configuration tampering, log injection, and potential privilege abuse on the host filesystem.

Affected Products

  • Dalfox versions prior to 2.13.0 running in REST API server mode
  • Default deployments without API key authentication configured
  • Any host filesystem location writable by the Dalfox process user

Discovery Timeline

  • 2026-05-27 - CVE-2026-45089 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-45089

Vulnerability Analysis

Dalfox exposes a REST API server mode intended for programmatic scan orchestration. The API accepts JSON request bodies that map directly to the model.Options struct via JSON tags. Three fields control output destinations: output, output-all, and debug. These values flow unchanged through dalfox.Initialize into the scan engine's logging code.

The DalLog function opens the supplied path with append, create, and write-only flags. This logic sits outside the IsLibrary conditional that should gate filesystem writes when Dalfox runs as a server or embedded library. Because the guard is missing, file output executes during every server-mode scan that includes these fields.

The default configuration ships without an API key requirement. Any network caller that can reach the listening port can submit scan requests and direct log output to arbitrary filesystem paths.

Root Cause

The root cause is improper input validation on filesystem paths combined with a missing execution-context guard. The DalLog writer trusts attacker-supplied path strings without sanitization, allowlisting, or directory containment checks. The IsLibrary mode check that disables filesystem side effects in library and server contexts does not wrap the log file write block.

Attack Vector

An unauthenticated attacker sends an HTTP request to the Dalfox REST API scan endpoint. The JSON body sets output, output-all, or debug to a target path such as a cron file, SSH authorized_keys, shell profile, or web root file. When Dalfox processes the scan, the logger creates or appends scan output to the attacker-specified location. Repeated requests allow controlled content placement in any location writable by the Dalfox process account. The vulnerability mechanism is documented in the GitHub Security Advisory GHSA-8hf9-3q64-q2qf.

Detection Methods for CVE-2026-45089

Indicators of Compromise

  • Unexpected files created or modified by the Dalfox process user containing scan log content or XSS payload strings
  • HTTP POST requests to the Dalfox REST API endpoint with output, output-all, or debug JSON fields containing absolute paths or path traversal sequences
  • New entries in sensitive files such as ~/.ssh/authorized_keys, /etc/cron.d/, or web-accessible directories matching Dalfox log format

Detection Strategies

  • Inspect HTTP request bodies destined for Dalfox API listeners for JSON keys output, output-all, and debug referencing paths outside expected scan output directories
  • Monitor file creation events from the Dalfox process and alert on writes to paths outside a designated scan output directory
  • Audit Dalfox deployment configurations to identify instances running in server mode without an API key set

Monitoring Recommendations

  • Enable filesystem audit logging on hosts running Dalfox and forward events to a central log platform for correlation
  • Track outbound network exposure of Dalfox API ports and restrict listeners to loopback or internal management networks
  • Review process command lines for Dalfox invocations using server subcommand flags and verify version is 2.13.0 or later

How to Mitigate CVE-2026-45089

Immediate Actions Required

  • Upgrade Dalfox to version 2.13.0 or later, which fixes the missing IsLibrary guard around log file writes
  • Restrict network access to Dalfox REST API listeners using firewall rules or bind to loopback only
  • Run Dalfox as a low-privilege account with no write access to sensitive system paths or user home directories

Patch Information

The fix is included in Dalfox 2.13.0. Release details and source changes are available in the GitHub Dalfox Release v2.13.0 notes. The patch enforces the IsLibrary execution-context check around the file write block in DalLog so server and library modes no longer write attacker-controlled paths.

Workarounds

  • Configure an API key for the Dalfox REST API server and reject unauthenticated requests at a reverse proxy
  • Deploy Dalfox inside a container or chroot with a minimal writable filesystem to limit the blast radius of arbitrary writes
  • Place a reverse proxy in front of the Dalfox API that strips or rejects requests containing output, output-all, or debug fields until the host is patched
bash
# Configuration example: upgrade and restrict network exposure
go install github.com/hahwul/dalfox/v2@v2.13.0

# Bind the API server to loopback only
dalfox server --host 127.0.0.1 --port 6664

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechDalfox

  • SeverityHIGH

  • CVSS Score8.2

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-73
  • Technical References
  • GitHub Dalfox Release v2.13.0

  • GitHub Security Advisory GHSA-8hf9-3q64-q2qf
  • Related CVEs
  • CVE-2026-45088: Dalfox XSS Scanner File Read Vulnerability

  • CVE-2026-45090: Dalfox XSS Scanner DoS Vulnerability

  • CVE-2026-45087: Dalfox XSS Scanner RCE 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