CVE-2025-15079 Details
Description
When doing SSH-based transfers using either SCP or SFTP, and setting the known_hosts file, libcurl could still mistakenly accept connecting to hosts *not present* in the specified file if they were added as recognized in the libssh *global* known_hosts file.
A vulnerability exists in curl and libcurl when using the libssh backend for SSH-based file transfers via SCP or SFTP. The issue arises because libssh can unintentionally accept connections to hosts not listed in the user-specified known_hosts file. Instead, it references a global known_hosts file, which is set at build time and typically located at /etc/ssh/ssh_known_hosts. This flaw allows for improper validation of host identities, as the global file can override user preferences, potentially leading to security risks.
Users can upgrade to curl version 8.18.0, which fixes this vulnerability by ensuring that both the user-specified and global known_hosts files are set to the same path, preventing the global file from overriding user preferences.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://curl.se/docs/CVE-2025-15079.html | curl | PatchVendor Advisory |
| https://curl.se/docs/CVE-2025-15079.json | curl | Vendor Advisory |
| https://hackerone.com/reports/3477116 | curl | ExploitIssue TrackingThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2026/01/07/6 | CVE | Mailing ListPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-297 | Improper Validation of Certificate with Host Mismatch | CISA-ADP |
| CWE-297 | Improper Validation of Certificate with Host Mismatch | curl |
Affected Products
| Product | Versions |
|---|---|
| haxx curl | >= 7.58.0, < 8.18.0 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Translated | [email protected] |
| Sep 15, 2026 | CVE Modified | curl |
| Sep 15, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | curl |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 20, 2026 | Initial Analysis | [email protected] |
| Jan 8, 2026 | CVE Modified | CISA-ADP |
| Jan 8, 2026 | CVE Modified | CVE |
| Jan 8, 2026 | New CVE Received | curl |