IntelligenceComponentscrates.io
openssl
Rust bindings to OpenSSL covering TLS, X.509, RSA, DSA, Diffie-Hellman, elliptic curve and Edwards curve keys, symmetric ciphers, hashes, MACs and key derivation.
In short
What to know.
- Algorithms
- RSA signatures, RSA encryption, DSA, Finite-field Diffie-Hellman and 22 more13 of 26 would be broken by a large quantum computer.
- Advisories
- 36 in the storeOSV last read 3 December 2026, 16:50 UTC.
- What to do
- Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from RSA signatures, RSA encryption, DSA, Finite-field Diffie-Hellman, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, ECDSA on secp256k1, ECDH (Weierstrass curves), Ed25519, Ed448, X25519, X448 before large quantum computers exist.
36 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers | GHSA-phqj-4mhp-q6mq | from 0.10.50 before 0.10.80 | Fixed in 0.10.80 | Rated Moderate |
| Buffer overflow with AES key wrap with padding in `cipher_update_inplace` | RUSTSEC-2026-0477 | from 0.10.50 before 0.10.80 | Fixed in 0.10.80 | |
| rust-openssl vulnerable to heap buffer overflow when encrypting with AES key-wrap-with-padding | GHSA-xv59-967r-8726 | from 0.10.0 before 0.10.79 | Fixed in 0.10.79 | Rated Moderate |
| rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs | GHSA-xp3w-r5p5-63rr | from 0.9.7 before 0.10.79 | Fixed in 0.10.79 | Rated High |
| Buffer overflow with AES key wrap with padding in `cipher_update` | RUSTSEC-2026-0476 | from 0.10.0 before 0.10.79 | Fixed in 0.10.79 | |
| `X509Ref::ocsp_responders` can produce a `&str` that is not valid UTF-8 | RUSTSEC-2026-0474 | from 0.9.7 before 0.10.79 | Fixed in 0.10.79 | |
| rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1 | GHSA-pqf5-4pqq-29f5 | from 0.9.27 before 0.10.78 | Fixed in 0.10.78 | Rated High |
| rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length | GHSA-xmgf-hq76-4vx2 | from 0.9.0 before 0.10.78 | Fixed in 0.10.78 | Rated Low |
| rust-openssl has incorrect bounds assertion in aes key wrap | GHSA-8c75-8mhr-p7r9 | from 0.10.24 before 0.10.78 | Fixed in 0.10.78 | Rated High |
| rust-openssl: rustMdCtxRef::digest_final() writes past caller buffer with no length check | GHSA-ghm9-cr32-g9qj | from 0.10.39 before 0.10.78 | Fixed in 0.10.78 | Rated High |
| rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer | GHSA-hppc-g8h3-xhp3 | from 0.9.24 before 0.10.78 | Fixed in 0.10.78 | Rated High |
| Out-of-bounds read when a PEM password callback returns an oversized length | RUSTSEC-2026-0479 | from 0.9.0 before 0.10.78 | Fixed in 0.10.78 | |
| Out-of-bounds write in `aes::unwrap_key` | RUSTSEC-2026-0463 | from 0.10.24 before 0.10.78 | Fixed in 0.10.78 | |
| Buffer overflow in `Deriver::derive` and `PkeyCtxRef::derive` with OpenSSL 1.1.x | RUSTSEC-2026-0473 | from 0.9.27 before 0.10.78 | Fixed in 0.10.78 | |
| Buffer overflow in `MdCtxRef::digest_final` | RUSTSEC-2026-0475 | from 0.10.39 before 0.10.78 | Fixed in 0.10.78 | |
| Unchecked callback lengths in PSK and cookie callbacks | RUSTSEC-2026-0478 | from 0.9.24 before 0.10.78 | Fixed in 0.10.78 | |
| rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch` | GHSA-4fcv-w3qc-ppgg | from 0.10.39 before 0.10.72 | Fixed in 0.10.72 | Rated Moderate |
| Use-After-Free in `Md::fetch` and `Cipher::fetch` | RUSTSEC-2025-0022 | from 0.10.39 before 0.10.72 | Fixed in 0.10.72 | |
| rust-openssl ssl::select_next_proto use after free | GHSA-rpmj-rpgj-qmpm | from 0.10.0 before 0.10.70 | Fixed in 0.10.70 | Rated Moderate |
| ssl::select_next_proto use after free | RUSTSEC-2025-0004 | from 0.0.0-0 before 0.10.70 | Fixed in 0.10.70 | |
| openssl's `MemBio::get_buf` has undefined behavior with empty buffers | GHSA-q445-7m23-qrmw | before 0.10.66 | Fixed in 0.10.66 | Rated Moderate |
| `MemBio::get_buf` has undefined behavior with empty buffers | RUSTSEC-2024-0357 | from 0.0.0-0 before 0.10.66 | Fixed in 0.10.66 | |
| `openssl` `X509StoreRef::objects` is unsound | GHSA-xphf-cx8h-7q9g | from 0.10.29 before 0.10.60 | Fixed in 0.10.60 | Rated Moderate |
| `openssl` `X509StoreRef::objects` is unsound | RUSTSEC-2023-0072 | from 0.0.0-0 before 0.10.60 | Fixed in 0.10.60 | |
| `openssl` `X509VerifyParamRef::set_host` buffer over-read | GHSA-xcf7-rvmh-g6q4 | from 0.10.0 before 0.10.55 | Fixed in 0.10.55 | Rated Moderate |
| `openssl` `X509VerifyParamRef::set_host` buffer over-read | RUSTSEC-2023-0044 | from 0.0.0-0 before 0.10.55 | Fixed in 0.10.55 | |
| `openssl` `X509NameBuilder::build` returned object is not thread safe | GHSA-3gxf-9r58-2ghg | from 0.9.7 before 0.10.48 | Fixed in 0.10.48 | Rated Moderate |
| `openssl` `SubjectAlternativeName` and `ExtendedKeyUsage::other` allow arbitrary file read | GHSA-9qwg-crg9-m2vc | from 0.9.7 before 0.10.48 | Fixed in 0.10.48 | Rated High |
| `openssl` `X509Extension::new` and `X509Extension::new_nid` null pointer dereference | GHSA-6hcf-g6gr-hhcr | from 0.9.7 before 0.10.48 | Fixed in 0.10.48 | Rated High |
| `openssl` `X509NameBuilder::build` returned object is not thread safe | RUSTSEC-2023-0022 | from 0.0.0-0 before 0.10.48 | Fixed in 0.10.48 | |
| `openssl` `X509Extension::new` and `X509Extension::new_nid` null pointer dereference | RUSTSEC-2023-0024 | from 0.0.0-0 before 0.10.48 | Fixed in 0.10.48 | |
| `openssl` `SubjectAlternativeName` and `ExtendedKeyUsage::other` allow arbitrary file read | RUSTSEC-2023-0023 | from 0.0.0-0 before 0.10.48 | Fixed in 0.10.48 | |
| Use after free in openssl | GHSA-xjxc-vfw2-cg96 | from 0.10.8 before 0.10.9 | Fixed in 0.10.9 | Rated Critical |
| Improper Certificate Validation in openssl | GHSA-34p9-f4q3-c4r7 | before 0.9.0 | Fixed in 0.9.0 | Rated High |
| Use after free in CMS Signing | RUSTSEC-2018-0010 | from 0.10.8 before 0.10.9 | Fixed in 0.10.9 | |
| SSL/TLS MitM vulnerability due to insecure defaults | RUSTSEC-2016-0001 | from 0.0.0-0 before 0.9.0 | Fixed in 0.9.0 |
18 listed
Findings
Reviewed 3 December 2026
Sources
- crates.io metadata for opensslcrates.ioRetrieved 3 December 2026
- openssl 0.10.82 README on crates.iocrates.ioRetrieved 3 December 2026
- openssl documentation: all itemsdocs.rsRetrieved 3 December 2026
- openssl documentation: pkey/struct.Iddocs.rsRetrieved 3 December 2026
- openssl documentation: hash/struct.MessageDigestdocs.rsRetrieved 3 December 2026
- openssl documentation: symm/struct.Cipherdocs.rsRetrieved 3 December 2026
Full record
- Package
- openssl
- Ecosystem
- crates.io
- Role
- Binding to a native library
- Repository
- github.com/rust-openssl/rust-openssl
- Status
- Not marked deprecated by its registry or maintainers.
- Notes
- Which algorithms work depends on the OpenSSL version the crate links against; for example the Argon2 functions need OpenSSL 3.2 or later. Legacy ciphers such as DES, RC4 and Blowfish are also exposed.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:50 UTC
- Findings
- 18 listed above.
Algorithms it provides
- RSA signatures signatureClassical public keyBroken by Shor's algorithm
- RSA encryption public-key-encryptionClassical public keyBroken by Shor's algorithm
- DSA signatureClassical public keyBroken by Shor's algorithm
- Finite-field Diffie-Hellman key-exchangeClassical public keyBroken by Shor's algorithm
- ECDSA on P-256 signatureClassical public keyBroken by Shor's algorithm
- ECDSA on P-384 signatureClassical public keyBroken by Shor's algorithm
- ECDSA on P-521 signatureClassical public keyBroken by Shor's algorithm
- ECDSA on secp256k1 signatureClassical public keyBroken by Shor's algorithm
- ECDH (Weierstrass curves) key-exchangeClassical public keyBroken by Shor's algorithm
- Ed25519 signatureClassical public keyBroken by Shor's algorithm
- Ed448 signatureClassical public keyBroken by Shor's algorithm
- X25519 key-exchangeClassical public keyBroken by Shor's algorithm
- X448 key-exchangeClassical public keyBroken by Shor's algorithm
- AES cipherSymmetricWeakened by Grover's search
- AES-GCM aeadSymmetricWeakened by Grover's search
- ChaCha20-Poly1305 aeadSymmetricWeakened by Grover's search
- SHA-1 hashHashWeakened by Grover's search
- SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512) hashHashWeakened by Grover's search
- SHA-3 and SHAKE hashHashWeakened by Grover's search
- RIPEMD-160 hashHashWeakened by Grover's search
- HMAC macSymmetricWeakened by Grover's search
- HKDF kdfSymmetricWeakened by Grover's search
- PBKDF2 kdfSymmetricWeakened by Grover's search
- scrypt password-hashSymmetricWeakened by Grover's search
- Argon2 password-hashSymmetricWeakened by Grover's search
- Cryptographically strong random number generation rngOtherNot applicable
What a large quantum computer would change
- Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.RSA signatures, RSA encryption, DSA, Finite-field Diffie-Hellman, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, ECDSA on secp256k1, ECDH (Weierstrass curves), Ed25519, Ed448, X25519, X448
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.AES, AES-GCM, ChaCha20-Poly1305, SHA-1, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), SHA-3 and SHAKE, RIPEMD-160, HMAC, HKDF, PBKDF2, scrypt, Argon2
- Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation
Notes describe algorithm families, not any one project.