---
id: CVE-2019-3861
title: >-
  An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the way
  SSH packets with a padding length value greater than the packet length are
  parsed
summary: >-
  An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the way
  SSH packets with a padding length value greater than the packet length are
  parsed. A remote attacker who compromises a SSH server may be able to cause a
  Denial …
severity: medium
cvss: 5
cvssVector: 'CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L'
cwe:
  - CWE-125
vendor: libssh2
product: libssh2
affected:
  - 'libssh2 >= 0.15, <= 1.8.0'
  - debian_linux = 8.0
  - ontap_select_deploy_administration_utility
  - leap = 15.0
  - leap = 42.3
published: '2019-03-25'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T07:16:52.933'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2019-3861'
references:
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00040.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00003.html'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2019:2136'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3861'
    label: secalert@redhat.com
  - url: 'https://lists.debian.org/debian-lts-announce/2019/03/msg00032.html'
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5DK6VO2CEUTAJFYIKWNZKEKYMYR3NO2O/
    label: secalert@redhat.com
  - url: 'https://seclists.org/bugtraq/2019/Apr/25'
    label: secalert@redhat.com
  - url: 'https://security.netapp.com/advisory/ntap-20190327-0005/'
    label: secalert@redhat.com
  - url: 'https://www.debian.org/security/2019/dsa-4431'
    label: secalert@redhat.com
  - url: 'https://www.libssh2.org/CVE-2019-3861.html'
    label: secalert@redhat.com
  - url: >-
      https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00040.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00003.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2019:2136'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3861'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2019/03/msg00032.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5DK6VO2CEUTAJFYIKWNZKEKYMYR3NO2O/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://seclists.org/bugtraq/2019/Apr/25'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20190327-0005/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2019/dsa-4431'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.libssh2.org/CVE-2019-3861.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2019/cve-2019-3861.json
  - url: 'https://access.redhat.com/security/cve/CVE-2019-3861'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1687311'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2019-3861'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2019-3861'
  - url: 'https://access.redhat.com/errata/RHBA-2020:0547'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.05118
epssPercentile: 0.92208
ingestedAt: '2026-10-14T07:21:04.812Z'
patched:
  - enterprise_linux_client_v_7
  - enterprise_linux_client_optional_v_7
  - enterprise_linux_computenode_v_7
  - enterprise_linux_computenode_optional_v_7
  - enterprise_linux_server_v_7
  - ansible_tower_3_4_for_rhel_7_server
  - enterprise_linux_server_optional_v_7
  - enterprise_linux_workstation_v_7
  - enterprise_linux_workstation_optional_v_7
---

## Overview

An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the way SSH packets with a padding length value greater than the packet length are parsed. A remote attacker who compromises a SSH server may be able to cause a Denial of Service or read data in the client memory.

## Affected

- `libssh2 >= 0.15, <= 1.8.0`
- `debian_linux = 8.0`
- `ontap_select_deploy_administration_utility`
- `leap = 15.0`
- `leap = 42.3`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2019:2136** · Red Hat · fixed in: Red Hat Enterprise Linux Client (v. 7), Red Hat Enterprise Linux Client Optional (v. 7), Red Hat Enterprise Linux ComputeNode (v. 7), Red Hat Enterprise Linux ComputeNode Optional (v. 7), Red Hat Enterprise Linux Server (v. 7), Red Hat Enterprise Linux Server Optional (v. 7), … · released 2019-08-06 · [advisory](https://access.redhat.com/errata/RHSA-2019:2136)
- **RHBA-2020:0547** · Red Hat · fixed in: Red Hat Ansible Tower 3.4 for RHEL 7 Server · released 2020-02-18 · [advisory](https://access.redhat.com/errata/RHBA-2020:0547)
- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 8 Advanced Virtualization, Red Hat Virtualization 4 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 8 Advanced Virtualization, Red Hat Virtualization 4 · updated 2026-10-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2019/cve-2019-3861.json)
