Advisory

GHSA-f8q4-jwww-x3wv

Also known as: CVE-2022-24302, PYSEC-2022-166

Summary

Race Condition in Paramiko

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-19 00:01 UTC
Modified
2025-12-20 03:08 UTC

Affected packages and fixes

paramiko

PyPI · All systems

Affected

  • introduced 2.10.0, fixed 2.10.1 (ecosystem)

Fixed versions

2.10.1

Fix

  • Fixed version 2.10.1
    pip install --upgrade paramiko==2.10.1

paramiko

PyPI · All systems

Affected

  • introduced 2.9.0, fixed 2.9.3 (ecosystem)

Fixed versions

2.9.3

Fix

  • Fixed version 2.9.3
    pip install --upgrade paramiko==2.9.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences