---
title: "CVE-2023-6918"
canonical_url: "https://pkgseek.com/security/CVE-2023-6918"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2023-6918

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.

CVE-2023-6918 is rated MEDIUM (5.3), with 23 indexed affected package builds across 4 distributions.

- **Severity / Score**: MEDIUM (5.3)
- **Affected builds**: 23
- **Affected distros**: 4
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | libssh | 0.9.6-11.al8 | 0.9.6-12.al8 |
| Alibaba Cloud Linux | 3 | libssh-config | 0.9.6-11.al8 | 0.9.6-12.al8 |
| Alibaba Cloud Linux | 3 | libssh-devel | 0.9.6-11.al8 | 0.9.6-12.al8 |
| Alibaba Cloud Linux | 3 | libssh-doc | 0.9.6-11.al8 | 0.9.6-12.al8 |
| Oracle Linux | 8 | libssh | 0.9.6-13.el8_9 | 0.9.6-14.el8 |
| Oracle Linux | 8 | libssh-config | 0.9.6-13.el8_9 | 0.9.6-14.el8 |
| Oracle Linux | 8 | libssh-devel | 0.9.6-13.el8_9 | 0.9.6-14.el8 |
| Oracle Linux | 9 | libssh | 0.10.4-12.el9_3 | 0.10.4-13.el9 |
| Oracle Linux | 9 | libssh-config | 0.10.4-12.el9_3 | 0.10.4-13.el9 |
| Oracle Linux | 9 | libssh-devel | 0.10.4-12.el9_3 | 0.10.4-13.el9 |
| Red Hat Enterprise Linux | 9.8 | libssh | 0.10.4-12.el9_3 | 0.10.4-13.el9 |
| Red Hat Enterprise Linux | 9.8 | libssh-config | 0.10.4-12.el9_3 | 0.10.4-13.el9 |
| Red Hat Enterprise Linux | 9.8 | libssh-devel | 0.10.4-12.el9_3 | 0.10.4-13.el9 |
| Ubuntu | focal | libssh-4 | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.5 |
| Ubuntu | focal | libssh-dev | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.5 |
| Ubuntu | focal | libssh-doc | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.5 |
| Ubuntu | focal | libssh-gcrypt-4 | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.5 |
| Ubuntu | focal | libssh-gcrypt-dev | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.5 |
| Ubuntu | jammy | libssh-4 | 0.9.6-2build1 | 0.9.6-2ubuntu0.22.04.3 |
| Ubuntu | jammy | libssh-dev | 0.9.6-2build1 | 0.9.6-2ubuntu0.22.04.3 |
| Ubuntu | jammy | libssh-doc | 0.9.6-2build1 | 0.9.6-2ubuntu0.22.04.3 |
| Ubuntu | jammy | libssh-gcrypt-4 | 0.9.6-2build1 | 0.9.6-2ubuntu0.22.04.3 |
| Ubuntu | jammy | libssh-gcrypt-dev | 0.9.6-2build1 | 0.9.6-2ubuntu0.22.04.3 |
