Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPosition on network segment
-
DeliveryIntercept SSH handshake via ARP/BGP hijack
-
ExploitForge RSA host key using SHA-1 collision
-
InstallPresent forged key to Paramiko client
-
C2Client accepts key due to SHA-1 match
-
ExecuteAttacker impersonates server
-
ImpactCapture credentials or session keys
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Approved algorithm selection
|
| Exploitation Conditions | Exploitation requires three specific conditions: (1) the SSH connection must use RSA host keys with algorithm identifier 'ssh-rsa' or 'ssh-rsa-cert-v01@openssh.com' (non-default on modern systems but common in legacy environments), (2) the Paramiko SSH client or server must have not disabled ssh-rsa in its SecurityOptions.preferred_pubkeys or Transport._preferred_keys configuration, and (3) the attacker must have network-level man-in-the-middle capability (AV:A per CVSS vector) to intercept the SSH handshake-this requires either shared network segment access (WiFi MITM), routing compromise, or DNS/BGP hijacking. The vulnerability does NOT exist in default configurations if the remote SSH server does not offer ssh-rsa (modern OpenSSH 8.8+ rejects it), nor if the Paramiko client explicitly excludes ssh-rsa from preferred algorithms. The high attack complexity (AC:H) reflects the difficulty of achieving adjacent network MITM and exploiting SHA-1 collisions in practice. |
| Impact | CVSS 3.4 (Low severity) with CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N indicates integrity impact (signature forgery) only, requiring adjacent network access and high attack complexity. The low CVSS contradicts the cryptographic severity: SHA-1 collision attacks are theoretically feasible but require significant computational resources (estimated USD 50,000-100,000 for targeted collision generation per SHAttered research). Real-world risk depends heavily on deployment context-SSH clients connecting to untrusted networks face MITM exposure, while servers in secured environments face lower risk. The OSTIF audit reference suggests this issue was identified through formal security review rather than active exploitation (no KEV status, no public POC identified). Attack complexity is HIGH because the attacker must either control network routing (ARP spoofing, BGP hijacking) to intercept SSH handshakes or compromise an intermediate certificate authority. The integrity-only impact (no confidentiality, no availability) further reduces practical risk compared to RCE vulnerabilities. However, the issue is FUNDAMENTAL to the protocol implementation and affects any Paramiko deployment accepting ssh-rsa keys-organizations running older SSH servers or clients that only support ssh-rsa remain vulnerable until both sides upgrade to SHA-2. |
| Exploit ScenarioDerived | An attacker positioned on the same network segment as a Paramiko SSH client (e.g., corporate WiFi or compromised router) performs ARP spoofing or BGP hijacking to intercept SSH connection traffic. The Paramiko client attempting to authenticate to an SSH server accepts the attacker's forged host key because the attacker can exploit SHA-1 collision vulnerabilities to craft a rogue RSA public key that matches the target server's fingerprint under SHA-1 hashing. The client proceeds with authentication to the attacker's machine, leaking credentials or session keys. Alternatively, an attacker with SSH server access modifies the host key's RSA signature to a forged version exploiting SHA-1 weaknesses; connecting Paramiko clients accept it if configured to trust ssh-rsa. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 06, 2026
Paramiko through version 4.0.0 before commit a448945 accepts SHA-1-based RSA signatures (ssh-rsa algorithm) in host key verification and authentication contexts, violating modern cryptographic standards and enabling signature forgery attacks. The vulnerability affects SSH clients and servers using Paramiko for key exchange and authentication, allowing remote attackers on the same network segment to potentially forge host keys or perform man-in-the-middle attacks by exploiting the deprecated SHA-1 hash algorithm. No public exploit code has been identified at time of analysis, though the issue is cryptographically fundamental and OSTIF security audit documentation exists.
RemediationAI
Upgrade Paramiko to version 4.0.1 or later, which contains commit a448945 removing SHA-1 enforcement from RSA key operations. For Python package managers, run 'pip install --upgrade paramiko>=4.0.1'. If immediate upgrade is not feasible, configure SSH clients to explicitly prefer rsa-sha2-256 or rsa-sha2-512 algorithms by setting PubkeyAcceptedAlgorithms in OpenSSH config or equivalent Paramiko SecurityOptions.preferred_pubkeys, filtering out 'ssh-rsa' entries. Note that this workaround requires the remote SSH server support SHA-2 variants; legacy servers supporting only ssh-rsa will become unreachable until upgraded. For server-side deployments, ensure sshd configuration includes 'PubkeyAcceptedAlgorithms rsa-sha2-256,rsa-sha2-512' and remove 'ssh-rsa' from accepted algorithms. Legacy client-server pairs (e.g., Ansible → older network devices) must be migrated to SHA-2-capable SSH implementations or isolated to dedicated secure networks with strong egress filtering to prevent MITM.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Paramiko is a pure-Python SSH implementation used for secure shell protocol automation, commonly integrated into Python applications for remote system administration. The vulnerability stems from CWE-327 (Use of Broken Cryptographic Algorithm), specifically Paramiko's RSAKey class retaining support for the ssh-rsa algorithm identifier, which mandates SHA-1 signatures per RFC 4252. The affected code path involves the HASHES dictionary in rsakey.py, which previously mapped 'ssh-rsa' and 'ssh-rsa-cert-v01@openssh.com' directly to hashes.SHA1. The fix involves removing these mappings from HASHES while maintaining ssh-rsa in the advertised key types list (for backward compatibility in reading legacy keys), but enforcing SHA-2 variants (rsa-sha2-256, rsa-sha2-512) during actual signing and verification operations via auth_handler.py, client.py, and transport.py modifications. The commit a448945 restructures algorithm negotiation in SecurityOptions and Transport classes to exclude ssh-rsa from preferred key types and force SHA-2 negotiation when RSA keys are used.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:A/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
DescriptionCVE.org
In Paramiko through 4.0.0 before a448945, rsakey.py allows the SHA-1 algorithm.
Blast Radius
ecosystem impact- 214 pypi packages depend on paramiko (112 direct, 104 indirect)
Ecosystem-wide dependent count for version 4.0.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-27514
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB