Every CVE Search/ Get API key

CVE-2022-24302

Race Condition in Paramiko

5.9 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

2.08%Up 1.2 points since Mar 18, 2022
90%50%10%1%

What each source reports

NVD Score used 5.9

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.

Record
CVE-2022-24302
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:P/I:N/A:N
Weakness
CWE-362
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2022-24302
Updated
2026-11-02
EUVDEUVD-2022-0192 No score

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.

Record
EUVD-2022-0192
Updated
2026-11-02
GitHub AdvisoriesGHSA-f8q4-jwww-x3wv 8.2

Race Condition in Paramiko

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.

Record
GHSA-f8q4-jwww-x3wv
CVSS 4.0
8.2 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-362
Updated
2026-11-02
OSVDEBIAN-CVE-2022-24302 5.9

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.

Record
DEBIAN-CVE-2022-24302
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-03
OSVGHSA-f8q4-jwww-x3wv 8.2

Race Condition in Paramiko

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.

Record
GHSA-f8q4-jwww-x3wv
CVSS 4.0
8.2 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-362
Updated
2026-11-02
Show 15 moreShow less
OSVOESA-2022-1609 5.9

python-paramiko security update

Paramiko is a combination of the Esperanto words for "paranoid" and "friend". It is a module for Python 2.7/3.4+ that implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote machines.

Security Fix(es):

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.(CVE-2022-24302)

Record
OESA-2022-1609
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHSA-2022:4712 5.1

Red Hat Security Advisory: RHV Engine and Host Common Packages security update

Record
RHSA-2022:4712
CVSS 3.1
5.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHSA-2022:8845 5.1

Red Hat Security Advisory: Red Hat OpenStack Platform 16.2.4 (python-paramiko) security update

Record
RHSA-2022:8845
CVSS 3.1
5.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHSA-2022:8863 5.1

Red Hat Security Advisory: Red Hat OpenStack Platform 16.1.9 (python-paramiko) security update

Record
RHSA-2022:8863
CVSS 3.1
5.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2022-24302 5.9

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.

Record
UBUNTU-CVE-2022-24302
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSV No score

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.

Record
CVE-2022-24302
Updated
2026-11-02
OSVMGASA-2022-0132 No score

Updated python-paramiko packages fix security vulnerability

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. (CVE-2022-24302)

Record
MGASA-2022-0132
Updated
2026-11-02
OSVopenSUSE-SU-2024:13300-1 No score

python-paramiko-doc-3.3.1-2.1 on GA media

These are all security issues fixed in the python-paramiko-doc-3.3.1-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13300-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:12025-1 No score

python313-paramiko-5.0.0-1.2 on GA media

These are all security issues fixed in the python313-paramiko-5.0.0-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:12025-1
Updated
2026-11-02
OSVPYSEC-2022-166 No score

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.

Record
PYSEC-2022-166
Updated
2026-11-02
OSVSUSE-SU-2022:1446-1 No score

Security update for python-paramiko

