CVE-2019-13115
In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a 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. This is related to an _libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855.
What to do
Likely to be exploited: EPSS gives a 12% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libssh2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libssh2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | libssh2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libssh2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | libssh2 | Fix pending | UBUNTU-CVE-2019-13115 | |
| Ubuntu 18.04 | libssh2 | Fix pending | UBUNTU-CVE-2019-13115 | |
| Ubuntu 16.04 | libssh2 | Fix pending | 1.5.0-2ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2019-13115 |
| Ubuntu 14.04 | libssh2 | Fix pending | 1.4.3-2ubuntu0.2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2019-13115 |
| Debian 14 | libssh2 | Fixed | 1.9.0-1 | DEBIAN-CVE-2019-13115 |
| Debian 13 | libssh2 | Fixed | 1.9.0-1 | DEBIAN-CVE-2019-13115 |
| Debian 12 | libssh2 | Fixed | 1.9.0-1 | DEBIAN-CVE-2019-13115 |
| Red Hat Enterprise Linux 8 | libssh2 | Not affected | ||
| Red Hat Enterprise Linux 8 | libssh2-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libssh2-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | libssh2 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libssh2-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libssh2-docs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libssh2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libssh2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libssh2-docs | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.23 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.22 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.21 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.20 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.19 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.18 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.17 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.16 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.15 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.14 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.13 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.12 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.11 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.10 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
| Alpine Linux 3.9 | libssh2 | Fixed | 1.9.0-r0 | ALPINE-CVE-2019-13115 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/libssh2/libssh2/pull/350
- https://libssh2.org/changes.html
- https://github.com/libssh2/libssh2/compare/02ecf17...42d37aa
- https://blog.semmle.com/libssh2-integer-overflow/
- https://lists.debian.org/debian-lts-announce/2019/07/msg00024.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6LUNHPW64IGCASZ4JQ2J5KDXNZN53DWW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M7IF3LNHOA75O4WZWIHJLIRMA5LJUED3/
- https://security.netapp.com/advisory/ntap-20190806-0002/
- https://support.f5.com/csp/article/K13322484
- https://support.f5.com/csp/article/K13322484?utm_source=f5support&%3Butm_medium=RSS
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/12/msg00013.html
- http://packetstormsecurity.com/files/172834/libssh2-1.8.2-Out-Of-Bounds-Read.html
- https://lists.debian.org/debian-lts-announce/2023/09/msg00006.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.