Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. paramiko
  4. ›
  5. CVE-2022-24302

CVE-2022-24302: Race Condition in Paramiko

March 19, 2022 (updated December 20, 2025)

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.

References

  • github.com/advisories/GHSA-f8q4-jwww-x3wv
  • github.com/paramiko/paramiko
  • github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py
  • github.com/paramiko/paramiko/commit/4c491e299c9b800358b16fa4886d8d94f45abe2e
  • github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2022-166.yaml
  • lists.debian.org/debian-lts-announce/2022/03/msg00032.html
  • lists.debian.org/debian-lts-announce/2022/09/msg00013.html
  • lists.debian.org/debian-lts-announce/2025/12/msg00020.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB
  • nvd.nist.gov/vuln/detail/CVE-2022-24302
  • www.paramiko.org/changelog.html

Code Behaviors & Features

Detect and mitigate CVE-2022-24302 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.9.0 before 2.9.3, all versions starting from 2.10.0 before 2.10.1

Fixed versions

  • 2.10.1
  • 2.9.3

Solution

Upgrade to versions 2.10.1, 2.9.3 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

pypi/paramiko/CVE-2022-24302.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:26 +0000.