Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.44 KB

CVE-2019-3860.md

File metadata and controls

59 lines (38 loc) · 1.44 KB

Out-of-bounds reads with specially crafted SFTP packets

Project libssh2 Security Advisory, March 18 2019 - Permalink

VULNERABILITY

A server could send a specially crafted partial SFTP packet with a empty payload in response to various SFTP commands such as read directory, file status, status vfs and symlink. The result would be a memory out of bounds read (CWE-130).

There are no known exploits of this flaw at this time.

INFO

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2019-3860 to this issue.

AFFECTED VERSIONS

  • Affected versions: versions 0.3 up to and including 1.8.0
  • Not affected versions: libssh2 >= 1.9.0

THE SOLUTION

libssh2 1.8.1 ensures the length of the payload is the required length before reading the packet buffer content.

A patch for this problem is available

RECOMMENDATIONS

We suggest you take one of the following actions immediately, in order of preference:

A - Upgrade to libssh2 1.8.1 or later

B - Apply the patch and rebuild libssh2

TIME LINE

It was first reported to the libssh2 project on Dec 3 2018 by Chris Coulson.

libssh2 1.8.1 was released on March 18 2019, coordinated with the publication of this advisory.

CREDITS

Reported by Chris Coulson of Canonical Ltd.