Skip to content

CVE-2023-6918 Libssh: missing checks for return values for digests

MediumCVSS 5.3 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known

Description

A flaw was found in the libssh implements abstract layer for message digest (MD) operations implemented by different supported crypto backends. The return values from these were not properly checked, which could cause low-memory situations failures, NULL dereferences, crashes, or usage of the uninitialized memory as an input for the KDF. In this case, non-matching keys will result in decryption/integrity failures, terminating the connection.

Affected products

ProductAffected versionsFixed in
debian/libssh(Debian:12) < 0.10.6-0+deb12u1 0.10.6-0+deb12u1
debian/libssh(Debian:12) = 0.10.5-2 No fix listed
debian/libssh(Debian:12) = 0.10.5-3 No fix listed
debian/libssh(Debian:12) = 0.10.5-3+hurd.1 No fix listed
debian/libssh(Debian:13) < 0.10.6-1 0.10.6-1
debian/libssh(Debian:14) < 0.10.6-1 0.10.6-1
redhat enterprise linux < 0:0.9.6-14.el8 0:0.9.6-14.el8
redhat enterprise linux < 0:0.10.4-13.el9 0:0.10.4-13.el9
redhat rhel els = 6 No fix listed
redhat rhel els = 7 No fix listed
ubuntu/libssh(Ubuntu:22.04) < 0.9.6-2ubuntu0.22.04.3 0.9.6-2ubuntu0.22.04.3
libssh >= 0.9.0, < 0.9.8 0.9.8
libssh >= 0.10.0, < 0.10.6 0.10.6
fedoraproject fedora = 38 No fix listed
fedoraproject fedora = 39 No fix listed
redhat enterprise linux = 8.0 No fix listed
redhat enterprise linux = 9.0 No fix listed
alpine/libssh(Alpine:v3.19) >= 0.10.0, < 0.10.6-r0 0.10.6-r0
alpine/libssh(Alpine:v3.20) >= 0.10.0, < 0.10.6-r0 0.10.6-r0
alpine/libssh(Alpine:v3.21) >= 0.10.0, < 0.10.6-r0 0.10.6-r0
alpine/libssh(Alpine:v3.22) >= 0.10.0, < 0.10.6-r0 0.10.6-r0
alpine/libssh(Alpine:v3.23) >= 0.10.0, < 0.10.6-r0 0.10.6-r0
alpine/libssh(Alpine:v3.24) >= 0.10.0, < 0.10.6-r0 0.10.6-r0

References