Skip to content
OpenAdvisories
High · 7.4 CVE-2026-87865 EUVD-2026-105312GHSA-4cqc-m8hm-7c9j

knownhost callback mismatches key as missing

Published Oct 20, 2026 · Updated Oct 30, 2026 · 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.

Affected products

VendorProductAffectedFixed
curl curl 8.22.0 – ≤ 8.22.0, 8.21.0 – ≤ 8.21.0, 8.20.0 – ≤ 8.20.0, 8.19.0 – ≤ 8.19.0, 8.18.0 – ≤ 8.18.0, 8.17.0 – ≤ 8.17.0, 8.16.0 – ≤ 8.16.0, 8.15.0 – ≤ 8.15.0, 8.14.1 – ≤ 8.14.1, 8.14.0 – ≤ 8.14.0, 8.13.0 – ≤ 8.13.0, 8.12.1 – ≤ 8.12.1, 8.12.0 – ≤ 8.12.0, 8.11.1 – ≤ 8.11.1, 8.11.0 – ≤ 8.11.0, 8.10.1 – ≤ 8.1… —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl No fix yet —
Debian 13 curl No fix yet —
Debian 12 curl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 curl 8.20.0-2ubuntu11.1 USN-8927-2
Ubuntu 26.04 LTS curl 8.18.0-1ubuntu2.8 USN-8927-1
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 curl +3 8.23.0-0.1.hum1 RHSA-2026:82895
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 8.23.0-1.1 openSUSE-SU-2026:12150-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 8.23.0-r0 —
Alpine v3.23 curl 8.23.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 curl +2 8.3.0-1.amzn2.0.14 ALAS2-2026-4099

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 curl +4 No fix yet —

Advisories 6

References