{"id":"CVE-2022-24302","published":"2022-03-17T21:02:10Z","modified":"2025-12-16T01:31:54Z","title":"In Paramiko before 2.10.1, a race condition (between creation and chmod) in the write_private_key_file function could…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0208,"percentile":0.81979,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py#L546","tags":["x_refsource_MISC"]},{"url":"https://www.paramiko.org/changelog.html","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00032.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00013.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00020.html","tags":[]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":16.4}]},"affected":[{"ecosystem":"PyPI","package":"paramiko","vulnerableRanges":[">=2.10.0, <2.10.1",">=2.9.0, <2.9.3","<2.9.3"],"patched":["2.10.1","2.9.3"],"from":["GHSA-f8q4-jwww-x3wv","PYSEC-2022-166"],"provenance":"source"}],"summary":{"text":"The flaw is a race condition in the write_private_key_file function of Paramiko, the Python SSH library, affecting versions before 2.10.1: the file is created before its permissions are changed with chmod, leaving a window in which it exists with overly permissive access. An attacker who can access the affected system and act during that window could read the private key contents, leading to unauthorized information disclosure.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:39Z"},"euvd":{"id":"EUVD-2022-0192","exploited":false,"provenance":"source"}}