CVE-2022-24302
python-paramiko: Race condition in the write_private_key_file function
Overview
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| paramiko | 2.10.3-1 |
openSUSE 1 release · 2 packages
fixed 2
python-paramiko-doc
python313-paramiko
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-24302
- github.com https://github.com/advisories/GHSA-f8q4-jwww-x3wv
- github.com https://github.com/paramiko/paramiko
- github.com https://github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py#L546
- github.com https://github.com/paramiko/paramiko/commit/4c491e299c9b800358b16fa4886d8d94f45abe2e
- github.com https://github.com/paramiko/paramiko/releases/tag/2.10.1
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2022-166.yaml
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/03/msg00032.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/09/msg00013.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/12/msg00020.html
Show all 24 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-24302
- ubuntu.com https://ubuntu.com/security/notices/USN-5351-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5351-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-24302
- www.paramiko.org https://www.paramiko.org/changelog.html
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.