Libssh: missing checks for return values for digests
Summary
| CVE | CVE-2023-6918 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-12-19 00:15:08 UTC |
| Updated | 2026-11-06 14:17:02 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Problem Types: CWE-252 | CWE-252 Unchecked Return Value
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| 3.1 | [email protected] | Secondary | 3.7 | LOW | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| 3.1 | CNA | CVSS | 3.7 | LOW | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:0.9.6-14.el8 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:0.9.6-14.el8 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:0.10.4-13.el9 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:0.10.4-13.el9 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.libssh.org/2023/12/18/libssh-0-10-6-and-libssh-0-9-8-security-releases | af854a3a-2127-422b-91ae-364da2661108 | www.libssh.org | Release Notes |
| access.redhat.com/security/cve/CVE-2023-6918 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Mailing List, Vendor Advisory |
| bugzilla.redhat.com/show_bug.cgi | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking, Third Party Advisory |
| lists.fedoraproject.org/archives/list/[email protected]/messag... | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| security.netapp.com/advisory/ntap-20250214-0009 | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | |
| access.redhat.com/errata/RHSA-2024:3233 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| lists.fedoraproject.org/archives/list/[email protected]/messag... | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| www.libssh.org/security/advisories/CVE-2023-6918.txt | af854a3a-2127-422b-91ae-364da2661108 | www.libssh.org | Vendor Advisory |
| access.redhat.com/errata/RHSA-2024:2504 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Red Hat would like to thank Jack Weinstein (<[email protected]>) for reporting this issue. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2023-12-18T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2023-12-18T00:00:00.000Z | Made public. |
Workarounds
CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Legacy QID Mappings
- 200060 Ubuntu Security Notification for libssh Vulnerabilities (USN-6592-1)
- 200095 Ubuntu Security Notification for libssh Vulnerabilities (USN-6592-2)
- 285088 Fedora Security Update for libssh (FEDORA-2023-0733306be9)
- 506112 Alpine Linux Security Update for libssh
- 6000408 Debian Security Update for libssh (DSA 5591-1)
- 673335 EulerOS Security Update for libssh (EulerOS-SA-2024-1316)
- 673381 EulerOS Security Update for libssh (EulerOS-SA-2024-1338)
- 673472 EulerOS Security Update for libssh (EulerOS-SA-2024-1197)
- 673750 EulerOS Security Update for libssh (EulerOS-SA-2024-1216)
- 673785 EulerOS Security Update for libssh (EulerOS-SA-2024-1177)
- 674082 EulerOS Security Update for libssh (EulerOS-SA-2024-1238)
- 755620 SUSE Enterprise Linux Security Update for libssh (SUSE-SU-2024:0140-1)
- 755778 SUSE Enterprise Linux Security Update for libssh (SUSE-SU-2024:0525-1)
- 755806 SUSE Enterprise Linux Security Update for libssh (SUSE-SU-2024:0539-1)
- 907721 Common Base Linux Mariner (CBL-Mariner) Security Update for libssh (32199-1)