Improper Validation of Certificate with Host Mismatch Affecting libcurl package, versions [7.76.0,8.18.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LIBCURL-14900428
  • published8 Jan 2026
  • disclosed8 Jan 2026
  • creditHarry Sintonen

Introduced: 8 Jan 2026

CVE-2025-15079  (opens in a new tab)
CWE-297  (opens in a new tab)

How to fix?

Upgrade libcurl to version 8.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Certificate with Host Mismatch due to the libssh API fallback to a built-in global known_hosts file if the host was not found in the specified one. An attacker can bypass host authenticity checks by leveraging entries in the global known_hosts file even when a custom known_hosts file is specified.

Note:

This issue affects only for curl built with libssh backend, libssh2 backend is not affected.

CVSS Base Scores

version 4.0
version 3.1