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 sessi...
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- MySQLUbuntuDebianRed Hat
Description
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.
Upgrade path
23 packages: 18 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp cloud backup | All versions | No fix listed | No fix yet |
| alpine/libssh(Alpine v3.14) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.15) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.16) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.17) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.18) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.19) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.20) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.21) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.22) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.23) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| alpine/libssh(Alpine v3.24) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 | Fixed |
| debian/libssh(Debian 12) | < 0.9.6-1 | 0.9.6-1 | Fixed |
| debian/libssh(Debian 13) | < 0.9.6-1 | 0.9.6-1 | Fixed |
| debian/libssh(Debian 14) | < 0.9.6-1 | 0.9.6-1 | Fixed |
| libssh | >= 0.9.1, < 0.9.6 | 0.9.6 | Fixed |
| oracle mysql workbench | <= 8.0.27 | after 8.0.27 | Fixed |
| ubuntu/libssh(Ubuntu 20.04) | < 0.9.3-2ubuntu2.2; = 0.9.0-1ubuntu1; = 0.9.0-1ubuntu4; = 0.9.0-1ubuntu5 +3 more | 0.9.3-2ubuntu2.2 | Fixed |
| ubuntu/libssh(Ubuntu 22.04) | < 0.9.6-1 | 0.9.6-1 | Fixed |
| debian linux | = 10.0; = 11.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 33; = 34; = 35 | No fix listed | Versions listed |
| redhat enterprise linux | = 8.0 | No fix listed | Versions listed |
| redhat virtualization | = 4.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/libssh(Ubuntu:22.04) | < 0.9.6-1 | 0.9.6-1 |
| debian/libssh(Debian:12) | < 0.9.6-1 | 0.9.6-1 |
| debian/libssh(Debian:13) | < 0.9.6-1 | 0.9.6-1 |
| debian/libssh(Debian:14) | < 0.9.6-1 | 0.9.6-1 |
| libssh | >= 0.9.1, < 0.9.6 | 0.9.6 |
| redhat virtualization | = 4.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| fedoraproject fedora | = 33 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| oracle mysql workbench | <= 8.0.27 | No fix listed |
| netapp cloud backup | All versions | No fix listed |
| alpine/libssh(Alpine:v3.14) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.15) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.16) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.17) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.18) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.19) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.20) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.21) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.22) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.23) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
| alpine/libssh(Alpine:v3.24) | >= 0.9.1, < 0.9.6-r0 | 0.9.6-r0 |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/libssh(Ubuntu:20.04) | < 0.9.3-2ubuntu2.2 | 0.9.3-2ubuntu2.2 |
| ubuntu/libssh(Ubuntu:20.04) | = 0.9.0-1ubuntu1 | No fix listed |
| ubuntu/libssh(Ubuntu:20.04) | = 0.9.0-1ubuntu4 | No fix listed |
| ubuntu/libssh(Ubuntu:20.04) | = 0.9.0-1ubuntu5 | No fix listed |
| ubuntu/libssh(Ubuntu:20.04) | = 0.9.3-2ubuntu1 | No fix listed |
| ubuntu/libssh(Ubuntu:20.04) | = 0.9.3-2ubuntu2 | No fix listed |
| ubuntu/libssh(Ubuntu:20.04) | = 0.9.3-2ubuntu2.1 | No fix listed |
References
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5053-1 vendor-advisory
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2021-3634 vendor-advisory
- bugzilla.redhat.com issue-tracking third-party-advisory
- FEDORA-2021-f2a020a065 vendor-advisory
- FEDORA-2021-288925ac19 vendor-advisory
- FEDORA-2021-ec797b6a96 vendor-advisory
- GLSA-202312-05 vendor-advisory
- security.netapp.com third-party-advisory
- DSA-4965 third-party-advisory vendor-advisory
- www.oracle.com patch third-party-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking