CVE-2026-87865 knownhost callback mismatches key as missing

Not scored Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-87865?

CVE-2026-87865 is a vulnerability in curl, published on 20 Oct 2026.

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

Which versions are affected by CVE-2026-87865?

How do I fix CVE-2026-87865?

Upgrade to a fixed version.

Is CVE-2026-87865 being exploited?

There is no known exploitation of CVE-2026-87865 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2026-87865, AZL-109932, AZL-109941, AZL-110049, AZL-110181, AZL-110214 and 7 more.

Is CVE-2026-87865 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free