CVE-2022-24302
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.
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
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 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 4.3 Medium
AV: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 High
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 High
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
paramikoPyPI |
2.10.0 up to 2.10.1 | 2.10.1 |
paramikoPyPI |
2.9.0 up to 2.9.3 | 2.9.3 |
paramikoDebian:12 |
before 2.10.3-1 | 2.10.3-1 |
paramikoDebian:13 |
before 2.10.3-1 | 2.10.3-1 |
paramikoDebian:14 |
before 2.10.3-1 | 2.10.3-1 |
paramikoDebian:9 |
before 2.0.0-1+deb9u2, plus listed versions 2.0.0-12.0.0-1+deb9u1 |
2.0.0-1+deb9u2 |
paramikoDebian:10 |
before 2.4.2-0.1+deb10u1, plus listed versions 2.4.2-0.1 |
2.4.2-0.1+deb10u1 |
paramikoDebian:11 |
before 2.7.2-1+deb11u1, plus listed versions 2.7.2-1 |
2.7.2-1+deb11u1 |
paramikoPyPI |
2.9.0 up to 2.9.3, plus listed versions 2.9.12.9.2 |
2.9.3 |
python-paramikoMageia:8 |
before 2.7.2-1.1.mga8 | 2.7.2-1.1.mga8 |
Show 28 moreShow less
| Package | Affected | Fixed |
|---|---|---|
python-paramikoopenEuler:20.03-LTS-SP1 |
before 2.7.2-2.oe1 | 2.7.2-2.oe1 |
python-paramikoopenEuler:20.03-LTS-SP2 |
before 2.7.2-2.oe1 | 2.7.2-2.oe1 |
python-paramikoopenEuler:20.03-LTS-SP3 |
before 2.7.2-2.oe1 | 2.7.2-2.oe1 |
python-paramikoopenEuler:22.03-LTS |
before 2.8.1-3.oe2203 | 2.8.1-3.oe2203 |
paramikoPyPI |
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 less0.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-paramikoRed Hat:rhev_hypervisor:4.4::el8 |
before 0:2.4.3-3.el8ev | 0:2.4.3-3.el8ev |
python-paramiko-docRed Hat:rhev_hypervisor:4.4::el8 |
before 0:2.4.3-3.el8ev | 0:2.4.3-3.el8ev |
python3-paramikoRed Hat:rhev_hypervisor:4.4::el8 |
before 0:2.4.3-3.el8ev | 0:2.4.3-3.el8ev |
python-paramikoRed Hat:rhev_manager:4.4:el8 |
before 0:2.4.3-3.el8ev | 0:2.4.3-3.el8ev |
python-paramiko-docRed Hat:rhev_manager:4.4:el8 |
before 0:2.4.3-3.el8ev | 0:2.4.3-3.el8ev |
python3-paramikoRed Hat:rhev_manager:4.4:el8 |
before 0:2.4.3-3.el8ev | 0:2.4.3-3.el8ev |
python-paramikoRed Hat:openstack:16.2::el8 |
before 0:2.4.2-8.el8ost | 0:2.4.2-8.el8ost |
python3-paramikoRed Hat:openstack:16.2::el8 |
before 0:2.4.2-8.el8ost | 0:2.4.2-8.el8ost |
python-paramikoRed Hat:openstack:16.1::el8 |
before 0:2.4.2-8.el8ost | 0:2.4.2-8.el8ost |
python3-paramikoRed Hat:openstack:16.1::el8 |
before 0:2.4.2-8.el8ost | 0:2.4.2-8.el8ost |
python-paramikoSUSE:Linux Enterprise Module for Basesystem 15 SP3 |
before 2.4.2-150100.6.12.1 | 2.4.2-150100.6.12.1 |
python-paramikoSUSE:Linux Enterprise Module for Python 2 15 SP3 |
before 2.4.2-150100.6.12.1 | 2.4.2-150100.6.12.1 |
python-paramikoSUSE:Linux Enterprise Real Time 15 SP2 |
before 2.4.2-150100.6.12.1 | 2.4.2-150100.6.12.1 |
python-paramikoopenSUSE:Leap 15.3 |
before 2.4.2-150100.6.12.1 | 2.4.2-150100.6.12.1 |
python-paramikoopenSUSE:Leap 15.4 |
before 2.4.2-150100.6.12.1 | 2.4.2-150100.6.12.1 |
python-paramikoSUSE:Linux Enterprise Module for Public Cloud 12 |
before 2.4.0-9.13.1 | 2.4.0-9.13.1 |
paramikoUbuntu: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 |
paramikoUbuntu: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 |
paramikoUbuntu: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 |
paramikoUbuntu:20.04:LTS |
before 2.6.0-2ubuntu0.1, plus listed versions 2.6.0-12.6.0-2 |
2.6.0-2ubuntu0.1 |
paramikoUbuntu: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-paramikoopenSUSE:Tumbleweed |
before 3.3.1-2.1 | 3.3.1-2.1 |
python-paramikoopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 5.0.0-1.2 | 5.0.0-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| first indexed | CVE 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
github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py
paramiko.org/changelog.html
lists.debian.org/debian-lts-announce/2022/03/msg00032.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI
Show 68 moreShow less
lists.debian.org/debian-lts-announce/2022/09/msg00013.html
lists.debian.org/debian-lts-announce/2025/12/msg00020.html
nvd.nist.gov/vuln/detail/CVE-2022-24302
github.com/paramiko/paramiko/commit/4c491e299c9b800358b16fa4886d8d94f45abe2e
github.com/advisories/GHSA-f8q4-jwww-x3wv
github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2022-166.yaml
lists.fedoraproject.org/archives/list/[email protected]/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL
lists.fedoraproject.org/archives/list/[email protected]/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI
lists.fedoraproject.org/archives/list/[email protected]/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB
github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24302.json
security-tracker.debian.org/tracker/CVE-2022-24302
github.com/paramiko/paramiko
advisories.mageia.org/MGASA-2022-0132.html
bugs.mageia.org/show_bug.cgi?id=30193
debian.org/lts/security/2022/dla-2959
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1609
access.redhat.com/errata/RHSA-2022:4712
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1883949
bugzilla.redhat.com/show_bug.cgi?id=1932149
bugzilla.redhat.com/show_bug.cgi?id=1933555
bugzilla.redhat.com/show_bug.cgi?id=1940824
bugzilla.redhat.com/show_bug.cgi?id=2004018
bugzilla.redhat.com/show_bug.cgi?id=2004852
bugzilla.redhat.com/show_bug.cgi?id=2006721
bugzilla.redhat.com/show_bug.cgi?id=2017070
bugzilla.redhat.com/show_bug.cgi?id=2020620
bugzilla.redhat.com/show_bug.cgi?id=2034313
bugzilla.redhat.com/show_bug.cgi?id=2044362
bugzilla.redhat.com/show_bug.cgi?id=2060763
bugzilla.redhat.com/show_bug.cgi?id=2064795
bugzilla.redhat.com/show_bug.cgi?id=2064798
bugzilla.redhat.com/show_bug.cgi?id=2064799
bugzilla.redhat.com/show_bug.cgi?id=2064801
bugzilla.redhat.com/show_bug.cgi?id=2065665
bugzilla.redhat.com/show_bug.cgi?id=2066811
bugzilla.redhat.com/show_bug.cgi?id=2071365
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_4712.json
access.redhat.com/security/cve/CVE-2022-24302
cve.org/CVERecord?id=CVE-2022-24302
github.com/paramiko/paramiko/releases/tag/2.10.1
access.redhat.com/errata/RHSA-2022:8845
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_8845.json
access.redhat.com/errata/RHSA-2022:8863
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_8863.json
suse.com/support/update/announcement/2022/suse-su-20221446-1
bugzilla.suse.com/1197279
suse.com/security/cve/CVE-2022-24302
suse.com/support/update/announcement/2022/suse-su-20221447-1
suse.com/support/update/announcement/2022/suse-su-20221536-1
bugzilla.suse.com/1118088
bugzilla.suse.com/1184177
bugzilla.suse.com/1196249
bugzilla.suse.com/1196877
bugzilla.suse.com/1197417
bugzilla.suse.com/1197637
bugzilla.suse.com/1198556
suse.com/security/cve/CVE-2018-19787
suse.com/security/cve/CVE-2021-28957
suse.com/security/cve/CVE-2022-0778
suse.com/security/cve/CVE-2022-22934
suse.com/security/cve/CVE-2022-22935
suse.com/security/cve/CVE-2022-22936
suse.com/security/cve/CVE-2022-22941
ubuntu.com/security/CVE-2022-24302
ubuntu.com/security/notices/USN-5351-1
ubuntu.com/security/notices/USN-5351-2
suse.com/security/cve/CVE-2023-48795
Left out here: 76 versions. The JSON record has them.