# JLSEC-2026-1659: When libcurl uses libssh2 with a hashed `known_hosts` file, an unrelated initial entry can cause...

- Severity: High 7.4 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:35:28.773Z
- Modified: 2026-12-01T15:58:25.291Z
- Related: CVE-2026-87865, EUVD-2026-105312, GHSA-4cqc-m8hm-7c9j

## 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.

(As written by Julia Security Advisories.)

## Affected

- CURL_jll (Julia): all versions
- LibCURL_jll (Julia): from 7.70.0+0 before 8.23.0+0

## References

- <https://curl.se/docs/CVE-2026-87865.html> (web)
- <https://curl.se/docs/CVE-2026-87865.json> (web)
- <https://github.com/advisories/GHSA-4cqc-m8hm-7c9j> (web)
- <https://hackerone.com/reports/3975408> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-87865> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1659](https://osv.dev/vulnerability/JLSEC-2026-1659), CC-BY-4.0, modified 2026-12-01

---

Page: https://cve.day/JLSEC-2026-1659 · Whole record: https://cve.day/JLSEC-2026-1659.json · Rebuilt by cve.day 2026-12-01T16:07:25.250Z
