This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate base16ct

No external dependencies! 🙌

Crate base32ct

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 base32^0.50.5.1up to date
 proptest^1.51.5.0up to date

Crate base64ct

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 base64^0.220.22.1up to date
 proptest^1.51.5.0up to date

Crate cmpv2

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 crmf=0.3.0-pre.00.2.0up to date
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 x509-cert=0.3.0-pre.00.2.5up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 const-oid^0.10.0-rc.00.9.6up to date
 hex-literal^0.40.4.1up to date

Crate cms

Dependencies

(14 total, 1 insecure)

CrateRequiredLatestStatus
 const-oid^0.10.0-rc.00.9.6up to date
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 x509-cert=0.3.0-pre.00.2.5up to date
 aes=0.9.0-pre.20.8.4up to date
 async-signature=0.6.0-pre.40.5.1up to date
 cbc=0.2.0-pre.20.1.2up to date
 cipher=0.5.0-pre.70.4.4up to date
 rsa ⚠️=0.10.0-pre.30.9.6insecure
 sha1=0.11.0-pre.40.10.6up to date
 sha2=0.11.0-pre.40.10.8up to date
 sha3=0.11.0-pre.40.10.8up to date
 signature=2.3.0-pre.42.2.0up to date
 zeroize^1.8.11.8.1up to date

Dev dependencies

(10 total, 1 insecure)

CrateRequiredLatestStatus
 getrandom^0.20.2.15up to date
 hex-literal^0.40.4.1up to date
 pem-rfc7468^1.0.0-rc.10.7.0up to date
 pkcs5^0.8.0-rc.10.7.1up to date
 rand^0.8.50.8.5up to date
 rsa ⚠️=0.10.0-pre.30.9.6insecure
 ecdsa=0.17.0-pre.90.16.9up to date
 p256=0.14.0-pre.20.13.2up to date
 tokio^1.41.11.41.1up to date
 x509-cert=0.3.0-pre.00.2.5up to date

Crate const-oid

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 arbitrary^1.41.4.1up to date

Dev dependencies

(3 total, 1 possibly insecure)

CrateRequiredLatestStatus
 hex-literal^0.40.4.1up to date
 proptest^11.5.0up to date
 regex ⚠️^11.11.1maybe insecure

Crate crmf

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 cms=0.3.0-pre.00.2.3up to date
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 x509-cert=0.3.0-pre.00.2.5up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 const-oid^0.10.0-rc.00.9.6up to date

Crate der

Dependencies

(8 total, all up-to-date)

CrateRequiredLatestStatus
 arbitrary^1.41.4.1up to date
 bytes^11.8.0up to date
 const-oid^0.10.0-rc.00.9.6up to date
 der_derive^0.8.0-rc.00.7.3up to date
 flagset^0.4.60.4.6up to date
 pem-rfc7468^1.0.0-rc.10.7.0up to date
 time^0.3.40.3.36up to date
 zeroize^1.81.8.1up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^0.4.10.4.1up to date
 proptest^11.5.0up to date

Crate der_derive

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 proc-macro2^11.0.89up to date
 quote^11.0.37up to date
 syn^22.0.87up to date

Crate gss-api

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 x509-cert=0.3.0-pre.00.2.5up to date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 hex-literal^0.40.4.1up to date
 x509-cert=0.3.0-pre.00.2.5up to date

Crate pem-rfc7468

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 base64ct^1.41.6.0up to date

Crate pkcs1

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 pkcs8^0.11.0-rc.10.10.2up to date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 const-oid^0.10.0-rc.00.9.6up to date
 hex-literal^0.40.4.1up to date
 tempfile^33.14.0up to date

Crate pkcs5

Dependencies

