Skip to content
OpenAdvisories
Medium · 5.9 CVE-2022-24302 EUVD-2022-0192GHSA-f8q4-jwww-x3wvPYSEC-2022-166

Race Condition in Paramiko

Published Mar 17, 2022 · Updated Dec 16, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 paramiko 2.10.3-1 —
Debian 13 paramiko 2.10.3-1 —
Debian 12 paramiko 2.10.3-1 —
Debian 11 paramiko 2.7.2-1+deb11u1 DLA-4409-1
Debian 10 paramiko 2.4.2-0.1+deb10u1 DLA-3104-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 paramiko 2.0.0-1+deb9u2 DLA-2959-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS paramiko 2.8.1-1ubuntu3 —
Ubuntu 20.04 LTS paramiko 2.6.0-2ubuntu0.1 USN-5351-1
Ubuntu 18.04 LTS paramiko 2.0.0-1ubuntu1.3 USN-5351-1
Ubuntu 14.04 LTS paramiko No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS paramiko 1.16.0-1ubuntu0.2+esm2 USN-5351-2
ReleasePackageFixed inAdvisory
Red Hat Rhev Manager 4 python-paramiko +2 2.4.3-3.el8ev RHSA-2022:4712
Red Hat Rhev Hypervisor 4 python-paramiko +2 2.4.3-3.el8ev RHSA-2022:4712
Red Hat OpenStack 16 python-paramiko +1 2.4.2-8.el8ost RHSA-2022:8863, RHSA-2022:8845
ReleasePackageFixed inAdvisory
SLES 15 SP3 python-paramiko 2.4.2-150100.6.12.1 SUSE-SU-2022:1446-1
SLES 12 python-paramiko 2.4.0-9.13.1 SUSE-SU-2022:1447-1
SLES 2 python-paramiko 2.4.2-150100.6.12.1 SUSE-SU-2022:1446-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Real Time 15 SP2 python-paramiko 2.4.2-150100.6.12.1 SUSE-SU-2022:1446-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-paramiko 3.3.1-2.1 openSUSE-SU-2026:12025-1, openSUSE-SU-2024:13300-1
openSUSE Leap 15.4 python-paramiko 2.4.2-150100.6.12.1 SUSE-SU-2022:1446-1
openSUSE Leap 15.3 python-paramiko 2.4.2-150100.6.12.1 SUSE-SU-2022:1446-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI paramiko >= 2.10.0, < 2.10.1 2.10.1 GHSA-f8q4-jwww-x3wv
PyPI paramiko >= 2.9.0, < 2.9.3 2.9.3 GHSA-f8q4-jwww-x3wv
PyPI paramiko < 2.9.3 · >= 2.10.0, < 2.10.1 2.9.3, 2.10.1 PYSEC-2022-166

Advisories 14

References