CVE-2021-3634: A flaw has been found in libssh in versions prior to 0.9.6.
Noroxi assessment
Priority: Monitor (action score 27/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 4.6% (FIRST EPSS); higher than 91.7% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: libssh (AlmaLinux:8) 0.9.6-3.el8; libssh-config (AlmaLinux:8) 0.9.6-3.el8; libssh-devel (AlmaLinux:8) 0.9.6-3.el8.
- Mentioned 4 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to libssh (AlmaLinux:8) 0.9.6-3.el8; libssh-config (AlmaLinux:8) 0.9.6-3.el8; libssh-devel (AlmaLinux:8) 0.9.6-3.el8 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Aug 31, 2021
- Updated
- Jun 17, 2026
- EPSS
- 4.6% · 91th percentile
- CWE
- CWE-787
Report tools
Action score
27
Monitor
Low priority for now.
- CVSS
- 26 / 40 · 6.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.6%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| libssh | libssh | cpe:2.3:a:libssh:libssh |
| redhat | virtualization | cpe:2.3:a:redhat:virtualization |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| oracle | mysql workbench | cpe:2.3:a:oracle:mysql_workbench |
| netapp | cloud backup | cpe:2.3:a:netapp:cloud_backup |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- debian debian linux11.0
- fedoraproject fedora33
- fedoraproject fedora34
- fedoraproject fedora35
- libssh libssh0.9.1 and later · before 0.9.6
- netapp cloud backupall versions
- oracle mysql workbenchup to 8.0.27 inclusive
- redhat enterprise linux8.0
- redhat virtualization4.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
n/a libssh
- libssh 0.9.6affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | libssh | before 0.9.6-3.el8 | 0.9.6-3.el8 |
| AlmaLinux:8 | libssh-config | before 0.9.6-3.el8 | 0.9.6-3.el8 |
| AlmaLinux:8 | libssh-devel | before 0.9.6-3.el8 | 0.9.6-3.el8 |
| Alpine:v3.14 | libssh | from 0.9.1 · before 0.9.6-r0 | 0.9.6-r0 |
| Debian:11 | libssh | before 0.9.5-1+deb11u1 | 0.9.5-1+deb11u1 |
| Debian:12 | libssh | before 0.9.6-1 | 0.9.6-1 |
| openSUSE:Tumbleweed | libssh | before 0.9.6-1.2 | 0.9.6-1.2 |
| Red Hat:enterprise_linux:8::appstream | libssh-debuginfo | before 0:0.9.6-3.el8 | 0:0.9.6-3.el8 |
| Red Hat:enterprise_linux:8::appstream | libssh-debugsource | before 0:0.9.6-3.el8 | 0:0.9.6-3.el8 |
| Red Hat:enterprise_linux:8::appstream | libssh-devel | before 0:0.9.6-3.el8 | 0:0.9.6-3.el8 |
| Red Hat:enterprise_linux:8::baseos | libssh | before 0:0.9.6-3.el8 | 0:0.9.6-3.el8 |
| Red Hat:enterprise_linux:8::baseos | libssh-config | before 0:0.9.6-3.el8 | 0:0.9.6-3.el8 |
| Rocky Linux:8 | libssh | before 0:0.9.6-3.el8 | 0:0.9.6-3.el8 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | libssh | before 0.9.8-150200.13.3.1 | 0.9.8-150200.13.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | libssh | before 0.9.8-3.12.2 | 0.9.8-3.12.2 |
Same product
libssh: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-10933A vulnerability was found in libssh's server-side state machine before versions 0.7.6 and 0.8.4.64This week
- CVE-2019-14889A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8.36Monitor
- CVE-2026-59851Libssh: libssh: authentication bypass via missing gssapi principal check35Monitor
Published before and after this one in the same product
- ← EarlierCVE-2020-1730Apr 13, 2020 · A flaw was found in libssh versions before 0.8.9 and before 0.9.4 in the way it handled AES-CTR (or DES ciphers if enabled) ciphers.22Monitor
- ← EarlierCVE-2020-16135Jul 29, 2020 · libssh 0.9.4 has a NULL pointer dereference in tftpserver.c if ssh_buffer_new returns NULL.24Monitor
- Later →CVE-2023-1667May 26, 2023 · A NULL pointer dereference was found In libssh during re-keying with algorithm guessing.26Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:libssh | 0.9.6-3.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libssh-config | 0.9.6-3.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libssh-devel | 0.9.6-3.el8 · AlmaLinux:8 | Package registry (OSV) |
| alpine:libssh | 0.9.6-r0 · Alpine:v3.14 | Package registry (OSV) |
| debian:libssh | 0.9.6-1 · Debian:12 | Package registry (OSV) |
| opensuse:libssh | 0.9.6-1.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:libssh | 0:0.9.6-3.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libssh-config | 0:0.9.6-3.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libssh-debuginfo | 0:0.9.6-3.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libssh-debugsource | 0:0.9.6-3.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libssh-devel | 0:0.9.6-3.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:libssh | 0:0.9.6-3.el8 · Rocky Linux:8 | Package registry (OSV) |
| suse:libssh | 0.9.8-150200.13.3.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0474 · Jul 4, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0414 · Jun 10, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0369 · May 20, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0348 · May 12, 2022(RedHat Güvenlik Güncellemesi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-787 · Out-of-bounds WriteCVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DRK67AJCWYYVAGF5SGAHNZXCX3PN3ZFP/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JKYD3ZRAMDAQX3ZW6THHUF3GXN7FF6B4/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWAAB2XMKEUMPMDALINKAA4U2QM4LNG/
- security.gentoo.org/glsa/202312-05
- security.netapp.com/advisory/ntap-20211004-0003/
- www.debian.org/security/2021/dsa-4965
- www.oracle.com/security-alerts/cpujan2022.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.