CVE-2026-87865
Awaiting Analysis Awaiting Analysis - Queue

libcurl libssh2 Host Key Validation Bypass via Known Hosts Entry

Vulnerability report for CVE-2026-87865, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-20

Last updated on: 2026-10-30

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-20
Last Modified
2026-10-30
Generated
2026-11-10
AI Q&A
2026-10-21
EPSS Evaluated
2026-11-08
NVD

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-295 The product does not validate, or incorrectly validates, a certificate.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability occurs when libcurl uses libssh2 with a hashed known_hosts file. An unrelated initial entry can cause host key validation to incorrectly report a key mismatch as a missing key to the CURLOPT_SSH_KEYFUNCTION callback.

Impact Analysis

This could lead to incorrect host key validation, potentially allowing unauthorized connections or man-in-the-middle attacks if the callback does not handle the misreported error properly.

Compliance Impact

The vulnerability involves incorrect host key validation in libcurl when using libssh2 with hashed known_hosts files. This could lead to improper authentication, potentially allowing unauthorized access to sensitive data transfers. Such issues may violate compliance requirements for secure data handling under standards like GDPR and HIPAA, which mandate strict access controls and data protection measures.

Mitigation Strategies

Update libcurl and libssh2 to the latest patched versions to address the known_hosts file issue.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-87865. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...