PQ Python

paramiko

Negotiates mlkem768x25519-sha256 when cryptography exposes ML-KEM, but authenticates only with RSA, Ed25519 or ECDSA keys and cannot use OpenSSH 10.6’s ssh-mldsa44-ed25519 keys.

PyPI
paramiko
Version cited
5.1.017 or 18 Oct 2026: the Claude report gives 17/18 Oct, the AGY report 18 Oct
Downloads
111.5M/mo

Key exchange and encryption

PQ with action

ML-KEM hybrid with cryptography ≥48

Signatures and identity

Stopgap only

RSA/P-384 stopgap; no ML-DSA keys

What to do

Use paramiko ≥5.1.0 with cryptography ≥48 on OpenSSL 3.5+ or AWS-LC; keep RSA-3072+ or P-384 keys for it on OpenSSH 10.6 servers; watch #2712 before upgrading FIPS hosts.

Since 1 Dec 2026 Nothing filed since 1 Dec 2026. FIPS import bug #2712 (opened 27 Nov 2026) is still open; fix PRs #2716 and #2730 are unmerged.

Details

Key exchange: ML-KEM hybrid, conditionally#

  • PR #2668 (paramiko#2668) added mlkem768x25519-sha256 (merged 29 Aug 2026, “Verified interoperable with OpenSSH 10.0 in both directions”) (PR #2668). It is the first preference when cryptography exposes ML-KEM, which needs cryptography >= 48.0.0 on OpenSSL 3.5+, AWS-LC or BoringSSL.
  • _preferred_kex order: mlkem768x25519-sha256, then curve25519-sha256@libssh.org, then ecdh-sha2-nistp256/384/521, then the DH groups (transport.py, transport.py at 5.1.0).
  • No sntrup761 and no mlkem1024nistp384.
  • The silent fallback. Without a PQ-capable cryptography backend, paramiko falls back to X25519 and then P-256 key exchange, which trips OpenSSH 10.6’s WarnWeakCrypto.

Authentication: classical keys only#

  • Host and user key preference: ssh-ed25519, then ecdsa-sha2-nistp256, then nistp384/521, then rsa-sha2-512/256.
  • Key classes are only RSAKey, Ed25519Key and ECDSAKey: no ML-DSA keys. paramiko 4.0 removed DSA.
  • cryptography 51.0.0 can load and serialize ssh-mldsa44-ed25519 keys (load_ssh_private_key; the AGY report notes pyca/cryptography 51.0.0 added MLDSA44Ed25519 OpenSSH key serialization on 1 Dec 2026), but paramiko cannot authenticate with them.
  • Stopgap: prefer rsa-sha2-512 or ecdsa-sha2-nistp384 host keys where you control both ends. The Claude report did not verify the exact paramiko configuration API for this.
  • A server that offers only ssh-mldsa44-ed25519 host keys, or accepts only composite user keys, breaks every paramiko connection AGY (details).

FIPS import failure (#2712)#

Issue #2712 (paramiko#2712), “Paramiko 5.1.0 import fails under FIPS during ML-KEM availability detection”, is open (#2712). The AGY report explains the cause: KexMLKEM768X25519.is_available() only catches UnsupportedAlgorithm, so importing paramiko 5.1.0 on a FIPS-enabled OpenSSL crashes with InternalError AGY. This hits exactly the FIPS environments the advisory targets.

Sources disagree. The Claude report names one fix, PR #2716, unmerged. The AGY report names fix PRs #2716 and #2730 and dates the issue to 27 Nov 2026. Neither fix had shipped on 3 Dec 2026.

Trackers and dependencies#

  • Tracking issues #2594 (PQC audit) and #2684 (“Release timeline for PQC support”) are open (#2594, #2684). Nothing has been filed since 1 Dec 2026, and no ML-DSA key request exists.
  • paramiko 5.1.0 declares cryptography>=3.3 (plus pynacl>=1.5) (PyPI). A resolver can therefore pick a cryptography without ML-KEM, so pin cryptography>=48 yourself.
  • Downstream: Fabric, netmiko and napalm, and Ansible only when configured for the paramiko / paramiko_ssh connection plugin.
  • Changelog: paramiko changelog.

Downloads#

111,538,231 in the 30 days to 3 Dec 2026 (pypistats). Download volume is not exposure, but these downloads carry Ed25519 and P-256 authentication by default.

Sources cited on this page 8
  1. PR #2668 github.com
  2. transport.py github.com
  3. transport.py at 5.1.0 github.com
  4. #2712 github.com
  5. #2594 github.com
  6. #2684 github.com
  7. PyPI pypi.org
  8. paramiko changelog paramiko.org

All sources across the guide