Live threats

All CVEs / Libssh

CVE-2021-3634Libssh

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
4.7%
probability of exploitation in 30 days · percentile 93
Auth required
Yes
Published
Aug 31, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libssh.

Affected products (CPE)

VendorProductVersions
libsshlibssh≥ 0.9.1 < 0.9.6
redhatvirtualization4.0
redhatenterprise_linux8.0
debiandebian_linux10.0
debiandebian_linux11.0
fedoraprojectfedora33
fedoraprojectfedora34
fedoraprojectfedora35
oraclemysql_workbench≤ 8.0.27
netappcloud_backupall

Official sources

References

Links published by the sources. Open them with care.