cbcvebase.
CVE-2021-3634
published 2021-08-31

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…

medium6.5CVSS 3.1
AVNACLPRLUINSUCNINAH
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.

Affected

16 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debianlibssh< libssh 0.9.6-1 (bookworm)libssh 0.9.6-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
libsshlibssh
libsshlibssh>= 0 < 0.9.5-1+deb11u10.9.5-1+deb11u1
libsshlibssh>= 0 < 0.9.6-10.9.6-1
libsshlibssh>= 0 < 0.9.6-10.9.6-1
libsshlibssh>= 0 < 0.9.6-10.9.6-1
libsshlibssh>= 0.9.1 < 0.9.60.9.6
msrccbl2_libssh_on_cbl_mariner_2.0
oraclemysql_workbench<= 8.0.27
redhatenterprise_linux
redhatvirtualization

CVSS provenance

nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv6.5MEDIUM