BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-3634 in Debian Linux and 6 more products

Medium 6.5

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 in...

Affects 7 products from 6 vendors. Facts below cite their sources.

CVSS 3.16.5
EPSS4.7%
EPSS percentile93th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 10.0 11.0
Fedoraproject Fedora 33 34 35
Libssh Libssh ≥ 0.9.1, < 0.9.6
Netapp Cloud Backup No version listed by the source
Oracle Mysql Workbench ≤ 8.0.27
Redhat Virtualization 4.0
Redhat Enterprise Linux 8.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-3634
BreachSpider IDBS-2021-GLOBAL-075180-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published2021-08-31
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Analysis AI-written, not human-reviewed

A vulnerability in libssh versions prior to 0.9.6 allows an attacker to potentially exploit shared secrets during SSH sessions, leading to unauthorized access or session hijacking.

The vulnerability arises from the improper handling of shared secrets (secret_hash and session_id) during key re-exchange in the SSH protocol. An attacker could exploit this to manipulate or predict these secrets, leading to unauthorized access or session hijacking.

Questions

What is CVE-2021-3634?

A vulnerability in libssh versions prior to 0.9.6 allows an attacker to potentially exploit shared secrets during SSH sessions, leading to unauthorized access or session hijacking.

What is the CVSS score for CVE-2021-3634?

CVE-2021-3634 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 4.7%.

Is CVE-2021-3634 actively exploited?

No confirmed active exploitation of CVE-2021-3634 as of 2026-09-25.

How do I remediate CVE-2021-3634?

Priority: MEDIUM. Advisory: https://bugzilla.redhat.com/show_bug.cgi?id=1978810

What systems are affected by CVE-2021-3634?

CVE-2021-3634 affects Debian Debian Linux; Fedoraproject Fedora; Libssh Libssh; Netapp Cloud Backup; Oracle Mysql Workbench; Redhat Virtualization, Enterprise Linux.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.