Integer Overflow or Wraparound Affecting libssh2 package, versions <0:1.8.0-4.el7


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
2.03% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-LIBSSH2-7980302
  • published14 Sept 2024
  • disclosed16 Oct 2019

Introduced: 16 Oct 2019

CVE-2019-17498  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-200  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade RHEL:7 libssh2 to version 0:1.8.0-4.el7 or higher.
This issue was patched in RHSA-2020:3915.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libssh2 package and not the libssh2 package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1