Skip to main content

Paramiko SSH Library CVE-2026-44405

| EUVDEUVD-2026-27514 LOW
Use of a Broken or Risky Cryptographic Algorithm (CWE-327)
2026-05-06 cve@mitre.org
3.4
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Position on network segment
  2. Delivery
    Intercept SSH handshake via ARP/BGP hijack
  3. Exploit
    Forge RSA host key using SHA-1 collision
  4. Install
    Present forged key to Paramiko client
  5. C2
    Client accepts key due to SHA-1 match
  6. Execute
    Attacker impersonates server
  7. Impact
    Capture 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Paramiko 0 <a4489456b6f65281e172380cc4826cee5e851dbb

Affected Packages

pypi paramiko fix: 5.0.0

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

Vendor (mitre) PRIMARY 3.4 LOW
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

Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.org

In Paramiko through 4.0.0 before a448945, rsakey.py allows the SHA-1 algorithm.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

17
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +17
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy