CVE-2026-87865

Publication date 14 October 2026

Last updated 14 October 2026


Ubuntu priority

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.

Read the notes from the security team

Why is this CVE low priority?

Upstream defined this as low severity

Learn more about Ubuntu priority

Status

Package Ubuntu Release Status
curl 26.04 LTS resolute
Fixed 8.18.0-1ubuntu2.8
24.04 LTS noble
Not affected
22.04 LTS jammy
Not affected
20.04 LTS focal
Not affected
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected

Notes


charlescochran

Ubuntu builds jammy/noble with libssh instead of libssh2, so the affected libssh2 code is not used there.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
curl

References

Related Ubuntu Security Notices (USN)

Other references


Access our resources on patching vulnerabilities