Live threats

All CVEs / Paramiko

CVE-2022-24302Paramiko

Medium 5.9 No auth needed

Priority
51
CVSS 3.1
5.9
EPSS
1.8%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Mar 17, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-362
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

In Paramiko before 2.10.1, a race condition (between creation and chmod) in the write_private_key_file function could allow unauthorized information disclosure.

Original NVD text.

What to do

  1. Apply the vendor's security update for Paramiko.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI paramiko ≥ 2.10.0 < 2.10.1 2.10.1 pip install "paramiko>=2.10.1"
PyPI paramiko ≥ 2.9.0 < 2.9.3 2.9.3 pip install "paramiko>=2.9.3"
PyPI paramiko < 2.9.3 2.9.3 pip install "paramiko>=2.9.3"
PyPI paramiko ≥ 2.10.0 < 2.10.1 2.10.1 pip install "paramiko>=2.10.1"

Per OSV / GitHub Advisories (GHSA-f8q4-jwww-x3wv, PYSEC-2022-166). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
paramikoparamiko< 2.10.1
debiandebian_linux9.0
debiandebian_linux10.0
fedoraprojectfedora34
fedoraprojectfedora35
fedoraprojectfedora36

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.