Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-24302

python-paramiko: Race condition in the write_private_key_file function

Overview

Published
17 Mar 2022
Modified
17 Jun 2026
Medium CVE
1 Registry packages
9 OS packages
5 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

5.9 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Weakness: CWE-362

Affected packages · 1

Packages affected by CVE-2022-24302
EcosystemPackageVulnerableFixed in
PyPI paramiko >=2.10.0, <2.10.1>=2.9.0, <2.9.3 2.10.12.9.3

Open a package to see all its vulnerabilities.

Operating systems · 21 fixes

Red Hat 3 releases · 3 packages

wont fix 1 eol 1 fixed 3
python-paramiko python3-paramiko python-paramiko-doc
Red Hat fixes for CVE-2022-24302
ReleasePackageFixed inAdvisory
python-paramiko +1 wont fix —
7 python-paramiko +1 eol —
8 python3-paramiko 0:2.4.2-8.el8ost RHSA-2022:8845
8 python3-paramiko 0:2.4.2-8.el8ost RHSA-2022:8863
8 python-paramiko-doc +1 0:2.4.3-3.el8ev RHSA-2022:4712

debian 6 releases · 1 package

fixed 6
paramiko
debian fixes for CVE-2022-24302
ReleasePackageFixed in
10 paramiko 2.4.2-0.1+deb10u1
11 paramiko 2.7.2-1+deb11u1
12 paramiko 2.10.3-1
13 paramiko 2.10.3-1
14 paramiko 2.10.3-1
9 paramiko 2.0.0-1+deb9u2

echo 1 release · 1 package

fixed 1
paramiko
echo fixes for CVE-2022-24302
ReleasePackageFixed in
paramiko 2.10.3-1

openSUSE 1 release · 2 packages

fixed 2
python-paramiko-doc python313-paramiko
openSUSE fixes for CVE-2022-24302
ReleasePackageFixed inAdvisory
Tumbleweed python-paramiko-doc +3 3.3.1-2.1 openSUSE-SU-2024:13300-1
Tumbleweed python313-paramiko +1 5.0.0-1.2 openSUSE-SU-2026:12025-1

ubuntu 7 releases · 1 package

fixed 7
paramiko
ubuntu fixes for CVE-2022-24302
ReleasePackageFixed in
18.04 paramiko 2.0.0-1ubuntu1.3
18.04-ESM paramiko 2.0.0-1ubuntu1.3
20.04 paramiko 2.6.0-2ubuntu0.1
20.04-ESM paramiko 2.6.0-2ubuntu0.1
22.04 paramiko 2.8.1-1ubuntu3
24.04 paramiko 2.8.1-1ubuntu3

1 more row

References

Show all 24 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.