cve.bz

CVE-2022-24302 Race Condition

5.9 mediumExploit referenceEPSS 2.1%Fix available

Medium (5.9). EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in paramiko 2.10.1, 2.9.3.

On this page
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

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
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-24302 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-24302?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-24302?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-24302 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
paramiko:paramikobefore 2.10.1
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f8q4-jwww-x3wvPyPIparamiko>=2.10.0 <2.10.12.10.1
GHSA-f8q4-jwww-x3wvPyPIparamiko>=2.9.0 <2.9.32.9.3
PYSEC-2022-166PyPIparamiko<2.9.3
>=2.10.0 <2.10.1
2.9.3, 2.10.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9paramiko2.0.0-1+deb9u2DLA-2959-1
Debian10paramiko2.4.2-0.1+deb10u1DLA-3104-1
Debian11paramiko2.7.2-1+deb11u1DLA-4409-1
Debian12, 13, 14paramiko2.10.3-1DEBIAN-CVE-2022-24302
Ubuntu14.04:LTSparamikono fix listedUBUNTU-CVE-2022-24302
Ubuntu18.04:LTSparamiko2.0.0-1ubuntu1.3UBUNTU-CVE-2022-24302 USN-5351-1
Ubuntu20.04:LTSparamiko2.6.0-2ubuntu0.1UBUNTU-CVE-2022-24302 USN-5351-1
Ubuntu22.04:LTSparamiko2.8.1-1ubuntu3UBUNTU-CVE-2022-24302
UbuntuPro:16.04:LTSparamiko1.16.0-1ubuntu0.2+esm2UBUNTU-CVE-2022-24302 USN-5351-2
Red Hatopenstack:16.1::el8python-paramiko, python3-paramiko0:2.4.2-8.el8ostRHSA-2022:8863
Red Hatopenstack:16.2::el8python-paramiko, python3-paramiko0:2.4.2-8.el8ostRHSA-2022:8845
Red Hatrhev_hypervisor:4.4::el8, rhev_manager:4.4:el8python-paramiko, python3-paramiko, python-paramiko-doc0:2.4.3-3.el8evRHSA-2022:4712
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3, Linux Enterprise Real Time 15 SP2python-paramiko2.4.2-150100.6.12.1SUSE-SU-2022:1446-1
SUSELinux Enterprise Module for Public Cloud 12python-paramiko2.4.0-9.13.1SUSE-SU-2022:1447-1
openSUSELeap 15.3, Leap 15.4python-paramiko2.4.2-150100.6.12.1SUSE-SU-2022:1446-1
openSUSETumbleweedpython-paramiko3.3.1-2.1openSUSE-SU-2024:13300-1
openSUSETumbleweedpython-paramiko5.0.0-1.2openSUSE-SU-2026:12025-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.1python-paramiko-0:2.4.2-8.el8ostFixed 2022-12-07RHSA-2022:8863
Red Hat OpenStack Platform 16.2python-paramiko-0:2.4.2-8.el8ostFixed 2022-12-07RHSA-2022:8845
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8python-paramiko-0:2.4.3-3.el8evFixed 2022-05-26RHSA-2022:4712
Red Hat Virtualization Engine 4.4python-paramiko-0:2.4.3-3.el8evFixed 2022-05-26RHSA-2022:4712
Red Hat Ansible Automation Platform 2paramikoNot affected
Red Hat Ceph Storage 2python-paramikoOut of support scope
Red Hat Enterprise Linux 6python-paramikoOut of support scope
Red Hat Enterprise Linux 7python-paramikoOut of support scope
Red Hat Storage 3python-paramikoWill not fix
Red Hat Update Infrastructure 4 for Cloud Providerspython-paramikoWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-24302.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON