# JLSEC-2025-188: In libssh2 v1.9.0 and earlier versions, the `SSH_MSG_DISCONNECT` logic in packet.c has an integer...

- Severity: High 8.1 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-10-27T15:45:54.694Z
- Modified: 2026-07-23T22:30:17.607Z
- Related: CVE-2019-17498

## Description

In libssh2 v1.9.0 and earlier versions, the `SSH_MSG_DISCONNECT` logic in packet.c has an integer overflow in a bounds check, enabling an attacker to specify an arbitrary (out-of-bounds) offset for a subsequent memory read. A crafted SSH server may be able to disclose sensitive information or cause a denial of service condition on the client system when a user connects to the server.

(As written by Julia Security Advisories.)

## Affected

- LibSSH2_jll (Julia): before 1.10.1+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:M/Au:N/C:P/I:N/A:P`
- Julia Security Advisories: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`

## References

- <http://packetstormsecurity.com/files/172835/libssh2-1.9.0-Out-Of-Bounds-Read.html> (exploit, web)
- <https://github.com/kevinbackhouse/SecurityExploits/tree/8cbdbbe6363510f7d9ceec685373da12e6fc752d/libssh2/out_of_bounds_read_disconnect_CVE-2019-17498> (exploit, web)
- <http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00026.html> (web)
- <https://blog.semmle.com/libssh2-integer-overflow-CVE-2019-17498/> (web)
- <https://github.com/libssh2/libssh2/blob/42d37aa63129a1b2644bf6495198923534322d64/src/packet.c#L480> (web)
- <https://github.com/libssh2/libssh2/commit/dedcbd106f8e52d5586b0205bc7677e4c9868f9c> (web)
- <https://lists.debian.org/debian-lts-announce/2019/11/msg00010.html> (web)
- <https://lists.debian.org/debian-lts-announce/2021/12/msg00013.html> (web)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00006.html> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22H4Q5XMGS3QNSA7OCL3U7UQZ4NXMR5O/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TY7EEE34RFKCTXTMBQQWWSLXZWSCXNDB/> (web)
- <https://security.netapp.com/advisory/ntap-20220909-0004/> (web)

## Sources

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

---

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