CVE-2021-3634
No exploitation reported by the sources we read.
- Published2021-08-31
- Fixed in0.9.6
- WeaknessCWE-787
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-08-3117:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-11-03 15:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-3634?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-3634?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.9 | ≥ 0.9.1, < 0.9.6 | 0.9.6 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 33.x | = 33 | no fix published | NVD |
| 34.x | = 34 | no fix published | NVD |
| 35.x | = 35 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
4 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libsshUbuntu:22.04:LTSall versions · fixed in 0.9.6-1
- libsshUbuntu:20.04:LTSall versions · fixed in 0.9.3-2ubuntu2.2
- libsshTuxCare:CentOS:8.5all versions · fixed in 0.9.4-3.el8.tuxcare.els1and 2 other packages
- libsshTuxCare:CentOS:8.4all versions · fixed in 0.9.4-3.el8.tuxcare.els1and 2 other packages
- libsshSUSE:Linux Enterprise Software Development Kit 12 SP5all versions · fixed in 0.9.8-3.12.2
- libsshSUSE:Linux Enterprise Server for SAP Applications 15 SP3all versions · fixed in 0.9.8-150200.13.3.1
- libsshSUSE:Linux Enterprise Server for SAP Applications 15 SP2all versions · fixed in 0.9.8-150200.13.3.1
- libsshSUSE:Linux Enterprise Server for SAP Applications 12 SP5all versions · fixed in 0.9.8-3.12.2
32 more package ranges on OSV.dev
Fix
- Update Libssh to 0.9.6
Advisories and patches
- www.oracle.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- none listed PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- EUVD-2021-26935same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- ALSA-2022:2031advisory covering several CVEsAlmaLinux · MIT
- DSA-4965-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0441advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1343advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:10998-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:2031advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:2031advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2024:0525-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:0539-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5053-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Published
- 2021-08-31
- Last Modified
- 2026-06-17
- NVD status
- Modified
Frequently asked questions
What is CVE-2021-3634?
Is CVE-2021-3634 actively exploited?
What is the CVSS score for CVE-2021-3634?
Running libssh? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2023-48795same product
- CVE-2025-5318same productLibssh: out-of-bounds read in sftp_handle()
- CVE-2025-5987same product
- CVE-2023-6918same product
- CVE-2023-1667same product
- CVE-2023-2283same product
- CVE-2025-5449same productLibssh: integer overflow in libssh sftp server packet length validation leading to denial of service
- CVE-2026-3731same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served