paramiko@2.4.2 vulnerabilities

SSH2 protocol library

  • latest version

    3.5.0

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    3 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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)