CVE-2008-0299: Paramiko Paramiko Unsafe Randomness Usage May Vulnerability

HIGH
Advisory Identifier: GHSA-wqmm-q65g-2hqr
CVSS 6.5
CWE-200
Published
Advisory Summary

CVE-2008-0299 is a HIGH (CVSS 6.5) paramiko unsafe randomness usage may vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Paramiko libraries in the PyPI ecosystem. The issue involves paramiko unsafe randomness usage may allow access to sensitive information. Remediation is available by upgrading affected packages to version 1.7.1-3.

CVE-2008-0299 at a Glance

CVE Identifier CVE-2008-0299
GHSA Identifier GHSA-wqmm-q65g-2hqr
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Paramiko
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2008-0299

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: 1.7.1-3
pip install paramiko>=1.7.1-3
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-2008-0299, 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 1.7.1-3), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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

common.py in Paramiko 1.7.1 and earlier, when using threads or forked processes, does not properly use RandomPool, which allows one session to obtain sensitive information from another session by predicting the state of the pool.

CVE-2008-0299 Affected Paramiko Versions

1 component(s)
Fixed Versions:
1.7.1-3
Product / Package Ecosystem Affected Versions Fixed Version
paramiko
PyPI
< 1.7.1-3
1.7.1-3

References

NVD — CVE-2008-0299 NVD
https://nvd.nist.gov/vuln/detail/CVE-2008-0299
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=428727
exchange.xforce.ibmcloud.com/vulnerabilities/397... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/39749
Paramiko Source Repository REPOSITORY
https://github.com/paramiko/paramiko
Paramiko Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2008-8.yaml
web.archive.org/web/20080205095439/... WEB
https://web.archive.org/web/20080205095439/http://secunia.com/advisories/28488
web.archive.org/web/20080627172450/... WEB
https://web.archive.org/web/20080627172450/http://secunia.com/advisories/28510
web.archive.org/web/20080628232710/... WEB
https://web.archive.org/web/20080628232710/http://secunia.com/advisories/29168
web.archive.org/web/20080720033315/... WEB
https://web.archive.org/web/20080720033315/http://www.lag.net/pipermail/paramiko/2008-January/000599.html
Paramiko Security Information SECURITY
https://web.archive.org/web/20081012023428/http://www.securityfocus.com/bid/27307
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00529.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00594.html
bugs.debian.org/cgi-bin/bugreport.c... WEB
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460706
people.debian.org/~nion/nmu-diff/para... WEB
http://people.debian.org/~nion/nmu-diff/paramiko-1.6.4-1_1.6.4-1.1.patch
Paramiko Security Information SECURITY
http://security.gentoo.org/glsa/glsa-200803-07.xml

Frequently Asked Questions

What is CVE-2008-0299?
CVE-2008-0299 is a security vulnerability in Paramiko involving Paramiko Unsafe randomness usage may allow access to sensitive information under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Paramiko versions are affected?
Affected versions include releases prior to 1.7.1-3 across affected packages: paramiko.
What version fixes CVE-2008-0299?
Upgrading to 1.7.1-3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is paramiko affected?
Yes, paramiko is affected in releases prior to 1.7.1-3. Upgrade your dependency to 1.7.1-3 or later.
What is the CVSS score of CVE-2008-0299?
CVE-2008-0299 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2008-0299?
CVE-2008-0299 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2008-0299?
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-wqmm-q65g-2hqr",
  "modified" : "2024-10-08T13:10:26Z",
  "published" : "2022-05-01T23:28:57Z",
  "aliases" : [ "CVE-2008-0299" ],
  "summary" : "Paramiko Unsafe randomness usage may allow access to sensitive information",
  "details" : "common.py in Paramiko 1.7.1 and earlier, when using threads or forked processes, does not properly use RandomPool, which allows one session to obtain sensitive information from another session by predicting the state of the pool.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paramiko"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.1-3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.7.1-2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-0299"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=428727"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/39749"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/paramiko/paramiko"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2008-8.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080205095439/http://secunia.com/advisories/28488"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080627172450/http://secunia.com/advisories/28510"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080628232710/http://secunia.com/advisories/29168"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080720033315/http://www.lag.net/pipermail/paramiko/2008-January/000599.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20081012023428/http://www.securityfocus.com/bid/27307"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00529.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00594.html"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460706"
  }, {
    "type" : "WEB",
    "url" : "http://people.debian.org/~nion/nmu-diff/paramiko-1.6.4-1_1.6.4-1.1.patch"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200803-07.xml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-09T19:42:59Z",
    "nvd_published_at" : "2008-01-16T23:00:00Z"
  }
}