CVE-2026-87865
knownhost callback mismatches key as missing
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.
INFO
Published Date :
Oct. 20, 2026, 9:17 p.m.
Last Modified :
Oct. 20, 2026, 9:17 p.m.
Remotely Exploit :
No
Source :
2499f714-1537-4658-8207-48ae4bb9eae9
Solution
- Update libcurl and libssh2 to latest versions.
- Review and correct libssh2 `known_hosts` file entries.
- Verify host key validation behavior with `CURLOPT_SSH_KEYFUNCTION`.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-87865.
| URL | Resource |
|---|---|
| https://curl.se/docs/CVE-2026-87865.html | |
| https://curl.se/docs/CVE-2026-87865.json | |
| https://hackerone.com/reports/3975408 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-87865 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-87865
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-87865 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-87865 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 2499f714-1537-4658-8207-48ae4bb9eae9
Oct. 20, 2026
Action Type Old Value New Value Added 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/87xxx/CVE-2026-87865.json">CVE-2026-87865</a> Added Reference https://curl.se/docs/CVE-2026-87865.html Added Reference https://curl.se/docs/CVE-2026-87865.json Added Reference https://hackerone.com/reports/3975408