---
title: "CVE-2019-13115\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2019-13115?format=md
keywords: index, follow
---

# CVE-2019-13115

Publication date 16 July 2019

Last updated 18 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**8.1 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2019-13115?format=md#impact-score)

Toggle side navigation

## Description

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.

### From the Ubuntu Security Team

It was discovered that libssh2 incorrectly handled Diffie Hellman key
exchange. A remote attacker could possibly use this issue to cause a
denial of service or obtain sensitive information.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libssh2 | 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Not affected |
| 24.10 oracular | Not affected |
| 24.04 LTS noble | Not affected |
| 23.10 mantic | Not affected |
| 23.04 lunar | Not affected |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Not affected |
| 21.10 impish | Not affected |
| 21.04 hirsute | Not affected |
| 20.10 groovy | Ignored end of life |
| 20.04 LTS focal | Vulnerable |
| 19.10 eoan | Ignored end of life |
| 19.04 disco | Ignored end of life |
| 18.10 cosmic | Ignored end of life |
| 18.04 LTS bionic | Vulnerable |
| 16.04 LTS xenial | Fixed 1.5.0-2ubuntu0.1+esm1  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 1.4.3-2ubuntu0.2+esm2  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2019-13115?format=md#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| libssh2 | * Upstream:   [ff1b155](https://github.com/libssh2/libssh2/commit/ff1b155731ff8f790f12d980911d9fd84d0e1598) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.1 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 8.1 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-13115)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2019-13115)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2019-13115)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2019-13115)

### Related Ubuntu Security Notices (USN)

+ [USN-5308-1](https://usn.ubuntu.com/USN-5308-1)
+ libssh2 vulnerabilities
+ 7 March 2022

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2019-13115>
