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.
CVSS Details
- CVSS 3.1 Base Score: 6.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | alma-upgrade-libsshalma-upgrade-libssh-configalma-upgrade-libssh-devel | May 13, 2022 | Aug 31, 2021 | |
| Alpine Linux | alpine-linux-upgrade-libssh | Aug 22, 2024 | Aug 31, 2021 | |
| Centos_linux | — | centos-upgrade-libsshcentos-upgrade-libssh-configcentos-upgrade-libssh-debuginfocentos-upgrade-libssh-debugsourcecentos-upgrade-libssh-devel | May 13, 2022 | Aug 31, 2021 |
| Debian | debian-upgrade-libssh | Nov 4, 2022 | Aug 31, 2021 | |
| Dell Powerstore Dsa2024398 | dell-powerstoreos-upgrade-latest | Oct 23, 2025 | Sep 17, 2024 | |
| Dell Powerstore Dsa2024408 | dell-powerstoreos-upgrade-latest | Jan 13, 2026 | Sep 26, 2024 | |
| Dell Powerstore Dsa2024432 | dell-powerstoreos-upgrade-latest | Oct 23, 2025 | Oct 29, 2024 | |
| Freebsd | freebsd-upgrade-package-libssh | Nov 4, 2022 | Sep 21, 2021 | |
| Gentoo Linux | gentoo-linux-upgrade-net-libs-libssh | Dec 27, 2023 | Aug 31, 2021 | |
| Huawei Euleros 2_0_sp9 | huawei-euleros-2_0_sp9-upgrade-libssh | Nov 12, 2021 | Aug 31, 2021 | |
| Oracle_linux | — | oracle-linux-upgrade-libsshoracle-linux-upgrade-libssh-configoracle-linux-upgrade-libssh-devel | May 18, 2022 | Aug 26, 2021 |
| Redhat_linux | redhat-upgrade-libsshredhat-upgrade-libssh-configredhat-upgrade-libssh-debuginforedhat-upgrade-libssh-debugsourceredhat-upgrade-libssh-devel | May 13, 2022 | Aug 31, 2021 | |
| Rocky_linux | rocky-upgrade-libsshrocky-upgrade-libssh-debuginforocky-upgrade-libssh-debugsourcerocky-upgrade-libssh-devel | May 20, 2022 | Aug 31, 2021 | |
| Suse | — | suse-upgrade-libssh-configsuse-upgrade-libssh-develsuse-upgrade-libssh4suse-upgrade-libssh4-32bit | Oct 26, 2022 | Aug 31, 2021 |
| Ubuntu | ubuntu-upgrade-libssh-4 | Mar 22, 2023 | Aug 31, 2021 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub