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

- Severity: Low 3.7 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.45%, higher than 74% of CVEs (2026-12-02)
- Published: 2023-12-18T23:27:48.540Z
- Modified: 2026-11-27T03:17:01.240Z
- Weaknesses: CWE-252
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9: no versions given (not affected: from 1.6.0-7 before *)
- openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9: no versions given (not affected: from 1.6.0-7 before *)
- openshift-sandboxed-containers/osc-monitor-rhel9: no versions given (not affected: from 1.6.0-4 before *)
- openshift-sandboxed-containers/osc-must-gather-rhel9: no versions given (not affected: from 1.6.0-12 before *)
- openshift-sandboxed-containers/osc-operator-bundle: no versions given (not affected: from 1.6.0-62 before *)
- openshift-sandboxed-containers/osc-podvm-builder-rhel9: no versions given (not affected: from 1.6.0-13 before *)
- openshift-sandboxed-containers/osc-podvm-payload-rhel9: no versions given (not affected: from 1.6.0-7 before *)
- openshift-sandboxed-containers/osc-rhel9-operator: no versions given (not affected: from 1.6.0-13 before *)
- libssh: no versions given (not affected: from 0:0.9.6-14.el8 before *; from 0:0.10.4-13.el9 before *)
- libssh2: no versions given
- libssh libssh: from 0.9.0 before 0.9.8; from 0.10.0 before 0.10.6
- fedoraproject fedora: 38; 39
- redhat enterprise_linux: 8.0; 9.0

## Every score

- redhat: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://access.redhat.com/errata/RHBA-2024:3964> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2504> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:3233> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-6918> (mailing-list, vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2254997> (issue-tracking, third-party-advisory)
- <https://www.libssh.org/2023/12/18/libssh-0-10-6-and-libssh-0-9-8-security-releases/> (release-notes)
- <https://www.libssh.org/security/advisories/CVE-2023-6918.txt> (vendor-advisory)
- <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/>

## Sources

- CVE List: [CVE-2023-6918](https://www.cve.org/CVERecord?id=CVE-2023-6918), CVE Terms of Use, modified 2026-11-27
- NVD: [CVE-2023-6918](https://nvd.nist.gov/vuln/detail/CVE-2023-6918), Public domain, modified 2026-11-27

---

Page: https://cve.day/CVE-2023-6918 · Whole record: https://cve.day/CVE-2023-6918.json · Rebuilt by cve.day 2026-11-27T03:17:33.117Z