This update for python-paramiko fixes the following issues:

  • CVE-2022-24302: Fixed a race condition between creation and chmod when writing private keys. (bsc#1197279)
Record
SUSE-SU-2022:1446-1
Updated
2026-11-02
OSVSUSE-SU-2022:1447-1 No score

Security update for python-paramiko

This update for python-paramiko fixes the following issues:

  • CVE-2022-24302: Fixed a race condition between creation and chmod when writing private keys. (bsc#1197279)
Record
SUSE-SU-2022:1447-1
Updated
2026-11-02
OSVSUSE-SU-2022:1536-1 No score

Security Beta update for SUSE Manager Salt Bundle

This update fixes the following issues:

venv-salt-minion:

  • Fix the regression caused by the patch removing strict requirement for OpenSSL 1.1.1 leading to read/write issues with ssl module for SLE 15, SLE 12, CentOS 7, Debian 9 (bsc#1198556)
  • Fixes for Python 3.10
  • Fix salt-ssh opts poisoning (bsc#1197637)
  • Fix multiple security issues (bsc#1197417)
    • CVE-2022-22935: Sign authentication replies to prevent MiTM
    • CVE-2022-22934: Sign pillar data to prevent MiTM attacks.
    • CVE-2022-22936: Prevent job and fileserver replays.
    • CVE-2022-22941: Fixed targeting bug, especially visible when using syndic and user auth.
  • Salt version bump to 3004
  • Python version bump to 3.10.2
  • CVE-2022-24302: unauthorized information disclosure for python-paramiko.
  • CVE-2021-28957: XSS due to missing input sanitization in python-lxml.
  • CVE-2018-19787: XSS attacks due to missing URLs sanitization in python-lxml.
  • Security Fix: (bsc#1196249, bsc#1196877, CVE-2022-0778)
    • Allow CRYPTO_THREADID_set_callback to be called with NULL parameter
    • Infinite loop in BN_mod_sqrt() reachable when parsing certificates
Record
SUSE-SU-2022:1536-1
Updated
2026-11-02
OSVUSN-5351-1 No score

paramiko vulnerability

Jan Schejbal discovered that Paramiko incorrectly handled permissions when writing private key files. A local attacker could possibly use this issue to gain access to private keys.

Record
USN-5351-1
Updated
2026-11-02
OSVUSN-5351-2 No score

paramiko vulnerability

USN-5351-1 fixed a vulnerability in Paramiko. This update provides the corresponding update for Ubuntu 16.04 ESM.

Original advisory details:

Jan Schejbal discovered that Paramiko incorrectly handled permissions when writing private key files. A local attacker could possibly use this issue to gain access to private keys.

Record
USN-5351-2
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
paramiko
PyPI
2.10.0 up to 2.10.1
2.10.1
paramiko
PyPI
2.9.0 up to 2.9.3
2.9.3
paramiko
Debian:12
before 2.10.3-1
2.10.3-1
paramiko
Debian:13
before 2.10.3-1
2.10.3-1
paramiko
Debian:14
before 2.10.3-1
2.10.3-1
paramiko
Debian:9
before 2.0.0-1+deb9u2, plus listed versions
2.0.0-12.0.0-1+deb9u1
2.0.0-1+deb9u2
paramiko
Debian:10
before 2.4.2-0.1+deb10u1, plus listed versions
2.4.2-0.1
2.4.2-0.1+deb10u1
paramiko
Debian:11
before 2.7.2-1+deb11u1, plus listed versions
2.7.2-1
2.7.2-1+deb11u1
paramiko
PyPI
2.9.0 up to 2.9.3, plus listed versions
2.9.12.9.2
2.9.3
python-paramiko
Mageia:8
before 2.7.2-1.1.mga8
2.7.2-1.1.mga8
Show 28 moreShow less
Affected packages
PackageAffectedFixed
python-paramiko
openEuler:20.03-LTS-SP1
before 2.7.2-2.oe1
2.7.2-2.oe1
python-paramiko
openEuler:20.03-LTS-SP2
before 2.7.2-2.oe1
2.7.2-2.oe1
python-paramiko
openEuler:20.03-LTS-SP3
before 2.7.2-2.oe1
2.7.2-2.oe1
python-paramiko
openEuler:22.03-LTS
before 2.8.1-3.oe2203
2.8.1-3.oe2203
paramiko
PyPI
before 2.9.3, 2.10.0 up to 2.10.1, plus listed versions
0.1-bulbasaur0.1-charmander0.9-doduo0.9-eevee0.9-fearow
Show 45 moreShow less
0.9-gyarados0.9-horsea0.9-ivysaur1.01.11.10.01.10.11.10.21.10.31.10.41.10.51.10.61.10.71.11.01.11.11.11.21.11.31.11.41.11.51.11.61.12.01.12.11.12.21.12.31.12.41.13.01.13.11.13.21.13.31.13.41.14.01.14.11.14.21.14.31.15.01.15.11.15.21.15.31.15.41.15.51.16.01.16.11.16.21.16.31.17.0
2.9.32.10.1
python-paramiko
Red Hat:rhev_hypervisor:4.4::el8
before 0:2.4.3-3.el8ev
0:2.4.3-3.el8ev
python-paramiko-doc
Red Hat:rhev_hypervisor:4.4::el8
before 0:2.4.3-3.el8ev
0:2.4.3-3.el8ev
python3-paramiko
Red Hat:rhev_hypervisor:4.4::el8
before 0:2.4.3-3.el8ev
0:2.4.3-3.el8ev
python-paramiko
Red Hat:rhev_manager:4.4:el8
before 0:2.4.3-3.el8ev
0:2.4.3-3.el8ev
python-paramiko-doc
Red Hat:rhev_manager:4.4:el8
before 0:2.4.3-3.el8ev
0:2.4.3-3.el8ev
python3-paramiko
Red Hat:rhev_manager:4.4:el8
before 0:2.4.3-3.el8ev
0:2.4.3-3.el8ev
python-paramiko
Red Hat:openstack:16.2::el8
before 0:2.4.2-8.el8ost
0:2.4.2-8.el8ost
python3-paramiko
Red Hat:openstack:16.2::el8
before 0:2.4.2-8.el8ost
0:2.4.2-8.el8ost
python-paramiko
Red Hat:openstack:16.1::el8
before 0:2.4.2-8.el8ost
0:2.4.2-8.el8ost
python3-paramiko
Red Hat:openstack:16.1::el8
before 0:2.4.2-8.el8ost
0:2.4.2-8.el8ost
python-paramiko
SUSE:Linux Enterprise Module for Basesystem 15 SP3
before 2.4.2-150100.6.12.1
2.4.2-150100.6.12.1
python-paramiko
SUSE:Linux Enterprise Module for Python 2 15 SP3
before 2.4.2-150100.6.12.1
2.4.2-150100.6.12.1
python-paramiko
SUSE:Linux Enterprise Real Time 15 SP2
before 2.4.2-150100.6.12.1
2.4.2-150100.6.12.1
python-paramiko
openSUSE:Leap 15.3
before 2.4.2-150100.6.12.1
2.4.2-150100.6.12.1
python-paramiko
openSUSE:Leap 15.4
before 2.4.2-150100.6.12.1
2.4.2-150100.6.12.1
python-paramiko
SUSE:Linux Enterprise Module for Public Cloud 12
before 2.4.0-9.13.1
2.4.0-9.13.1
paramiko
Ubuntu:14.04:LTS
All versions, plus listed versions
1.10.1-11.10.1-1git11.10.1-1git1build11.10.1-1git1ubuntu0.11.10.1-1git1ubuntu0.2
None known
paramiko
Ubuntu:Pro:16.04:LTS
before 1.16.0-1ubuntu0.2+esm2, plus listed versions
1.15.2-11.15.3-11.15.3-1ubuntu11.16.0-11.16.0-1ubuntu0.11.16.0-1ubuntu0.2
1.16.0-1ubuntu0.2+esm2
paramiko
Ubuntu:18.04:LTS
before 2.0.0-1ubuntu1.3, plus listed versions
2.0.0-12.0.0-1ubuntu12.0.0-1ubuntu1.12.0.0-1ubuntu1.2
2.0.0-1ubuntu1.3
paramiko
Ubuntu:20.04:LTS
before 2.6.0-2ubuntu0.1, plus listed versions
2.6.0-12.6.0-2
2.6.0-2ubuntu0.1
paramiko
Ubuntu:22.04:LTS
before 2.8.1-1ubuntu3, plus listed versions
2.7.2-1ubuntu12.8.0-1ubuntu12.8.1-1ubuntu12.8.1-1ubuntu2
2.8.1-1ubuntu3
python-paramiko
openSUSE:Tumbleweed
before 3.3.1-2.1
3.3.1-2.1
python-paramiko
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 5.0.0-1.2
5.0.0-1.2

History

History
RecordedChangedSources
affected, factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-24302 is a medium vulnerability (CVSS 5.9) in Paramiko, published March 17, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.08%, the 81st percentile. Fixed in paramiko 2.10.1.

References

Show 68 moreShow less
This page doesn't list everything

Left out here: 76 versions. The JSON record has them.

MoveEnter Open