Libssh: missing checks for return values for digests
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 4 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | — | 0.9.6-14.el8 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | 0.9.6-14.el8 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 0.10.4-13.el9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 0.10.4-13.el9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 6 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | No fix listed | CNA |
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 0.9.6-14.el8 Patch available CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 0.9.6-14.el8 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 0.10.4-13.el9 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 0.10.4-13.el9 Patch available CNA
- Red Hat Enterprise Linux 6 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* | 0.9.0 to before 0.9.8; 0.10.0 to before 0.10.6 | Vulnerable | libssh |
| cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* | 38 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* | 39 | Vulnerable | Fedoraproject |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Red Hat |
- cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* Versions 0.9.0 to before 0.9.8; 0.10.0 to before 0.10.6 Vulnerable ·libssh
- cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* Versions 38 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* Versions 39 Vulnerable ·Fedoraproject
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Red Hat
Remediation
Red Hat 2 advisories
- RHSA-2024:3233 Released 2024-05-22 · Red Hat rating Lowlibssh security update
- Red Hat Enterprise Linux AppStream (v. 8) libssh-devel-0.9.6-14.el8
- Red Hat Enterprise Linux BaseOS (v. 8) libssh-0.9.6-14.el8, libssh-config-0.9.6-14.el8
- RHSA-2024:2504 Released 2024-04-30 · Red Hat rating Lowlibssh security update
- Red Hat Enterprise Linux AppStream (v. 9) libssh-devel-0.10.4-13.el9
- Red Hat Enterprise Linux BaseOS (v. 9) libssh-0.10.4-13.el9, libssh-config-0.10.4-13.el9
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:3233 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:2504 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:3233 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:2504 |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-6918
- 2026-10-03 Alias added: GHSA-gpcj-wh2f-rr23
References
More Red Hat Enterprise Linux vulnerabilities
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2018-10530 Code injection in [UNKNOWN] RichFaces KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05975 GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05157 GNU Bash through 4.3 processes trailing strings after function definitions in the values… KEVCVSS 3.1CRITICAL 9.8
- TI-2025-23530 Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf… KEVCVSS 3.1CRITICAL 9.3
- TI-2021-17490 mod_proxy SSRF KEVCVSS 3.1CRITICAL 9.0
Sources
- CVE-2023-6918 · CVE Program
- CVE-2023-6918 · NVD
- FIRST EPSS
- GHSA-gpcj-wh2f-rr23 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-6918 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences