# CVE-2026-87865: knownhost callback mismatches key as missing

- Severity: High 7.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-14T08:00:00.000Z
- Modified: 2026-10-30T12:16:46.393Z
- Also known as: CURL-CVE-2026-87865
- Weaknesses: CWE-295
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: curl

## 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.

(As written by CVE List.)

## Affected

- 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; from 8.14.1 up to 8.14.1; from 8.14.0 up to 8.14.0; from 8.13.0 up to 8.13.0; from 8.12.1 up to 8.12.1; and 46 more
- 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

## Every score

- CISA-ADP: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- curl: rating Low

## References

- <https://hackerone.com/reports/3975408> (exploit)
- <https://curl.se/docs/CVE-2026-87865.json>
- <https://curl.se/docs/CVE-2026-87865.html>

## Sources

- CVE List: [CVE-2026-87865](https://www.cve.org/CVERecord?id=CVE-2026-87865), CVE Terms of Use, modified 2026-10-30
- curl: [CURL-CVE-2026-87865](https://osv.dev/vulnerability/CURL-CVE-2026-87865), MIT, modified 2026-10-25
- NVD: [CVE-2026-87865](https://nvd.nist.gov/vuln/detail/CVE-2026-87865), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-87865 · Whole record: https://cve.day/CVE-2026-87865.json · Rebuilt by cve.day 2026-11-25T22:59:46.127Z
