CVE-2022-24302
MEDIUM 5.9CVSS 3.1Race Condition in Paramiko
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.
- Published
- 17 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-362
- Also known as
- GHSA-f8q4-jwww-x3wvPYSEC-2022-166
- Sources
- NVDJSONOSV GHSA-f8q4-jwww-x3wvJSONOSV PYSEC-2022-166JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | paramiko | paramikocpe:2.3:a:paramiko:paramiko:*:*:*:*:*:*:*:* |
< 2.10.1 | 2.10.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
= 36 | |
| OSV | PyPI | paramiko | >= 2.10.0, < 2.10.1 | 2.10.1 |
| OSV | PyPI | paramiko | >= 2.9.0, < 2.9.3 | 2.9.3 |
| OSV | PyPI | paramiko | < 2.9.3; >= 2.10.0, < 2.10.1 | 2.9.3, 2.10.1 |
References
- https://github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py#L546 · Exploit, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/03/msg00032.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/09/msg00013.html · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB/ · WEB
- https://www.paramiko.org/changelog.html · Release Notes, Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2025/12/msg00020.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24302 · ADVISORY
- https://github.com/paramiko/paramiko/commit/4c491e299c9b800358b16fa4886d8d94f45abe2e · WEB
- https://github.com/advisories/GHSA-f8q4-jwww-x3wv · ADVISORY
- https://github.com/paramiko/paramiko · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2022-166.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 17 Mar 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Mar 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Mar 2022)