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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2023-6918 vendor-advisory
- RHSA-2024:2504 vendor-advisory
- RHSA-2024:3233 vendor-advisory
- access.redhat.com mailing-list vdb-entry vendor-advisory
- RHBZ#2254997 issue-tracking third-party-advisory
- www.libssh.org release-notes
- www.libssh.org vendor-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.netapp.com
- Ubuntu CVE tracker vendor-advisory
- USN-6592-1 vendor-advisory
- USN-6592-2 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking