A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-15079

CVE-2025-15079: libcurl SSH Host Verification Bypass

CVE-2025-15079 is an information disclosure flaw in libcurl that bypasses SSH host verification during SCP/SFTP transfers. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-15079 Overview

CVE-2025-15079 is a certificate validation bypass vulnerability in libcurl that affects SSH-based file transfers using SCP or SFTP protocols. When applications configure a specific known_hosts file for SSH host key verification, libcurl may incorrectly accept connections to hosts that are not present in the specified file if those hosts exist in the libssh global known_hosts file. This behavior undermines the security controls intended by the application developer, potentially allowing man-in-the-middle attacks.

Critical Impact

Applications relying on custom known_hosts files for strict host verification may inadvertently connect to unauthorized SSH servers, potentially exposing sensitive data during SCP/SFTP transfers.

Affected Products

  • libcurl (versions using libssh backend for SCP/SFTP)
  • Applications using libcurl for SSH-based file transfers with custom known_hosts configuration

Discovery Timeline

  • 2026-01-07 - Vulnerability disclosed on Openwall OSS Security mailing list
  • 2026-01-08 - CVE CVE-2025-15079 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2025-15079

Vulnerability Analysis

This vulnerability is classified as CWE-297 (Improper Validation of Certificate with Host Mismatch). The core issue lies in how libcurl handles SSH host key verification when using the libssh backend for SCP and SFTP transfers.

When an application explicitly sets a custom known_hosts file via the CURLOPT_SSH_KNOWNHOSTS option, the expectation is that only hosts present in that specific file will be accepted. However, due to a flaw in the host verification logic, libcurl also consults the libssh global known_hosts file (typically located at /etc/ssh/ssh_known_hosts or ~/.ssh/known_hosts) and accepts connections to hosts found there, even if they are absent from the application-specified file.

This behavior violates the principle of least privilege and breaks the security model that applications may depend on for isolating SSH trust decisions. The vulnerability requires network access and user interaction, making exploitation more complex but still viable in targeted attack scenarios.

Root Cause

The root cause stems from improper precedence handling in libcurl's SSH host key verification code when using the libssh backend. Instead of exclusively checking the user-specified known_hosts file, the verification logic falls through to check the global libssh known hosts database. This creates an unexpected trust relationship where hosts trusted globally by the system are also implicitly trusted by applications attempting to enforce stricter host verification policies.

Attack Vector

The attack vector is network-based and requires an attacker to position themselves between the victim application and the intended SSH server. An attacker could exploit this vulnerability through the following scenario:

  1. The target application uses libcurl with a custom known_hosts file for SCP/SFTP transfers to a specific set of trusted servers
  2. The attacker adds their malicious SSH server's host key to the system's global known_hosts file (requires prior system compromise or social engineering)
  3. Through DNS spoofing, ARP poisoning, or BGP hijacking, the attacker redirects the application's SSH connection to their malicious server
  4. Due to this vulnerability, libcurl accepts the connection because the attacker's host key exists in the global known_hosts file, bypassing the application's intended strict verification
  5. The attacker can intercept, modify, or exfiltrate data from the SCP/SFTP transfer

The attack complexity is high because it requires either prior access to modify the global known_hosts file or a combination of network-level attacks and user interaction.

Detection Methods for CVE-2025-15079

Indicators of Compromise

  • Unexpected SSH connections to IP addresses not associated with configured transfer targets
  • Discrepancies between hosts in application-specific known_hosts files and actual connection destinations
  • SSH connection logs showing successful authentication to hosts not in the custom known_hosts file
  • Network traffic analysis revealing SCP/SFTP sessions to unexpected destinations

Detection Strategies

  • Audit applications using libcurl with CURLOPT_SSH_KNOWNHOSTS option for SCP/SFTP functionality
  • Compare the global known_hosts file contents against expected trusted hosts to identify potentially malicious entries
  • Implement network monitoring to detect SSH connections to unexpected destinations from applications using libcurl
  • Review system logs for modifications to global SSH known_hosts files

Monitoring Recommendations

  • Enable verbose logging for libcurl operations in affected applications to track SSH host verification decisions
  • Monitor filesystem changes to /etc/ssh/ssh_known_hosts and user-level ~/.ssh/known_hosts files
  • Implement network segmentation and firewall rules to restrict SSH outbound connections to approved destinations
  • Deploy intrusion detection signatures for anomalous SCP/SFTP traffic patterns

How to Mitigate CVE-2025-15079

Immediate Actions Required

  • Review all applications using libcurl for SSH-based file transfers (SCP/SFTP) with custom known_hosts configurations
  • Audit and restrict the contents of global SSH known_hosts files to minimize trust surface
  • Consider implementing additional network-level controls to restrict SSH connections to known, trusted servers
  • Monitor cURL project advisories for patches addressing this vulnerability

Patch Information

The cURL project has documented this vulnerability in their security advisory. For detailed patch information and affected version details, refer to the cURL CVE-2025-15079 Documentation. The vulnerability was also reported through the HackerOne Bug Bounty Program and discussed on the Openwall OSS Security mailing list.

Organizations should update to patched versions of libcurl as soon as they become available. Check the cURL CVE-2025-15079 JSON Data for machine-readable vulnerability details and version information.

Workarounds

  • Implement strict firewall rules limiting SSH connections to explicitly allowed destination hosts
  • Use SSH certificate-based authentication instead of known_hosts file verification where possible
  • Deploy a network proxy or bastion host for all SSH-based file transfers to centralize trust decisions
  • Consider using alternative libcurl backends that may not exhibit this behavior (verify before deployment)
bash
# Configuration example - Restrict SSH outbound connections at firewall level
# Allow SSH only to known trusted hosts
iptables -A OUTPUT -p tcp --dport 22 -d trusted.server.com -j ACCEPT
iptables -A OUTPUT -p tcp --dport 22 -j DROP

# Audit global known_hosts file for unexpected entries
diff /etc/ssh/ssh_known_hosts /path/to/expected_known_hosts

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLibcurl

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-297
  • Technical References
  • cURL CVE-2025-15079 Documentation

  • cURL CVE-2025-15079 JSON Data

  • HackerOne Report #3477116

  • Openwall OSS Security Discussion
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
  • English
  • 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