JLSEC-2026-1659: When libcurl uses libssh2 with a hashed `known_hosts` file, an unrelated initial entry can cause...
When libcurl uses libssh2 with a hashed knownhosts file, an unrelated initial entry can cause host key validation to report a key mismatch as a missing key to the CURLOPTSSHKEYFUNCTION callback.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/LibCURL_jllto a version that resolves this vulnerability.Fixed in 8.23.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using libcurl with libssh2 and a hashed known_hosts file are affected by the described validation error. The issue is relevant to julia/curl_jll and julia/libcurl_jll installations that use this SSH host-key verification path.
What must an attacker be able to do to exploit the issue?
The vulnerable condition involves an SSH host-key mismatch being reported to CURLOPT_SSH_KEYFUNCTION as a missing key. Exploitation requires the relevant connection to use libssh2 with a hashed known_hosts file and to encounter the unrelated initial entry condition described.
How can I determine whether my application is affected?
Check whether the application uses CURLOPT_SSH_KEYFUNCTION for SSH host-key handling through libcurl/libssh2 and whether its known_hosts file is hashed. Also determine whether application callback logic treats a reported missing key differently from a key mismatch.