# CVE-2021-3634

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-08-31 · Modified: 2024-08-03
- Aliases: MGASA-2021-0441, RHSA-2022:2031, UBUNTU-CVE-2021-3634, USN-5053-1, DEBIAN-CVE-2021-3634, DSA-4965-1, ALPINE-CVE-2021-3634
- Record: https://cvemate.com/vulnerability/CVE-2021-3634 · JSON: https://cvemate.com/vulnerability/CVE-2021-3634/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 4.683%, percentile 92.027%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libssh (Alpine Linux): ≥ 0.9.1, \< 0.9.6-r0
- debian libssh (Debian): \< 0.9.6-1 \| \< 0.9.5-1+deb11u1
- ubuntu libssh (Ubuntu): \< 0.9.3-2ubuntu2.2 \| \< 0.9.6-1
- debian debian\_linux: 10.0 \| 11.0
- fedoraproject fedora: 33 \| 34 \| 35
- libssh libssh: ≥ 0.9.1, \< 0.9.6
- mageia libssh (Mageia): \< 0.9.6-1.mga8
- netapp cloud\_backup: na
- oracle mysql\_workbench: ≤ 8.0.27
- redhat enterprise\_linux: 8.0
- redhat virtualization: 4.0
- redhat libssh (Red Hat): \< 0:0.9.6-3.el8
- redhat libssh-config (Red Hat): \< 0:0.9.6-3.el8
- redhat libssh-debuginfo (Red Hat): \< 0:0.9.6-3.el8
- redhat libssh-debugsource (Red Hat): \< 0:0.9.6-3.el8
- redhat libssh-devel (Red Hat): \< 0:0.9.6-3.el8

## References (first 20 of 25)

- <https://bugzilla.redhat.com/show_bug.cgi?id=1978810>
- <https://www.debian.org/security/2021/dsa-4965>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWAAB2XMKEUMPMDALINKAA4U2QM4LNG/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JKYD3ZRAMDAQX3ZW6THHUF3GXN7FF6B4/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DRK67AJCWYYVAGF5SGAHNZXCX3PN3ZFP/>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://security.netapp.com/advisory/ntap-20211004-0003/>
- <https://security.gentoo.org/glsa/202312-05>
- <https://advisories.mageia.org/MGASA-2021-0441.html>
- <https://bugs.mageia.org/show_bug.cgi?id=29419>
- <https://www.libssh.org/security/advisories/CVE-2021-3634.txt>
- <https://www.libssh.org/2021/08/26/libssh-0-9-6-security-release/>
- <https://ubuntu.com/security/notices/USN-5053-1>
- <https://access.redhat.com/errata/RHSA-2022:2031>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.6_release_notes/>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1896651>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2020159>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_2031.json>
- <https://access.redhat.com/security/cve/CVE-2021-3634>

---

Data as of 2026-12-05T03:08:37.573Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
