# JLSEC-2026-1087: libssh2 through 1.11.1, fixed in commit a13bb6c, contains a missing bounds check vulnerability...

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-31T18:09:08.751Z
- Modified: 2026-07-31T18:20:51.695Z
- Related: CVE-2026-66034, EUVD-2026-48721, GHSA-6h6q-9mwg-r6x7

## Description

libssh2 through 1.11.1, fixed in commit a13bb6c, contains a missing bounds check vulnerability that allows a malicious SSH server to trigger an arbitrary-length heap out-of-bounds read and a free of an uninitialized pointer via the publickey subsystem. In `libssh2_publickey_list_fetch()`, the version 1 response parser reads a server-controlled `comment_len` value and advances the parse pointer without verifying sufficient bytes remain in the buffer, causing the out-of-bounds read to leak heap pointers from adjacent allocations defeating ASLR, followed by heap allocator state corruption when the error cleanup path frees an uninitialized pointer from a non-zeroed realloc() region.

(As written by Julia Security Advisories.)

## Affected

- LibSSH2_jll (Julia): before 1.11.104+0

## Every score

- Julia Security Advisories: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Julia Security Advisories: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/advisories/GHSA-6h6q-9mwg-r6x7> (web)
- <https://github.com/libssh2/libssh2/commit/a13bb6c773f0d55ad1628cede57e99803cd898d9> (web)
- <https://github.com/libssh2/libssh2/pull/2202> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-66034> (web)
- <https://www.vulncheck.com/advisories/libssh2-heap-out-of-bounds-read-via-publickey-subsystem> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1087](https://osv.dev/vulnerability/JLSEC-2026-1087), CC-BY-4.0, modified 2026-07-31

---

Page: https://cve.day/JLSEC-2026-1087 · Whole record: https://cve.day/JLSEC-2026-1087.json · Rebuilt by cve.day 2026-11-25T22:56:25.857Z
