Vulnerabilities in pkg:pypi/paramiko

PACKAGE
Advisory Identifier: GHSA-232r-66cg-79px
Advisory Summary

CVE-2018-7750 is a CRITICAL (CVSS 9.8) paramiko not properly checking authentication vulnerability (CWE-287: Improper Authentication) affecting Paramiko libraries in the PyPI ecosystem. The issue involves paramiko not properly checking authentication before processing other requests. Remediation is available by upgrading affected packages to version 2.0.8, 2.1.5, 2.2.3, 2.3.2, 2.4.1, 1.18.5, 1.17.6.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/paramiko

6 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/paramiko. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-232r-66cg-79px CVE-2018-7750 CRITICAL Paramiko not properly checking authentication before processing other requests
GHSA-45x7-px36-x8w8 CVE-2023-48795 MODERATE Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin
GHSA-r374-rxx8-8654 CVE-2026-44405 LOW Paramiko rsakey.py allows the SHA-1 algorithm
GHSA-f8q4-jwww-x3wv CVE-2022-24302 HIGH Race Condition in Paramiko
GHSA-f2j6-wrhh-v25m CVE-2018-1000805 HIGH Paramiko Authentication Bypass vulnerability
GHSA-wqmm-q65g-2hqr CVE-2008-0299 HIGH Paramiko Unsafe randomness usage may allow access to sensitive information

CVE-2018-7750 at a Glance

CVE Identifier CVE-2018-7750
GHSA Identifier GHSA-232r-66cg-79px
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-287: Improper Authentication
Affected Product Paramiko
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-7750

To remediate this vulnerability, upgrade all affected Paramiko dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

paramiko fixed: 2.0.8
pip install paramiko>=2.0.8
paramiko fixed: 2.1.5
pip install paramiko>=2.1.5
paramiko fixed: 2.2.3
pip install paramiko>=2.2.3
paramiko fixed: 2.3.2
pip install paramiko>=2.3.2
paramiko fixed: 2.4.1
pip install paramiko>=2.4.1
paramiko fixed: 1.18.5
pip install paramiko>=1.18.5
paramiko fixed: 1.17.6
pip install paramiko>=1.17.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show paramiko

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2018-7750, inspect your installed packages using pip:

pip show paramiko

Analyze the terminal output to locate any version of Paramiko in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.8), your application is affected.

Note: The pip show paramiko command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Paramiko, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

transport.py in the SSH server implementation of Paramiko before 1.17.6, 1.18.x before 1.18.5, 2.0.x before 2.0.8, 2.1.x before 2.1.5, 2.2.x before 2.2.3, 2.3.x before 2.3.2, and 2.4.x before 2.4.1 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.

CVE-2018-7750 Affected Paramiko Versions

7 component(s)
Fixed Versions:
2.0.82.1.52.2.32.3.22.4.11.18.51.17.6
Product / Package Ecosystem Affected Versions Fixed Version
paramiko
PyPI
≥ 2.0.0
< 2.0.8
2.0.8
paramiko
PyPI
≥ 2.1.0
< 2.1.5
2.1.5
paramiko
PyPI
≥ 2.2.0
< 2.2.3
2.2.3
paramiko
PyPI
≥ 2.3.0
< 2.3.2
2.3.2
paramiko
PyPI
≥ 2.4.0
< 2.4.1
All 1 versions
2.4.0
2.4.1
paramiko
PyPI
≥ 1.18.0
< 1.18.5
1.18.5
paramiko
PyPI
< 1.17.6
1.17.6

References

