CVE-2022-24302
publishedpython-paramiko: Race condition in the write_private_key_file function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2ANSIBLE2-2023-002 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | paramiko | Advisory build | 2.7.2-1+deb11u1 | DLA-4409-1 |
| SUSE / openSUSE | SLE-12 | python-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| Ubuntu | bionic | paramiko | Advisory build | 2.0.0-1ubuntu1.3 | USN-5351-1 |
| Amazon Linux | AL2 | python-paramikonoarch | Listed in advisory | Not stated | ALAS2ANSIBLE2-2023-002 |
| Debian | buster | paramiko | Advisory build | 2.4.2-0.1+deb10u1 | DLA-3104-1 |
| Debian | stretch | paramiko | Advisory build | 2.0.0-1+deb9u2 | DLA-2959-1 |
Show 52 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12 | python-paramiko-docnoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12 | python3-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-paramiko-docnoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP3 | python3-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-paramiko-docnoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP4 | python3-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-paramiko-docnoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-12-SP5 | python3-paramikonoarch | Advisory build | 2.4.0-9.13.1 | SUSE-SU-2022:1447-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-paramikonoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-paramikonoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-paramikonoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python-paramiko-docnoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-paramikonoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-paramikonoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python-paramiko-docnoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python2-paramikonoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-paramikonoarch | Advisory build | 2.4.2-150100.6.12.1 | SUSE-SU-2022:1446-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-paramiko-docaarch64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-paramiko-docppc64le | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-paramiko-docs390x | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-paramiko-docx86_64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-paramikoaarch64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-paramikoppc64le | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-paramikos390x | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-paramikox86_64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-paramikoaarch64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-paramikoppc64le | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-paramikos390x | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-paramikox86_64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-paramikoaarch64 | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-paramikoppc64le | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-paramikos390x | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-paramikox86_64 | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-paramikoaarch64 | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-paramikoppc64le | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-paramikos390x | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-paramikox86_64 | Advisory build | 5.0.0-1.2 | OPENSUSE-SU-2026:12025-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-paramikoaarch64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-paramikoppc64le | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-paramikos390x | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-paramikox86_64 | Advisory build | 3.3.1-2.1 | OPENSUSE-SU-2024:13300-1 |
| Ubuntu | bionic | python-paramiko | Advisory build | 2.0.0-1ubuntu1.3 | USN-5351-1 |
| Ubuntu | bionic | python3-paramiko | Advisory build | 2.0.0-1ubuntu1.3 | USN-5351-1 |
| Ubuntu | focal | paramiko | Advisory build | 2.6.0-2ubuntu0.1 | USN-5351-1 |
| Ubuntu | focal | python3-paramiko | Advisory build | 2.6.0-2ubuntu0.1 | USN-5351-1 |
| Ubuntu | xenial | paramiko | Advisory build | 1.16.0-1ubuntu0.2+esm2 | USN-5351-2 |
| Ubuntu | xenial | python-paramiko | Advisory build | 1.16.0-1ubuntu0.2+esm2 | USN-5351-2 |
| Ubuntu | xenial | python3-paramiko | Advisory build | 1.16.0-1ubuntu0.2+esm2 | USN-5351-2 |
| Amazon Linux | AL2 | python-paramikosrc | Listed in advisory | Not stated | ALAS2ANSIBLE2-2023-002 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
8- https://github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py#L546
- [debian-lts-announce] 20220321 [SECURITY] [DLA 2959-1] paramiko security update https://lists.debian.org/debian-lts-announce/2022/03/msg00032.html
- [debian-lts-announce] 20220912 [SECURITY] [DLA 3104-1] paramiko security update https://lists.debian.org/debian-lts-announce/2022/09/msg00013.html
- https://lists.debian.org/debian-lts-announce/2025/12/msg00020.html
- FEDORA-2022-8eb95d8611 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL/
- FEDORA-2022-806492f1d1 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI/
- FEDORA-2022-bb5c461682 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB/
- https://www.paramiko.org/changelog.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0fd5063dfb2c0c0419525e57b33f9dcf32d6dc72b9e6583585260cca9666f28b
- Ingested
- 23 Sep 2026, 07:58:49 UTC
- Source record
- Official CVE record