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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-12-18 · Modified: 2026-11-27
- Aliases: UBUNTU-CVE-2023-6918, DEBIAN-CVE-2023-6918, CGA-777v-p3xv-35mr, CGA-hrgm-ww8h-wrm3, CGA-jjp5-fc6x-7x34, CGA-mhjm-cccc-45c4, ALPINE-CVE-2023-6918
- Record: https://cvemate.com/vulnerability/CVE-2023-6918 · JSON: https://cvemate.com/vulnerability/CVE-2023-6918/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 1.447%, percentile 74.219%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libssh (Alpine Linux): ≥ 0.9.0, \< 0.10.6-r0 \| ≥ 0.10.0, \< 0.10.6-r0
- chainguard libssh (Chainguard): \< 0.10.6-r0
- chainguard libssh2 (Chainguard): All versions (No fix recorded)
- wolfi libssh (Wolfi): \< 0.10.6-r0
- wolfi libssh2 (Wolfi): All versions (No fix recorded)
- debian libssh (Debian): \< 0.10.6-0+deb12u1 \| \< 0.10.6-1
- ubuntu libssh (Ubuntu): \< 0.6.3-4.3ubuntu0.6+esm1 \| \< 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 \| \< 0.9.3-2ubuntu2.5 \| \< 0.9.6-2ubuntu0.22.04.3
- fedoraproject fedora: 38 \| 39
- libssh libssh: ≥ 0.9.0, \< 0.9.8 \| ≥ 0.10.0, \< 0.10.6
- redhat enterprise\_linux: 8.0 \| 9.0

## References

- <https://access.redhat.com/errata/RHSA-2024:2504>
- <https://access.redhat.com/errata/RHSA-2024:3233>
- <https://access.redhat.com/security/cve/CVE-2023-6918>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2254997>
- <https://www.libssh.org/2023/12/18/libssh-0-10-6-and-libssh-0-9-8-security-releases/>
- <https://www.libssh.org/security/advisories/CVE-2023-6918.txt>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LZQVUHWVWRH73YBXUQJOD6CKHDQBU3DM/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MKQRBF3DWMWPH36LBCOBUTSIZRTPEZXB/>
- <https://security.netapp.com/advisory/ntap-20250214-0009/>
- <https://ubuntu.com/security/CVE-2023-6918>
- <https://ubuntu.com/security/notices/USN-6592-1>
- <https://ubuntu.com/security/notices/USN-6592-2>
- <https://www.cve.org/CVERecord?id=CVE-2023-6918>
- <https://security-tracker.debian.org/tracker/CVE-2023-6918>
- <https://access.redhat.com/downloads/content/package-browser/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6918.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-6918>
- <https://security.alpinelinux.org/vuln/CVE-2023-6918>
- <https://access.redhat.com/errata/RHBA-2024:3964>

---

Data as of 2026-12-05T09:13:51.042Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
