CVE-2022-24302Paramiko
Medium 5.9 No auth needed
Follow: this CVE · Paramiko · Paramiko We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 5.9
- EPSS
- 1.8% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Mar 17, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-362
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Paramiko.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | paramiko |
≥ 2.10.0 < 2.10.1 |
2.10.1 |
pip install "paramiko>=2.10.1" |
| PyPI | paramiko |
≥ 2.9.0 < 2.9.3 |
2.9.3 |
pip install "paramiko>=2.9.3" |
| PyPI | paramiko |
< 2.9.3 |
2.9.3 |
pip install "paramiko>=2.9.3" |
| PyPI | paramiko |
≥ 2.10.0 < 2.10.1 |
2.10.1 |
pip install "paramiko>=2.10.1" |
Per OSV / GitHub Advisories (GHSA-f8q4-jwww-x3wv, PYSEC-2022-166). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| paramiko | paramiko | < 2.10.1 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Official advisories
- python313-paramiko-5.0.0-1.2 on GA media · SUSE · openSUSE-SU-2026:12025-1 · Oct 4, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.paramiko.org Release Notes Vendor Advisory
- lists.debian.org