{"schema_version":"1.7.3","id":"GHSA-f8q4-jwww-x3wv","published":"2022-03-19T00:01:03Z","modified":"2025-12-20T03:08:14.593089Z","aliases":["CVE-2022-24302","PYSEC-2022-166"],"summary":"Race Condition in Paramiko","details":"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.","affected":[{"package":{"name":"paramiko","ecosystem":"PyPI","purl":"pkg:pypi/paramiko"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.10.0"},{"fixed":"2.10.1"}]}],"versions":["2.10.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-f8q4-jwww-x3wv/GHSA-f8q4-jwww-x3wv.json"}},{"package":{"name":"paramiko","ecosystem":"PyPI","purl":"pkg:pypi/paramiko"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.9.0"},{"fixed":"2.9.3"}]}],"versions":["2.9.0","2.9.1","2.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-f8q4-jwww-x3wv/GHSA-f8q4-jwww-x3wv.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24302"},{"type":"WEB","url":"https://github.com/paramiko/paramiko/commit/4c491e299c9b800358b16fa4886d8d94f45abe2e"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f8q4-jwww-x3wv"},{"type":"PACKAGE","url":"https://github.com/paramiko/paramiko"},{"type":"WEB","url":"https://github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py#L546"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2022-166.yaml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00032.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00013.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00020.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB"},{"type":"WEB","url":"https://www.paramiko.org/changelog.html"}],"database_specific":{"cwe_ids":["CWE-362"],"github_reviewed":true,"github_reviewed_at":"2022-03-29T20:52:09Z","nvd_published_at":"2022-03-17T22:15:00Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V4","score":"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"}]}