Debian Security Advisory

DLA-1730-4 libssh2 -- LTS security update

Date Reported:
30 Jul 2019
Affected Packages:
Security database references:
In Mitre's CVE dictionary: CVE-2019-3860.
More information:

Several more boundary checks have been backported to libssh2's src/sftp.c. Furthermore, all boundary checks in src/sftp.c now result in an LIBSSH2_ERROR_BUFFER_TOO_SMALL error code, rather than a LIBSSH2_ERROR_ OUT_OF_BOUNDARY error code.

As a side note, it was discovered that libssh2's SFTP implementation from Debian jessie only works well against OpenSSH SFTP servers from Debian wheezy, tests against newer OpenSSH versions (such as available in Debian jessie and beyond) interim-fail with SFTP protocol error Error opening remote file. Operation might continue after this error, this depends on application implementations.

For Debian 8 Jessie, this problem has been fixed in version 1.4.3-4.1+deb8u5.

We recommend that you upgrade your libssh2 packages.

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: