---
title: "CVE-2021-3634"
canonical_url: "https://pkgseek.com/security/CVE-2021-3634"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# 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 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 "secr…

CVE-2021-3634 is rated MEDIUM (6.5), with 8 indexed affected package builds across 2 distributions.

- **Severity / Score**: MEDIUM (6.5)
- **Affected builds**: 8
- **Affected distros**: 2
- **Distros with fixed_in**: Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | libssh | 0.9.6-13.el8_9 | 0.9.6-3.el8 |
| Oracle Linux | 8 | libssh-config | 0.9.6-13.el8_9 | 0.9.6-3.el8 |
| Oracle Linux | 8 | libssh-devel | 0.9.6-13.el8_9 | 0.9.6-3.el8 |
| Ubuntu | focal | libssh-4 | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.2 |
| Ubuntu | focal | libssh-dev | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.2 |
| Ubuntu | focal | libssh-doc | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.2 |
| Ubuntu | focal | libssh-gcrypt-4 | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.2 |
| Ubuntu | focal | libssh-gcrypt-dev | 0.9.3-2ubuntu2 | 0.9.3-2ubuntu2.2 |
