CVE-2008-0299: Paramiko Paramiko Unsafe Randomness Usage May Vulnerability
HIGHCVE-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
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).
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.
pip install paramiko>=1.7.1-3
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
CVE-2008-0299 Affected Paramiko Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
paramiko
|
PyPI |
< 1.7.1-3
|
1.7.1-3
|
References
Frequently Asked Questions
What is CVE-2008-0299?
Which Paramiko versions are affected?
What version fixes CVE-2008-0299?
Is paramiko affected?
What is the CVSS score of CVE-2008-0299?
What CWE is associated with CVE-2008-0299?
How can I check PyPI dependencies for CVE-2008-0299?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}