{"id":"CVE-2022-24302","aliases":["CVE-2022-24302","GHSA-f8q4-jwww-x3wv","PYSEC-2022-166"],"related":[],"kind":"vulnerability","state":"published","title":"Race Condition in Paramiko","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En Paramiko versiones anteriores a 2.10.1, una condición de carrera (entre creation y chmod) en la función write_private_key_file podría permitir una divulgación de información no autorizada","source":"nvd"}],"published":"2022-03-17T21:02:10.000Z","modified":"2026-06-17T04:31:34.943Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.10.0","status":"affected","fixed":"2.10.1"}],"ecosystem":"PyPI","package":"paramiko","purl":"pkg:pypi/paramiko","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.9.0","status":"affected","fixed":"2.9.3"}],"ecosystem":"PyPI","package":"paramiko","purl":"pkg:pypi/paramiko","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.10.1"}],"vendor":"paramiko","product":"paramiko","cpe":"cpe:2.3:a:paramiko:paramiko:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.3"},{"type":"ecosystem","introduced":"2.10.0","status":"affected","fixed":"2.10.1"}],"ecosystem":"PyPI","package":"paramiko","purl":"pkg:pypi/paramiko","source":"pysec"}],"references":[{"url":"https://github.com/paramiko/paramiko/blob/363a28d94cada17f012c1604a3c99c71a2bda003/paramiko/pkey.py#L546","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.paramiko.org/changelog.html","tags":["release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00032.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00013.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00020.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24302","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/paramiko/paramiko/commit/4c491e299c9b800358b16fa4886d8d94f45abe2e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-f8q4-jwww-x3wv","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/paramiko/paramiko","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2022-166.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUEUEGILZ7MQXRSUF5VMMO4SWJQVPTQL","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPMKRUS4HO3P7NR7P4Y6CLHB4MBEE3AI","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U63MJ2VOLLQ35R7CYNREUHSXYLWNPVSB","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24302","url":"https://www.cve.org/CVERecord?id=CVE-2022-24302","licence":"CVE Terms of Use","modified":"2025-12-16T01:31:54.070Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f8q4-jwww-x3wv","url":"https://github.com/advisories/GHSA-f8q4-jwww-x3wv","licence":"CC-BY-4.0","modified":"2025-12-20T03:08:14.593Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24302","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24302","licence":"Public domain","modified":"2026-06-17T04:31:34.943Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-166","url":"https://osv.dev/vulnerability/PYSEC-2022-166","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:30.555Z"}],"updatedAt":"2026-11-25T22:58:10.157Z","epss":{"score":0.0208,"percentile":0.82058,"date":"2026-12-01T12:00:22.000Z"}}