Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-15382

CVE-2025-15382: wolfSSH Heap Buffer Overflow Vulnerability

CVE-2025-15382 is a heap buffer over-read flaw in wolfSSH's wolfSSH_CleanPath() function. Authenticated attackers can exploit crafted SCP paths to trigger memory over-read. This article covers technical details, impact, and mitigations.

Updated: January 22, 2026

CVE-2025-15382 Overview

A heap buffer over-read vulnerability has been identified in the wolfSSH_CleanPath() function within wolfSSH. This vulnerability allows an authenticated remote attacker to trigger a heap over-read by one byte through specially crafted SCP path input containing '/./' sequences. The issue is classified as an Out-of-Bounds Read (CWE-125), which can potentially lead to information disclosure or denial of service conditions.

Critical Impact

Authenticated attackers can exploit crafted SCP path inputs to cause a one-byte heap over-read, potentially exposing sensitive memory contents or causing application instability.

Affected Products

  • wolfSSH (versions prior to the security patch)
  • Applications and systems utilizing wolfSSH for SCP functionality
  • Embedded devices implementing wolfSSH for secure shell communications

Discovery Timeline

  • 2026-01-06 - CVE CVE-2025-15382 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2025-15382

Vulnerability Analysis

The vulnerability resides in the wolfSSH_CleanPath() function, which is responsible for sanitizing and normalizing file paths during SCP (Secure Copy Protocol) operations. When processing path strings containing specific directory traversal sequences such as '/./', the function fails to properly validate buffer boundaries, resulting in a one-byte heap over-read condition.

This type of memory safety issue can have several implications for affected systems. While the over-read is limited to one byte, it represents a memory safety boundary violation that could potentially expose adjacent heap memory contents. In certain scenarios, this could leak sensitive information or cause the application to behave unpredictably.

The attack requires the attacker to be authenticated to the wolfSSH server, which limits the exploitability to scenarios where the attacker already has valid credentials or has compromised authentication through other means.

Root Cause

The root cause of this vulnerability is insufficient bounds checking in the wolfSSH_CleanPath() function when processing directory path components. The function iterates through path segments to normalize relative path references (such as '/./' which represents the current directory), but the logic fails to account for the exact buffer boundaries when handling these sequences at certain positions within the path string.

Specifically, when the function encounters a '/./' sequence near the end of a buffer or in certain edge cases during path normalization, it reads one byte beyond the allocated heap buffer. This occurs because the pointer arithmetic or length calculations do not properly account for the null terminator or the exact allocation size of the path buffer.

Attack Vector

The attack can be executed remotely over the network by an authenticated user. The attacker must establish an SSH connection to a vulnerable wolfSSH server and initiate an SCP operation with a maliciously crafted path containing '/./' sequences designed to trigger the boundary condition error.

The exploitation flow involves:

  1. The attacker authenticates to a wolfSSH server using valid credentials
  2. The attacker initiates an SCP request with a crafted path containing '/./' sequences
  3. The wolfSSH_CleanPath() function processes the malicious path
  4. The function reads one byte beyond the allocated buffer during path normalization
  5. Depending on memory layout, this could expose memory contents or cause instability

Since no verified code examples are available for this vulnerability, security researchers should refer to the GitHub Pull Request for wolfSSH for detailed technical analysis of the vulnerable code path and the implemented fix.

Detection Methods for CVE-2025-15382

Indicators of Compromise

  • Unusual or malformed SCP path requests containing multiple '/./' sequences in SSH/SCP logs
  • Application crashes or memory access violations in wolfSSH-based services
  • Unexpected memory access patterns detected by memory sanitizers (ASan, Valgrind)

Detection Strategies

  • Monitor SCP request logs for path inputs with abnormal patterns such as repeated '/./' sequences
  • Deploy memory sanitization tools in development and staging environments to detect out-of-bounds access
  • Implement application-level logging for the wolfSSH_CleanPath() function to capture suspicious path normalization attempts
  • Use network intrusion detection systems to flag SCP sessions with unusual path patterns

Monitoring Recommendations

  • Enable verbose logging on wolfSSH-enabled services to capture detailed path information during SCP operations
  • Implement real-time alerting for application crashes or segmentation faults in SSH/SCP services
  • Monitor system memory utilization for anomalies that could indicate exploitation attempts
  • Review authentication logs for unusual patterns that may precede exploitation attempts

How to Mitigate CVE-2025-15382

Immediate Actions Required

  • Apply the security patch from the wolfSSH project as soon as it becomes available
  • Review and restrict SCP access to only trusted, authenticated users
  • Implement network segmentation to limit exposure of wolfSSH services
  • Consider temporarily disabling SCP functionality if not business-critical until patching is complete

Patch Information

The wolfSSH development team has addressed this vulnerability through a code fix. The patch is available via the GitHub Pull Request for wolfSSH. Organizations using wolfSSH should update to the patched version that includes the fix for the wolfSSH_CleanPath() function.

The fix ensures proper bounds checking during path normalization operations, preventing the one-byte heap over-read condition when processing '/./' sequences in SCP paths.

Workarounds

  • Restrict access to SCP functionality through firewall rules or access control lists to limit exposure
  • Implement application-level input validation to filter or reject paths containing suspicious patterns before they reach wolfSSH
  • Use a web application firewall or similar technology to inspect and filter SCP requests at the network level
  • Monitor for and immediately investigate any unusual SCP activity from authenticated users
bash
# Example: Restrict SCP access via firewall (iptables)
# Limit SSH/SCP access to trusted IP ranges only
iptables -A INPUT -p tcp --dport 22 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechWolfssh

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Pull Request for wolfSSH
  • Related CVEs
  • CVE-2025-11624: WolfSSH SFTP Buffer Overflow Vulnerability

  • CVE-2025-14942: wolfSSH Auth Bypass Vulnerability

  • CVE-2024-2873: WolfSSH Auth Bypass Vulnerability

  • CVE-2025-11625: WolfSSH 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