NVD — CVE-2018-7750 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-7750
Paramiko Source Repository REPOSITORY
https://github.com/paramiko/paramiko/issues/1175
Security Fix Commit FIX COMMIT
https://github.com/paramiko/paramiko/commit/fa29bd8446c8eab237f5187d28787727b4610516
Security Fix Commit FIX COMMIT
https://github.com/paramiko/paramiko/commit/e9dfd854bdaf8af15d7834f7502a0451d217bb8c
www.exploit-db.com/exploits/45712 WEB
https://www.exploit-db.com/exploits/45712
Paramiko Security Information SECURITY
https://web.archive.org/web/20190831123128/http://www.securityfocus.com/bid/103713
usn.ubuntu.com/3603-2 WEB
https://usn.ubuntu.com/3603-2
usn.ubuntu.com/3603-1 WEB
https://usn.ubuntu.com/3603-1
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2021/12/msg00025.html
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2018/10/msg00018.html
Paramiko Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2018-19.yaml
Paramiko Source Repository REPOSITORY
https://github.com/paramiko/paramiko/blob/master/sites/www/changelog.rst
Paramiko Source Repository REPOSITORY
https://github.com/paramiko/paramiko/blob/e861c7697622774071ce73b46ffe8817eacdedfa/sites/www/changelog.rst?plain=1#L759-L763
Paramiko Source Repository REPOSITORY
https://github.com/paramiko/paramiko
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-232r-66cg-79px
access.redhat.com/errata/rhsa-2018:19... WEB
https://access.redhat.com/errata/RHSA-2018:1972
access.redhat.com/errata/rhsa-2018:15... WEB
https://access.redhat.com/errata/RHSA-2018:1525
access.redhat.com/errata/rhsa-2018:13... WEB
https://access.redhat.com/errata/RHSA-2018:1328
access.redhat.com/errata/rhsa-2018:12... WEB
https://access.redhat.com/errata/RHSA-2018:1274
access.redhat.com/errata/rhsa-2018:12... WEB
https://access.redhat.com/errata/RHSA-2018:1213
access.redhat.com/errata/rhsa-2018:11... WEB
https://access.redhat.com/errata/RHSA-2018:1125
access.redhat.com/errata/rhsa-2018:11... WEB
https://access.redhat.com/errata/RHSA-2018:1124
access.redhat.com/errata/rhsa-2018:06... WEB
https://access.redhat.com/errata/RHSA-2018:0646
access.redhat.com/errata/rhsa-2018:05... WEB
https://access.redhat.com/errata/RHSA-2018:0591
Paramiko Security Information SECURITY
http://www.securityfocus.com/bid/103713

Frequently Asked Questions

What is CVE-2018-7750?
CVE-2018-7750 is a security vulnerability in Paramiko involving Paramiko not properly checking authentication before processing other requests under CWE-287: Improper Authentication.
Which Paramiko versions are affected?
Affected versions include releases prior to 2.0.8, 2.1.5, 2.2.3, 2.3.2, 2.4.1, 1.18.5, 1.17.6 across affected packages: paramiko.
What version fixes CVE-2018-7750?
Upgrading to 2.0.8, 2.1.5, 2.2.3, 2.3.2, 2.4.1, 1.18.5, 1.17.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is paramiko affected?
Yes, paramiko is affected in releases prior to 2.0.8, 2.1.5, 2.2.3, 2.3.2, 2.4.1, 1.18.5, 1.17.6. Upgrade your dependency to 2.0.8, 2.1.5, 2.2.3, 2.3.2, 2.4.1, 1.18.5, 1.17.6 or later.
What is the CVSS score of CVE-2018-7750?
CVE-2018-7750 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-7750?
CVE-2018-7750 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check PyPI dependencies for CVE-2018-7750?
Run the dependency tree command: 'pip show paramiko'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-232r-66cg-79px",
  "modified" : "2026-06-09T12:59:24Z",
  "published" : "2018-07-12T20:29:30Z",
  "aliases" : [ "CVE-2018-7750" ],
  "summary" : "Paramiko not properly checking authentication before processing other requests",
  "details" : "transport.py in the SSH server implementation of Paramiko before 1.17.6, 1.18.x before 1.18.5, 2.0.x before 2.0.8, 2.1.x before 2.1.5, 2.2.x before 2.2.3, 2.3.x before 2.3.2, and 2.4.x before 2.4.1 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.4.1"
      } ]
    } ],
    "versions" : [ "2.4.0" ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.18.0"
      }, {
        "fixed" : "1.18.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.17.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-7750"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/paramiko/paramiko/issues/1175"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/paramiko/paramiko/commit/fa29bd8446c8eab237f5187d28787727b4610516"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/paramiko/paramiko/commit/e9dfd854bdaf8af15d7834f7502a0451d217bb8c"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/45712"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20190831123128/http://www.securityfocus.com/bid/103713"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3603-2"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3603-1"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2021/12/msg00025.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2018/10/msg00018.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2018-19.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/paramiko/paramiko/blob/master/sites/www/changelog.rst"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/paramiko/paramiko/blob/e861c7697622774071ce73b46ffe8817eacdedfa/sites/www/changelog.rst?plain=1#L759-L763"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/paramiko/paramiko"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-232r-66cg-79px"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1972"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1525"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1328"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1274"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1213"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1125"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1124"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0646"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0591"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/103713"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:50:58Z",
    "nvd_published_at" : "2018-03-13T18:29:00Z"
  }
}