CVE-2025-15079

libssh global known_hosts override

State
Published
Severity
5.3 Medium
Published
Jan 8, 2026
Updated
Sep 15, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NCISA-ADP

Weaknesses

  • CWE-297 Improper Validation of Certificate with Host Mismatch

Affected Products

ProductVersions
curlcurl
  • 7.58.0 to before 8.14.2Affected
  • 8.15.0 to before 8.16.1Affected
  • 8.17.0 to before 8.18.0Affected
curlcurl
  • c92d2e14cfb0db662f958effd2ac86f995cf1b5a to before adca486c125d9a6d9565b9607a19dce803a8b479Affected
curlcurl
  • 8.17.0Affected
  • 8.16.0Affected
  • 8.15.0Affected
  • 8.14.1Affected
  • 8.14.0Affected
  • 8.13.0Affected
  • 8.12.1Affected
  • 8.12.0Affected
  • 8.11.1Affected
  • 8.11.0Affected
  • 8.10.1Affected
  • 8.10.0Affected
  • 8.9.1Affected
  • 8.9.0Affected
  • 8.8.0Affected
  • 8.7.1Affected
  • 8.7.0Affected
  • 8.6.0Affected
  • 8.5.0Affected
  • 8.4.0Affected
  • 8.3.0Affected
  • 8.2.1Affected
  • 8.2.0Affected
  • 8.1.2Affected
  • 8.1.1Affected
  • and 45 more versions

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.