CVE-2021-3634
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.
Weakness
- CWE-787: Out-of-bounds Write
Timeline
- 2021-08-31Published by the CNA00:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| libssh libssh | from 0.9.1 before 0.9.6fixed in 0.9.6 | 0.9.6 |
| debian debian_linux | 10.0no fix listed11.0no fix listed | not listednot listed |
| fedoraproject fedora | 33no fix listed34no fix listed35no fix listed | not listednot listednot listed |
| netapp cloud_backup | ||
| oracle mysql_workbench | through 8.0.27no fix listed | not listed |
| redhat enterprise_linux | 8.0no fix listed | not listed |
| redhat virtualization | 4.0no fix listed | not listed |
References
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DRK67AJCWYYVAGF5SGAHNZXCX3PN3ZFP/
- 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/SVWAAB2XMKEUMPMDALINKAA4U2QM4LNG/
- https://security.gentoo.org/glsa/202312-05
- https://www.debian.org/security/2021/dsa-4965
- https://bugzilla.redhat.com/show_bug.cgi?id=1978810
- https://security.netapp.com/advisory/ntap-20211004-0003/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-3634'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-3634'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-3634'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-3634'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).