paramiko@1.18.0 vulnerabilities

SSH2 protocol library

Direct Vulnerabilities

Known vulnerabilities in the paramiko package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Authentication Bypass by Capture-replay

paramiko is a library for making SSH2 connections (client or server).

Affected versions of this package are vulnerable to Authentication Bypass by Capture-replay during the establishment of the secure channel. An attacker can manipulate handshake sequence numbers to delete messages sent immediately after the channel is established.

Note:

  1. Sequence numbers are only validated once the channel is established and arbitrary messages are allowed during the handshake, allowing them to manipulate the sequence numbers.

  2. The potential consequences of the general Terrapin attack are dependent on the messages exchanged after the handshake concludes. If you are using a custom SSH service and do not resort to the authentication protocol, you should check that dropping the first few messages of a connection does not yield security risks.

Impact:

While cryptographically novel, there is no discernable impact on the integrity of SSH traffic beyond giving the attacker the ability to delete the message that enables some features related to keystroke timing obfuscation. To successfully carry out the exploitation, the connection needs to be protected using either the ChaCha20-Poly1305 or CBC with Encrypt-then-MAC encryption methods. The attacker must also be able to intercept and modify the connection's traffic.

How to fix Authentication Bypass by Capture-replay?

Upgrade paramiko to version 3.4.0 or higher.

[,3.4.0)
  • M
Race Condition

paramiko is a library for making SSH2 connections (client or server).

Affected versions of this package are vulnerable to Race Condition when creating new private key files using ~paramiko.pkey.PKey subclasses, it is possible to be exploited in the process between file creation & mode modification via the write_private_key_file function.

How to fix Race Condition?

Upgrade paramiko to version 2.10.1 or higher.

[,2.10.1)
  • H
Authentication Bypass

paramiko is a library for making SSH2 connections (client or server).

Affected versions of this package are vulnerable to Authentication Bypass. The SSH server did not use correct access control, which allowed the server to bypass an unauthenticated user as authenticated one.

How to fix Authentication Bypass?

Upgrade paramiko to version 2.0.9 or higher.

[1.5.1,2.0.9)
  • C
Authentication Bypass

paramiko is the leading native Python SSHv2 protocol library.

Affected versions of this package are vulnerable to Authentication Bypass. It does not properly check whether authentication is completed before processing other requests, as demonstrated by channel-open. A customized SSH client can simply skip the authentication step.

How to fix Authentication Bypass?

Upgrade paramiko to versions 1.17.6, 1.18.5, 2.0.8, 2.1.5, 2.2.3, 2.3.2, 2.4.1 or higher.

[,1.17.6) [1.18.0,1.18.5) [2.0.0,2.0.8) [2.1.0,2.1.5) [2.2.0,2.2.3) [2.3.0,2.3.2) [2.4.0,2.4.1)