Repository navigation
chore(deps): update rust crate rsa to 0.10 [security] - #745
Open
ferrlabs-renovate[bot] wants to merge 1 commit into
Open
ferrlabs-renovate[bot] wants to merge 1 commit into
ferrlabs-renovate[bot] wants to merge 1 commit into
Conversation
Signed-off-by: ferrlabs-renovate[bot] <282300760+ferrlabs-renovate[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9→0.10Marvin Attack: potential key recovery through timing sidechannels
CVE-2023-49092 / GHSA-4grx-2x9w-596c / GHSA-c38w-74pg-36hr / RUSTSEC-2023-0071
More information
Details
Impact
Due to a non-constant-time implementation, information about the private key is leaked through timing information which is observable over the network. An attacker may be able to use that information to recover the key.
Patches
The
rsav0.10 series includes a migration tocrypto-bigintand constant-time mitigations recommended indraft-irtf-cfrg-rsa-guidance. Upgrading to this release should resolve all known constant-time issues.References
This vulnerability was discovered as part of the "Marvin Attack", which revealed several implementations of RSA including OpenSSL had not properly mitigated timing sidechannel attacks.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NReferences
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Release Notes
RustCrypto/RSA (rsa)
v0.10.0Compare Source
Security
num-bigint-digwithcrypto-bigintfor constant-time modular exponentiation (#394)Debugoutput (#480)draft-irtf-cfrg-rsa-guidance(#710, #715, #739,#751, #752, #755, #756, #758, #770, #771, #773)
PrecomputedValues(#716)padding instead of exposing a padding error and with it a sidechannel (#726, #729, #749)
Added
id-RSASSA-PSSalgorithm identifiers (#424)pss::VerifyingKey::salt_lenand opt-in automatic salt-length detection vianew_with_auto_salt_len(#448, #546)PublicKeyParts::n_bytesande_bytesserialization helpers (#519)Cloneandcore::error::Errorimplementations forError(#530, #694)PrivateKey::as_public_keyaccessor (#592)PrivateKeyandPublicKeyfor OAEP encryption/decryptionand PKCS#1 v1.5/PSS signing/verification, including prehash and explicit-RNG variants (#638)
PrivateKey::from_components_with_large_exponent, gated onhazmat(#648)cargo checkct/BINSEC (#732, #733, #749, #756,#771, #773)
PrivateKey::from_components_with_wide_primesfor unbalanced two-prime keys, which ordinaryconstructors now reject (#755)
TryFrom<BitStringRef<'_>>for PKCS#1 v1.5 and PSS signatures (#764)crypto_common::Generateimplementation andGeneratere-export for generating 3072-bit keyswith public exponent 65537 (#780)
Changed
BigUintin the public API withBoxedUint; returnNonZero<BoxedUint>for the modulusand
Odd<BoxedUint>for prime factors (#394, #735)crypto-primesfor prime generation (#394)serdect; extend serdesupport to OAEP, PKCS#1 v1.5, and PSS wrapper types (#420)
encodingfeature;stdno longerimplicitly enables encoding dependencies (#537, #543)
PublicKey::new_with_size_limitsandhazmat-gated unchecked key generation (#576, #760)pkcs1to v0.8;pkcs8to v0.11;spkito v0.8;serdectto v0.4 (#584, #684, #688,#766)
OaepandPssgeneric over their digest types instead of usingDynDigest(#593)rand_coreto v0.10,crypto-commonto v0.2,digestto v0.11, andsignatureto v3(#650, #671, #693)
exponent's bit length (#662)
crypto-bigintto v0.7.10 andcrypto-primesto v0.7 (#673, #766)sha1andsha2to v0.11 (#683)#723)
getrandomby default and use the system RNG for blinding in default decryption andsigning paths (#739, #758)
Signature::from_bytes_with_max_lenforexplicit limits (#767)
pkcs1v15feature for PKCS#1 v1.5 encryption and signatures (#778)TryCryptoRngand propagate RNG failures as errors (#779)RsaPrivateKeyandRsaPublicKeytoPrivateKeyandPublicKey, retaining the old namesas deprecated aliases (#781)
Deprecated
pss::BlindedSigningKeyin favor ofpss::SigningKey, which now applies blinding bydefault (#758)
PublicKey::new_with_max_sizein favor ofPublicKey::new_with_size_limits(#760)Removed
nightlyandu64_digitfeatures associated withnum-bigint-dig(#394)Pkcs1v15Sign::new_rawandpkcs1v15*_with_prefixconstructors (#524)pemfeature; PEM support is included withencoding(#537)sha2feature; SHA-2 support is now always enabled (#749)Fixed
decryption (#441, #595)
SigningKey::fromandVerifyingKey::fromnow use the digest prefix consistentlywith
new(#472, #498)(#529)
exponents greater than or equal to the modulus (#655, #738, #772, #774)
AlgorithmIdentifierencoder instead oftruncating them (#704)
to 1 modulo 8 (#725)
overflowing salt lengths (#769)
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate CLI.