Vulnerability in Paramiko package: CVE-2008-0299

paramiko Updated 02 Oct 2025

Summary

16/01/2008
N/A
Yes i
Unrated
Not published

CVE-2008-0299: 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... Affects paramiko versions < 1.6.4-1.1. Fixed in 1.6.4-1.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Paramiko is a Python implementation of the SSHv2 protocol, providing both client and server functionality. It is widely used for secure remote connections and file transfers. However, versions 1.7.1 and earlier of Paramiko are susceptible to a vulnerability that affects sessions using threads or forked processes. This vulnerability arises from the improper use of RandomPool, allowing one session to predict the state of the pool and obtain sensitive information from another session.

Vulnerability Detail

The vulnerability, identified as CVE-2008-0299, poses a risk to the confidentiality and integrity of data transmitted over SSH connections using Paramiko. By exploiting this vulnerability, an attacker with access to one session can predict the state of the RandomPool and retrieve sensitive information from another session. This could include credentials, cryptographic keys, or any other data transmitted during the session. The vulnerability has a low urgency rating.

How To Fix

Minimum fixed version

1.6.4-1.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade paramiko

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. It is essential to upgrade Paramiko to the fixed version to ensure the security of SSH connections.

Conclusion

In conclusion, the Paramiko package versions 1.7.1 and earlier are vulnerable to CVE-2008-0299, which allows one session to predict the state of the RandomPool and obtain sensitive information from another session. To mitigate this vulnerability, it is crucial to upgrade Paramiko to version 1.6.4-1.1 or later. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for paramiko →

Share this vulnerability

FAQ

Paramiko is a Python implementation of the SSHv2 protocol, providing secure remote connections and file transfers.

This vulnerability allows one session to obtain sensitive information from another session, potentially compromising the confidentiality and integrity of data transmitted over SSH connections.

Versions 1.7.1 and earlier of Paramiko are affected by this vulnerability.

This vulnerability has a low urgency rating.

To fix this vulnerability, upgrade Paramiko to version 1.6.4-1.1 or later.

Related vulnerabilities

Recent vulnerabilities recorded for paramiko.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.6.4-1.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade paramiko

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback