CVE-2026-87865
JSON

7.4high

knownhost callback mismatches key as missing

Severity
7.4high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.53% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
curl
Also known as
CURL-CVE-2026-87865

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.

Affected

Product or packageVersionsReported by
curl curlfrom 8.22.0 up to 8.22.0, from 8.21.0 up to 8.21.0, from 8.20.0 up to 8.20.0, from 8.19.0 up to 8.19.0, from 8.18.0 up to 8.18.0, from 8.17.0 up to 8.17.0, from 8.16.0 up to 8.16.0, from 8.15.0 up to 8.15.0 and 50 moreCVE List
https://github.com/curl/curl.gitfrom 7.69.1 before 8.14.3, from 8.15.0 before 8.16.2, from 8.17.0 before 8.20.2, from 8.21.0 before 8.23.0, from e96fe70cabcb3a5a009821dbb453dc0160ddc3f5 before 323c184b6bdf5b1988a10c0a61560666e1588149curl

All scores

CISA-ADP7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
curllow rating

Classification

CWE-295

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-87865 changed 2026-10-30CVE Terms of Use
curlCURL-CVE-2026-87865 changed 2026-10-25MIT
NVDCVE-2026-87865 changed 2026-10-30Public domain