Skip to main content
CVE-2026-87865VulnerabilityPublished Updated

curl · When libcurl uses libssh2 with a hashed known_hosts file, an unrelated initial entry can cause host key validation to

Affects curlSource GCVE Database

0
Compare
Authoritative record:CVE-2026-87865· High 7.4

Not known to be exploited · CVSS 7.4 High · fixed in 8.20.0-2ubuntu11.1 : patch curl soon.

Data as of 3 Nov 2026, 23:35 UTC

CVSS 3.1 base score
7.4High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.17.4
Patch
Available – fixed in 8.20.0-2ubuntu11.1, 8.18.0-1ubuntu2.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.

What to do

Upgrade the Ubuntu curl to 8.20.0-2ubuntu11.1 (package) or 8.18.0-1ubuntu2.8 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.10curlpkg:deb/ubuntu/curl?arch=source&distro=stonkingOther threatsAffected
  • <8.20.0-2ubuntu11.1
Fixed in
  • 8.20.0-2ubuntu11.1
Ubuntu 26.04 LTScurlpkg:deb/ubuntu/curl?arch=source&distro=resoluteOther threatsAffected
  • <8.18.0-1ubuntu2.8
Fixed in
  • 8.18.0-1ubuntu2.8

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and has been released in Ubuntu package versions 8.20.0-2ubuntu11.1 and 8.18.0-1ubuntu2.8. Users should upgrade to these fixed versions or later to remediate the vulnerability. No additional mitigations are indicated by the vendor advisory.

Description

A vulnerability in libcurl when used with libssh2 and a hashed known_hosts file causes host key validation to incorrectly report a key mismatch as a missing key to the SSH key verification callback. This flaw affects multiple Ubuntu package versions of curl and was assigned CVE-2026-87865. The issue has been fixed in updated package versions.

References

Community reviews

Loading reviews…