Skip to content
Fencer Vulns
medium 5.9

CVE-2022-24302 json

Race Condition in Paramiko

published 2022-03-17 4 y ago modified 2026-06-17 4 mo ago also GHSA-f8q4-jwww-x3wv , PYSEC-2022-166 , EUVD-2022-0192

cvss
5.9
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.1%
EPSS 2.1% chance of exploitation in 30 days, percentile 81%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi paramiko 2.9.3, 2.10.1
  • paramiko paramiko 2.10.1
  • paramiko Debian 14, Debian 13, Debian 12 2.10.3-1

debian advisories DEBIAN-CVE-2022-24302

  • paramiko Ubuntu 18.04 LTS 2.0.0-1ubuntu1.3
  • paramiko Ubuntu 20.04 LTS 2.6.0-2ubuntu0.1
  • paramiko Ubuntu 22.04 LTS 2.8.1-1ubuntu3
  • paramiko Ubuntu Pro 16.04 LTS 1.16.0-1ubuntu0.2+esm2

ubuntu advisories UBUNTU-CVE-2022-24302

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-paramiko openstack 16.2, openstack 16.1 2.4.2-8.el8ost
  • python3-paramiko openstack 16.2, openstack 16.1 2.4.2-8.el8ost
  • python-paramiko rhev manager 4.4, rhev hypervisor 4.4 2.4.3-3.el8ev
  • python3-paramiko rhev manager 4.4, rhev hypervisor 4.4 2.4.3-3.el8ev

red hat advisories RHSA-2022:8845RHSA-2022:8863RHSA-2022:4712

  • python-paramiko SLE Module for Public Cloud 12 2.4.0-9.13.1
  • python-paramiko SLE Real Time 15 SP2, SLE Module for Python 2 15 SP3, SLE Module for Basesystem 15 SP3 +2 more 2.4.2-150100.6.12.1

suse advisories SUSE-SU-2022:1447-1SUSE-SU-2022:1446-1

  • python-paramiko openSUSE Tumbleweed 5.0.0-1.2
  • python-paramiko openSUSE Tumbleweed 3.3.1-2.1

opensuse advisories openSUSE-SU-2026:12025-1openSUSE-SU-2024:13300-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-24302 updated cvss 5.1

python-paramiko: Race condition in the write_private_key_file function

  • Red Hat Ceph Storage 2 python-paramiko Red Hat Enterprise Linux 6 python-paramiko Red Hat Enterprise Linux 7 python-paramiko
    affected: no fix planned “Out of support scope”
  • Red Hat Storage 3 python-paramiko Red Hat Update Infrastructure 4 for Cloud Providers python-paramiko
    affected: no fix planned “Will not fix”
  • Red Hat OpenStack Platform 16.1 python-paramiko 2.4.2-8.el8ost, python3-paramiko 2.4.2-8.el8ost
    fixed: vendor fix RHSA-2022:8863
  • Red Hat OpenStack Platform 16.2 python-paramiko 2.4.2-8.el8ost, python3-paramiko 2.4.2-8.el8ost
    fixed: vendor fix RHSA-2022:8845
  • Red Hat Virtualization 4 Management Agent for RHEL 7 Hosts python-paramiko 2.4.3-3.el8ev, python3-paramiko 2.4.3-3.el8ev Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 python-paramiko 2.4.3-3.el8ev, python3-paramiko 2.4.3-3.el8ev
    fixed: vendor fix RHSA-2022:4712
  • Red Hat Ansible Automation Platform 2 paramiko Red Hat Virtualization 4 Management Agent for RHEL 7 Hosts otopi 1.10.0-1.el8ev, collectd 5.12.0-7.2.el8ev, otopi-common 1.10.0-1.el8ev, ovirt-imageio 2.4.3-1.el8ev, python3-otopi 1.10.0-1.el8ev, collectd-dns 5.12.0-7.2.el8ev, +83 more Red Hat Virtualization 4 Tools for Red Hat Enterprise Linux 8 python-passlib 1.7.0-5.1.el8ev, python3-passlib 1.7.0-5.1.el8ev, python-jmespath 0.9.0-11.1.el8ev, python-pycurl 7.43.0.2-4.1.el8ev, python38-passlib 1.7.0-5.1.el8ev, python-netaddr 0.7.19-8.1.1.el8ev, +17 more Red Hat Virtualization 4 Tools for Red Hat Enterprise Linux 9 python-ovirt-engine-sdk4 4.5.1-1.el9ev, python3-ovirt-engine-sdk4 4.5.1-1.el9ev Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 otopi 1.10.0-1.el8ev, collectd 5.12.0-7.2.el8ev, otopi-common 1.10.0-1.el8ev, ovirt-imageio 2.4.3-1.el8ev, python3-otopi 1.10.0-1.el8ev, collectd-dns 5.12.0-7.2.el8ev, +85 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.08% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py#L546 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N
GitHub 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi paramiko
>=2.10.0, <2.10.1
>=2.9.0, <2.9.3
<2.9.3
2.10.1
2.9.3

Classification

Weakness
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.