(11 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 cbc=0.2.0-pre.20.1.2up to date
 aes=0.9.0-pre.20.8.4up to date
 aes-gcm=0.11.0-pre.20.10.3up to date
 des=0.9.0-pre.20.8.1up to date
 pbkdf2=0.13.0-pre.10.12.2up to date
 rand_core^0.6.40.6.4up to date
 scrypt=0.12.0-pre.20.11.0up to date
 sha1=0.11.0-pre.40.10.6up to date
 sha2=0.11.0-pre.40.10.8up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^0.40.4.1up to date

Crate pkcs8

Dependencies

(5 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 rand_core^0.60.6.4up to date
 pkcs5^0.8.0-rc.00.7.1up to date
 subtle^22.6.1up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^0.4.10.4.1up to date
 tempfile^33.14.0up to date

Crate pkcs12

Dependencies

(7 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 x509-cert=0.3.0-pre.00.2.5up to date
 const-oid^0.10.0-rc.00.9.6up to date
 cms=0.3.0-pre.00.2.3up to date
 digest^0.11.0-pre.90.10.7up to date
 zeroize^1.8.11.8.1up to date

Dev dependencies

(5 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^0.40.4.1up to date
 pkcs8^0.11.0-rc.10.10.2up to date
 pkcs5^0.8.0-rc.00.7.1up to date
 sha2=0.11.0-pre.40.10.8up to date
 whirlpool=0.11.0-pre.40.10.4up to date

Crate sec1

Dependencies

(7 total, all up-to-date)

CrateRequiredLatestStatus
 base16ct^0.20.2.0up to date
 der^0.8.0-rc.00.7.9up to date
 hybrid-array^0.2.10.2.1up to date
 pkcs8^0.11.0-rc.10.10.2up to date
 serdect^0.3.0-rc.00.2.0up to date
 subtle^22.6.1up to date
 zeroize^11.8.1up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^0.40.4.1up to date
 tempfile^33.14.0up to date

Crate serdect

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 base16ct^0.20.2.0up to date
 serde^1.0.1841.0.215up to date
 zeroize^11.8.1up to date

Dev dependencies

(9 total, all up-to-date)

CrateRequiredLatestStatus
 bincode^11.3.3up to date
 ciborium^0.20.2.2up to date
 hex-literal^0.40.4.1up to date
 proptest^11.5.0up to date
 rmp-serde^11.3.0up to date
 serde^1.0.1841.0.215up to date
 serde_json^11.0.132up to date
 serde-json-core^0.60.6.0up to date
 toml^0.80.8.19up to date

Crate spki

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 arbitrary^1.41.4.1up to date
 base64ct^11.6.0up to date
 sha2=0.11.0-pre.40.10.8up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^0.40.4.1up to date
 tempfile^33.14.0up to date

Crate tai64

Dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 serde^11.0.215up to date
 zeroize^1.81.8.1up to date

Crate tls_codec

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 zeroize^1.81.8.1up to date
 arbitrary^1.41.4.1up to date
 serde^1.0.1841.0.215up to date

Dev dependencies

(6 total, 4 outdated)

CrateRequiredLatestStatus
 clap=4.3.234.5.21out of date
 clap_lex=0.5.00.7.3out of date
 anstyle=1.0.21.0.10out of date
 anstyle-parse=0.2.10.2.6out of date
 criterion^0.50.5.1up to date
 regex^1.81.11.1up to date

Crate tls_codec_derive

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 syn^22.0.87up to date
 quote^1.01.0.37up to date
 proc-macro2^1.01.0.89up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 trybuild^11.0.101up to date

Crate x509-tsp

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 der^0.8.0-rc.00.7.9up to date
 cms=0.3.0-pre.00.2.3up to date
 cmpv2=0.3.0-pre.00.2.0up to date
 x509-cert=0.3.0-pre.00.2.5up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 hex-literal^0.4.10.4.1up to date

Crate x509-cert

Dependencies

(8 total, all up-to-date)

CrateRequiredLatestStatus
 const-oid^0.10.0-rc.00.9.6up to date
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 arbitrary^1.41.4.1up to date
 async-signature=0.6.0-pre.40.5.1up to date
 sha1^0.11.0-pre.40.10.6up to date
 signature=2.3.0-pre.42.2.0up to date
 tls_codec^0.4.00.4.1up to date

Dev dependencies

(9 total, 1 insecure)

CrateRequiredLatestStatus
 hex-literal^0.40.4.1up to date
 rand^0.8.50.8.5up to date
 rsa ⚠️=0.10.0-pre.30.9.6insecure
 ecdsa=0.17.0-pre.90.16.9up to date
 p256=0.14.0-pre.20.13.2up to date
 rstest^0.230.23.0up to date
 sha2=0.11.0-pre.40.10.8up to date
 tempfile^3.5.03.14.0up to date
 tokio^1.41.11.41.1up to date

Crate x509-cert-test-support

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 serde^1.0.1841.0.215up to date
 serde_json^11.0.132up to date
 tempfile^33.14.0up to date

Crate x509-ocsp

Dependencies

(7 total, all up-to-date)

CrateRequiredLatestStatus
 const-oid^0.10.0-rc.00.9.6up to date
 der^0.8.0-rc.00.7.9up to date
 spki^0.8.0-rc.00.7.3up to date
 x509-cert=0.3.0-pre.00.2.5up to date
 digest=0.11.0-pre.90.10.7up to date
 rand_core^0.6.40.6.4up to date
 signature=2.3.0-pre.42.2.0up to date

Dev dependencies

(6 total, 1 insecure)

CrateRequiredLatestStatus
 hex-literal^0.4.10.4.1up to date
 lazy_static^1.5.01.5.0up to date
 rand^0.8.50.8.5up to date
 rsa ⚠️=0.10.0-pre.30.9.6insecure
 sha1=0.11.0-pre.40.10.6up to date
 sha2=0.11.0-pre.40.10.8up to date

Security Vulnerabilities

regex: Regexes with large repetitions on empty sub-expressions take a very long time to parse

RUSTSEC-2022-0013

The Rust Security Response WG was notified that the regex crate did not properly limit the complexity of the regular expressions (regex) it parses. An attacker could use this security issue to perform a denial of service, by sending a specially crafted regex to a service accepting untrusted regexes. No known vulnerability is present when parsing untrusted input with trusted regexes.

This issue has been assigned CVE-2022-24713. The severity of this vulnerability is "high" when the regex crate is used to parse untrusted regexes. Other uses of the regex crate are not affected by this vulnerability.

Overview

The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API.

Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes.

Affected versions

All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5.

Mitigations

We recommend everyone accepting user-controlled regexes to upgrade immediately to the latest version of the regex crate.

Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability. Because of this, we do not recommend denying known problematic regexes.

Acknowledgements

We want to thank Addison Crump for responsibly disclosing this to us according to the Rust security policy, and for helping review the fix.

We also want to thank Andrew Gallant for developing the fix, and Pietro Albini for coordinating the disclosure and writing this advisory.

rsa: Marvin Attack: potential key recovery through timing sidechannels

RUSTSEC-2023-0071

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

No patch is yet available, however work is underway to migrate to a fully constant-time implementation.

Workarounds

The only currently available workaround is to avoid using the rsa crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer is fine.

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.