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
- Group
- SSH and automation
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) addedmlkem768x25519-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 needscryptography >= 48.0.0on OpenSSL 3.5+, AWS-LC or BoringSSL. _preferred_kexorder:mlkem768x25519-sha256, thencurve25519-sha256@libssh.org, thenecdh-sha2-nistp256/384/521, then the DH groups (transport.py, transport.py at 5.1.0).- No
sntrup761and nomlkem1024nistp384. - 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, thenecdsa-sha2-nistp256, then nistp384/521, thenrsa-sha2-512/256. - Key classes are only
RSAKey,Ed25519KeyandECDSAKey: no ML-DSA keys. paramiko 4.0 removed DSA. - cryptography 51.0.0 can load and serialize
ssh-mldsa44-ed25519keys (load_ssh_private_key; the AGY report notespyca/cryptography 51.0.0addedMLDSA44Ed25519OpenSSH key serialization on 1 Dec 2026), but paramiko cannot authenticate with them. - Stopgap: prefer
rsa-sha2-512orecdsa-sha2-nistp384host 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-ed25519host 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(pluspynacl>=1.5) (PyPI). A resolver can therefore pick a cryptography without ML-KEM, so pincryptography>=48yourself. - Downstream: Fabric, netmiko and napalm, and Ansible only when configured for the
paramiko/paramiko_sshconnection 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.
Full discussion: Infrastructure
Sources cited on this page 8
- PR #2668 github.com
- transport.py github.com
- transport.py at 5.1.0 github.com
- #2712 github.com
- #2594 github.com
- #2684 github.com
- PyPI pypi.org
- paramiko changelog paramiko.org