Buffer overflow in Libssh
CVE-2021-3634
A flaw has been found in libssh in versions prior to 0.9.6. The SSH protocol keeps track of two shared secrets during the lifetime of the session. One of them is called secret_hash and the other session_id. Initially, both of them are the same, but after key re-exchange, previous session_id is kept and used as an input to new secret_hash. Historically, both of these buffers had shared length variable, which worked as long as these buffers were same. But the key re-exchange operation can also change the key exchange method, which can be based on hash of different size, eventually creating "secret_hash" of different size than the session_id has. This becomes an issue when the session_id memory is zeroed or when it is used again during second key re-exchange.
Vulnerability class: Buffer Overflow
EPSS: 0.047 (90.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Libssh
- Netapp Cloud_backup
- Oracle Mysql_workbench
- Debian Debian_linux — versions 10.0, 11.0
- Fedoraproject Fedora — versions 33, 34, 35
- Redhat Enterprise_linux — versions 8.0
- Redhat Virtualization — versions 4.0
- N/a Libssh — versions libssh 0.9.6
Weakness classification (CWE)
Public proof-of-concept exploits
References
- secalert@redhat.com (Third Party Advisory, Issue Tracking)
- secalert@redhat.com (vendor-advisory, Third Party Advisory)
- secalert@redhat.com (vendor-advisory)
- secalert@redhat.com (vendor-advisory)
- secalert@redhat.com (vendor-advisory)
- secalert@redhat.com (Patch, Third Party Advisory)
- secalert@redhat.com (Third Party Advisory)
- secalert@redhat.com (vendor-advisory)
Frequently asked questions
- What is CVE-2021-3634?
- CVE-2021-3634 is a medium-severity vulnerability in Libssh, classified under Out-of-bounds Write. CVSS score: 6.5/10. Published 2021-08-31.
- How severe is CVE-2021-3634?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2021-3634 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.