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

Published Dec 18, 2023
·
Updated

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.

Other sources

libssh is vulnerable to a denial of service, caused by an unchecked return value flaw for the abstract layer for message digest (MD) operations. By sending a specially crafted request, a remote attacker could exploit this vulnerability to cause a denial of service condition.

— IBM

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 in low-memory situations failures, NULL dereferences, crashes or at worst usage of the uninitialized memory as an input for the KDF.

In this case, non-matching keys will result in decryption/integrity failures, terminating connection.

— Red Hat

Affected Software

24 affected componentsFixes available
IBM MQ Operator<=CD:  v3.0.0, v3.0.1, v3.1.0 - 3.1.3 LTS: v2.0.0 - 2.0.22 Other Release: v2.4.0 - v2.4.8, v2.3.0 - 2.3.3, v2.2.0 - v2.2.2
IBM supplied MQ Advanced container images<=CD: 9.3.4.0-r1, 9.3.4.1-r1,9.3.5.0-r1,9.3.5.0-r2,9.3.5.1-r1, 9.3.5.1-r2LTS: 9.2.0.1-r1-eus, 9.2.0.2-r1-eus, 9.2.0.2-r2-eus, 9.2.0.4-r1-eus, 9.2.0.5-r1-eus, 9.2.0.5-r2-eus, 9.2.0.5-r3-eus, 9.2.0.6-r1-eus, 9.2.0.6-r2-eus, 9.2.0.6-r3-eus, 9.2.3.0-r1, 9.2.4.0-r1, 9.2.5.0-r1, 9.2.5.0-r2, 9.2.5.0-r3, 9.3.0.0-r1, 9.3.0.0-r2, 9.3.0.0-r3, 9.3.0.1-r1, 9.3.0.1-r2, 9.3.0.1-r3, 9.3.0.1-r4, 9.3.0.3-r1, 9.3.0.4-r1, 9.3.0.4-r2, 9.3.0.5-r1, 9.3.0.5-r2, 9.3.0.5-r3, 9.3.0.6-r1, 9.3.0.10-r1, 9.3.0.10-r2, 9.3.0.11-r1,9.3.0.11-r2, 9.3.0.15-r1, 9.3.0.16-r1, 9.3.0.16-r2, 9.3.0.17-r1, 9.3.0.17-r2 Other Release: 9.2.0.1-r1-eus, 9.2.0.2-r1-eus, 9.2.0.2-r2-eus, 9.2.0.4-r1-eus, 9.2.0.5-r1-eus, 9.2.0.5-r2-eus, 9.2.0.5-r3-eus, 9.2.0.6-r1-eus, 9.2.0.6-r2-eus, 9.2.0.6-r3-eus, 9.2.3.0-r1, 9.2.4.0-r1, 9.2.5.0-r1, 9.2.5.0-r2, 9.2.5.0-r3, 9.3.0.0-r1, 9.3.0.0-r2, 9.3.0.0-r3, 9.3.0.1-r1, 9.3.0.1-r2, 9.3.0.1-r3, 9.3.0.1-r4,  9.3.0.3-r1,  9.3.0.4-r1, 9.3.0.4-r2,  9.3.0.5-r1, 9.3.0.5-r2, 9.3.0.5-r3,  9.3.0.6-r1,  9.3.1.0-r1, 9.3.1.0-r2, 9.3.1.0-r3, 9.3.1.1-r1, 9.3.2.0-r1, 9.3.2.0-r2, 9.3.2.1-r1, 9.3.2.1-r2,  9.3.3.0-r1, 9.3.3.0-r2, 9.3.3.1-r1, 9.3.3.1-r2, 9.3.3.2-r1, 9.3.3.2-r2, 9.3.3.2-r3, ,9.3.3.3-r1,  9.3.3.3-r2
redhat/libssh<0.9.8
0.9.8
redhat/libssh<0.10.6
0.10.6
libssh libssh>=0.9.0<0.9.8
libssh libssh>=0.10.0<0.10.6
Fedoraproject Fedora=38
Fedoraproject Fedora=39
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
debian/libssh<0.10.6-0+deb12u1
0.10.6-0+deb12u1
debian/libssh<0.10.6-1
0.10.6-1
debian/libssh<0.10.6-1
0.10.6-1
alpine/libssh>=0.10.0<0.10.6-r0
0.10.6-r0
alpine/libssh>=0.10.0<0.10.6-r0
0.10.6-r0
alpine/libssh>=0.10.0<0.10.6-r0
0.10.6-r0
alpine/libssh>=0.10.0<0.10.6-r0
0.10.6-r0
alpine/libssh>=0.10.0<0.10.6-r0
0.10.6-r0
alpine/libssh>=0.10.0<0.10.6-r0
0.10.6-r0
debian/libssh
0.9.8-0+deb11u10.10.6-0+deb12u10.10.6-1
ubuntu/libssh<0.6.3-4.3ubuntu0.6+esm1
0.6.3-4.3ubuntu0.6+esm1
ubuntu/libssh<0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3
0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3
ubuntu/libssh<0.9.3-2ubuntu2.5
0.9.3-2ubuntu2.5
ubuntu/libssh<0.9.6-2ubuntu0.22.04.3
0.9.6-2ubuntu0.22.04.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libssh to a version that resolves this vulnerability.

    Fixed in 0.9.8
  2. Upgrade

    Upgrade redhat/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6
  3. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6-0+deb12u1
  4. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6-1
  5. Upgrade

    Upgrade alpine/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6-r0
  6. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.9.8-0+deb11u1Fixed in 0.10.6-0+deb12u1Fixed in 0.10.6-1
  7. Upgrade

    Upgrade ubuntu/libssh to a version that resolves this vulnerability.

    Fixed in 0.6.3-4.3ubuntu0.6+esm1
  8. Upgrade

    Upgrade ubuntu/libssh to a version that resolves this vulnerability.

    Fixed in 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3
  9. Upgrade

    Upgrade ubuntu/libssh to a version that resolves this vulnerability.

    Fixed in 0.9.3-2ubuntu2.5
  10. Upgrade

    Upgrade ubuntu/libssh to a version that resolves this vulnerability.

    Fixed in 0.9.6-2ubuntu0.22.04.3

