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

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-30
- Aliases: DEBIAN-CVE-2026-87865, UBUNTU-CVE-2026-87865, ALPINE-CVE-2026-87865
- Record: https://cvemate.com/vulnerability/CVE-2026-87865 · JSON: https://cvemate.com/vulnerability/CVE-2026-87865/json

## Description

```text
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.
```

## Signals

- CVSS: 7.4 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.53%, percentile 46.307%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine curl (Alpine Linux): \< 8.23.0-r0
- curl curl: 8.22.0 \| 8.21.0 \| 8.20.0 \| 8.19.0 \| 8.18.0 \| 8.17.0 \| 8.16.0 \| 8.15.0 \| 8.14.1 \| 8.14.0 \| 8.13.0 \| 8.12.1 \| 8.12.0 \| 8.11.1 \| 8.11.0 \| 8.10.1 \| 8.10.0 \| 8.9.1 \| 8.9.0 \| 8.8.0 \| 8.7.1 \| 8.7.0 \| 8.6.0 \| 8.5.0 \| 8.4.0 \| 8.3.0 \| 8.2.1 \| 8.2.0 \| 8.1.2 \| 8.1.1 \| 8.1.0 \| 8.0.1 \| 8.0.0 \| 7.88.1 \| 7.88.0 \| 7.87.0 \| 7.86.0 \| 7.85.0 \| 7.84.0 \| 7.83.1 \| 7.83.0 \| 7.82.0 \| 7.81.0 \| 7.80.0 \| 7.79.1 \| 7.79.0 \| 7.78.0 \| 7.77.0 \| 7.76.1 \| 7.76.0 \| 7.75.0 \| 7.74.0 \| 7.73.0 \| 7.72.0 \| 7.71.1 \| 7.71.0 \| 7.70.0 \| 7.69.1
- debian curl (Debian): All versions (No fix recorded) \| \< 8.23.0~rc1-1
- ubuntu curl (Ubuntu): All versions (No fix recorded) \| \< 8.20.0-2ubuntu11.1 \| \< 8.18.0-1ubuntu2.8

## References

- <https://security-tracker.debian.org/tracker/CVE-2026-87865>
- <https://ubuntu.com/security/CVE-2026-87865>
- <https://www.cve.org/CVERecord?id=CVE-2026-87865>
- <https://curl.se/docs/CVE-2026-87865.html>
- <https://ubuntu.com/security/notices/USN-8927-1>
- <https://ubuntu.com/security/notices/USN-8927-2>
- <https://curl.se/docs/CVE-2026-87865.json>
- <https://hackerone.com/reports/3975408>
- <https://security.alpinelinux.org/vuln/CVE-2026-87865>

---

Data as of 2026-12-05T05:44:48.862Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
