# CVE-2022-24302: python3-paramiko: In Paramiko before 2.10.1, a race condition (between creation and chmod) in the write_private_key_file function could...

CVE-2022-24302 is fixed in 3 products on 1 platform, first by python-paramiko 2.0.0-1ubuntu1.3, released March 17, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-24302
- Priority: Routine
- CVSS: 5.9 (Medium)
- EPSS: 0.0208
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 17, 2022

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | paramiko Debian 11.6 (bullseye) | 2.7.2-1+deb11u1 | [DLA-4409-1](https://patchblox.com/security/data/fix/linux/dla-4409-1.md) | Dec 16, 2025 |
| Linux | paramiko Debian 12.15 (bookworm) | 2.10.3-1 | [DEBIAN-CVE-2022-24302](https://patchblox.com/security/data/fix/linux/debian-cve-2022-24302.md) | Mar 17, 2022 |
| Linux | paramiko Debian 13.5 (trixie) | 2.10.3-1 | [DEBIAN-CVE-2022-24302](https://patchblox.com/security/data/fix/linux/debian-cve-2022-24302.md) | Mar 17, 2022 |
| Linux | paramiko Debian 14 | 2.10.3-1 | [DEBIAN-CVE-2022-24302](https://patchblox.com/security/data/fix/linux/debian-cve-2022-24302.md) | Mar 17, 2022 |
| Linux | python-paramiko Ubuntu 18.04.6 LTS (bionic) | 2.0.0-1ubuntu1.3 | [python-paramiko 2.0.0-1ubuntu1.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-paramiko-2.0.0-1ubuntu1.3.md) | Mar 17, 2022 |
| Linux | python3-paramiko Ubuntu 18.04.6 LTS (bionic) | 2.0.0-1ubuntu1.3 | [python3-paramiko 2.0.0-1ubuntu1.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-paramiko-2.0.0-1ubuntu1.3.md) | Mar 17, 2022 |
| Linux | python3-paramiko Ubuntu 20.04 LTS (focal) | 2.6.0-2ubuntu0.1 | [python3-paramiko 2.6.0-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-paramiko-2.6.0-2ubuntu0.1.md) | Mar 17, 2022 |
| Linux | python3-paramiko Ubuntu 22.04.1 LTS (jammy) | 2.8.1-1ubuntu3 | [python3-paramiko 2.8.1-1ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-paramiko-2.8.1-1ubuntu3.md) | Mar 17, 2022 |
| Linux | python3-paramiko Ubuntu 24.10 (oracular) | 2.8.1-1ubuntu3 | [python3-paramiko 2.8.1-1ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-python3-paramiko-2.8.1-1ubuntu3.md) | Jan 16, 2026 |
| Linux | python3-paramiko Ubuntu 25.04 (plucky) | 2.8.1-1ubuntu3 | [python3-paramiko 2.8.1-1ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-python3-paramiko-2.8.1-1ubuntu3.md) | Jan 16, 2026 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
