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-7340

CVE-2024-7340: Weave Server Path Traversal Vulnerability

CVE-2024-7340 is a path traversal flaw in Weave server API that allows remote attackers to access arbitrary files and escalate privileges to admin. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-7340 Overview

CVE-2024-7340 is a path traversal vulnerability in the Weave server API that allows remote users to fetch files from a specific directory. Due to a lack of input validation, attackers can traverse directory structures and leak arbitrary files remotely. In various common scenarios, this allows a low-privileged user to assume the role of the server admin, significantly escalating their privileges within the system.

Critical Impact

Remote attackers with low-level access can exploit this path traversal flaw to read sensitive files and potentially escalate privileges to server administrator level.

Affected Products

  • Weave Server (Weights & Biases)
  • wandb/weave package versions prior to patch

Discovery Timeline

  • 2024-07-31 - CVE-2024-7340 published to NVD
  • 2024-11-25 - Last updated in NVD database

Technical Details for CVE-2024-7340

Vulnerability Analysis

This vulnerability stems from insufficient input validation in the Weave server API's file retrieval functionality. The API is designed to allow remote users to fetch files from a designated directory, but fails to properly sanitize user-supplied input for path traversal sequences such as ../. This improper input validation (CWE-20) combined with the path traversal weakness (CWE-22) enables attackers to escape the intended directory constraints and access arbitrary files on the server filesystem.

The network-accessible nature of this vulnerability means that any authenticated user with low-level privileges can potentially exploit it without requiring any user interaction. The successful exploitation results in high impact to confidentiality, integrity, and availability, as sensitive configuration files, credentials, and system data may be exposed, potentially allowing the attacker to assume administrative control of the server.

Root Cause

The root cause is improper input validation (CWE-20) combined with path traversal (CWE-22) in the file retrieval functionality. The Weave server API does not adequately sanitize file path parameters, allowing directory traversal sequences to bypass intended access restrictions. When processing file requests, the application concatenates user-supplied input directly into file system paths without validating that the resulting path stays within the allowed directory boundary.

Attack Vector

The attack is executed over the network by an authenticated user with minimal privileges. An attacker sends crafted API requests containing path traversal sequences (e.g., ../../../etc/passwd or similar patterns) to the file retrieval endpoint. Since the server fails to validate and normalize the requested path, it follows the traversal sequences and returns files outside the designated directory.

The exploitation chain typically involves:

  1. Authenticating to the Weave server with a low-privilege account
  2. Identifying the vulnerable file retrieval API endpoint
  3. Crafting malicious requests with path traversal payloads
  4. Retrieving sensitive files such as configuration files, API keys, or authentication tokens
  5. Using obtained credentials or secrets to escalate privileges to server administrator

For technical details on the vulnerability mechanism, refer to the JFrog Vulnerability Report.

Detection Methods for CVE-2024-7340

Indicators of Compromise

  • Unusual file access patterns in server logs, particularly requests containing ../ sequences
  • API requests targeting paths outside the expected directory structure
  • Unexpected access to sensitive system files like /etc/passwd, configuration files, or credential stores
  • Authentication anomalies or privilege escalation events following file access attempts

Detection Strategies

  • Monitor web server and application logs for path traversal patterns including ../, ..\, %2e%2e%2f, and URL-encoded variants
  • Implement Web Application Firewall (WAF) rules to detect and block path traversal attempts in API requests
  • Deploy file integrity monitoring on sensitive directories to detect unauthorized read access
  • Utilize SentinelOne Singularity XDR to detect suspicious file access patterns and potential exploitation activity

Monitoring Recommendations

  • Enable verbose logging on the Weave server API to capture detailed request information
  • Configure alerts for any file access outside designated directories
  • Monitor for sudden changes in user privilege levels that may indicate successful exploitation
  • Review authentication logs for anomalous login patterns following potential exploitation attempts

How to Mitigate CVE-2024-7340

Immediate Actions Required

  • Update Weave server to the latest patched version immediately
  • Review access logs for signs of exploitation attempts or successful attacks
  • Audit user accounts for any unauthorized privilege escalations
  • Implement network segmentation to limit exposure of the Weave server API
  • Rotate any credentials or API keys that may have been exposed

Patch Information

The vulnerability has been addressed by the Weights & Biases team. The fix is available in the GitHub Pull Request #1657. Organizations should update their Weave server installation to incorporate this security patch. Review the JFrog Vulnerability Report for additional technical details and remediation guidance.

Workarounds

  • Implement strict input validation at the network perimeter using WAF rules to block path traversal patterns
  • Restrict network access to the Weave server API to trusted IP ranges only
  • Run the Weave server in a containerized environment with limited filesystem access
  • Apply principle of least privilege to the Weave server process, limiting its ability to read sensitive system files
bash
# Example WAF rule to block path traversal attempts
# Add to your reverse proxy or WAF configuration
SecRule REQUEST_URI "@rx \.\./" "id:1001,phase:1,deny,status:403,msg:'Path Traversal Attempt'"
SecRule REQUEST_URI "@rx %2e%2e%2f" "id:1002,phase:1,deny,status:403,msg:'Encoded Path Traversal Attempt'"

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWeave

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability87.70%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22

  • CWE-20
  • Technical References
  • GitHub Pull Request

  • JFrog Vulnerability Report
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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