CVE-2026-87865
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 package | Versions | Reported by |
|---|---|---|
| curl curl | from 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 more | CVE List |
| https://github.com/curl/curl.git | from 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 323c184b6bdf5b1988a10c0a61560666e1588149 | curl |
All scores
| CISA-ADP | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| curl | low rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-87865 changed 2026-10-30 | CVE Terms of Use |
| curl | CURL-CVE-2026-87865 changed 2026-10-25 | MIT |
| NVD | CVE-2026-87865 changed 2026-10-30 | Public domain |