Event History

Dec 18, 2023
Data Sourced
11:48 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·11:27 PM
Data Sourced
11:27 PM
Weakness
Data Sourced
via OSV·11:27 PM
DescriptionSeverityWeakness
Dec 19, 2023
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
Remedy
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Jan 2, 2024
Updated
04:00 PM
SeverityWeakness
Jan 3, 2024
Data Sourced
via Red Hat·07:46 AM
DescriptionSeverityAffected Software
Updated
08:15 AM
Affected Software
Jan 4, 2024
Updated
08:21 PM
SeverityAffected Software
Jan 10, 2024
Data Sourced
via NVD·04:14 PM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:14 PM
Affected Software
Jan 17, 2024
Event
via FIRST·12:00 AM
Jan 23, 2024
Data Sourced
via MITRE·12:59 AM
DescriptionSeverityWeakness
Apr 30, 2024
Updated
via NVD·03:15 PM
Affected Software
May 22, 2024
Updated
via NVD·05:16 PM
Affected Software
Jun 17, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Sep 16, 2024
Updated
via NVD·06:15 PM
Affected Software
Feb 15, 2025
Updated
via NVD·01:15 AM
Affected Software
Jun 17, 2026
Updated
via NVD·06:51 AM
Affected Software
Nov 6, 2026
Updated
via NVD·02:17 PM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:54 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-6918?

CVE-2023-6918 has a high severity rating due to potential denial of service risks from unhandled return values.

2

How do I fix CVE-2023-6918?

To fix CVE-2023-6918, update libssh to the latest versions specifically 0.9.8-0+deb11u1, 0.10.6-0+deb12u1, or 0.11.1-1.

3

What software is affected by CVE-2023-6918?

CVE-2023-6918 affects libssh versions below 0.10.6, various IBM MQ Operator releases, and specific versions of Red Hat and Debian distributions.

4

What can happen if CVE-2023-6918 is exploited?

Exploitation of CVE-2023-6918 can lead to low memory situations, program crashes, and potential application downtime.

5

Is my version of libssh vulnerable to CVE-2023-6918?

If you are running libssh versions prior to 0.10.6 or within the affected ranges listed, your version is vulnerable to CVE-2023-6918.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203