CVE-2026-87865

knownhost callback mismatches key as missing

State
Published
Severity
7.4 High
Published
Oct 20, 2026
Updated
Oct 30, 2026
Reserved
Sep 9, 2026

Read the record on cve.org

Description

When libcurl uses libssh2 with a hashed `known_hosts` file, an unrelated initial entry can cause host key validation to report a key *mismatch* as a *missing* key to the `CURLOPT_SSH_KEYFUNCTION` callback.

Scores

CVSSScoreVectorSource
3.17.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NCISA-ADP

Weaknesses

  • CWE-295 Improper Certificate Validation

Affected Products

ProductVersions
curlcurl
  • 8.22.0 through 8.22.0Affected
  • 8.21.0 through 8.21.0Affected
  • 8.20.0 through 8.20.0Affected
  • 8.19.0 through 8.19.0Affected
  • 8.18.0 through 8.18.0Affected
  • 8.17.0 through 8.17.0Affected
  • 8.16.0 through 8.16.0Affected
  • 8.15.0 through 8.15.0Affected
  • 8.14.1 through 8.14.1Affected
  • 8.14.0 through 8.14.0Affected
  • 8.13.0 through 8.13.0Affected
  • 8.12.1 through 8.12.1Affected
  • 8.12.0 through 8.12.0Affected
  • 8.11.1 through 8.11.1Affected
  • 8.11.0 through 8.11.0Affected
  • 8.10.1 through 8.10.1Affected
  • 8.10.0 through 8.10.0Affected
  • 8.9.1 through 8.9.1Affected
  • 8.9.0 through 8.9.0Affected
  • 8.8.0 through 8.8.0Affected
  • 8.7.1 through 8.7.1Affected
  • 8.7.0 through 8.7.0Affected
  • 8.6.0 through 8.6.0Affected
  • 8.5.0 through 8.5.0Affected
  • 8.4.0 through 8.4.0Affected
  • and 33 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.