This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate libp2p-tls

Dependencies

(11 total, 6 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 futures^0.3.300.3.32up to date
 futures-rustls^0.26.00.26.0up to date
 libp2p-core^0.42.00.43.2out of date
 libp2p-identity^0.2.90.2.13up to date
 rcgen^0.11.30.14.7out of date
 ring ⚠️^0.17.80.17.14maybe insecure
 rustls ⚠️^0.23.90.23.37maybe insecure
 thiserror^1.0.612.0.18out of date
 rustls-webpki ⚠️^0.101.40.103.10out of date
 x509-parser^0.16.00.18.1out of date
 yasna^0.5.20.6.0out of date

Dev dependencies

(7 total, 4 outdated)

CrateRequiredLatestStatus
 hex^0.4.30.4.3up to date
 hex-literal^0.4.11.1.0out of date
 libp2p-core^0.42.00.43.2out of date
 libp2p-identity^0.2.90.2.13up to date
 libp2p-swarm^0.45.00.47.1out of date
 libp2p-yamux^0.460.47.0out of date
 tokio^1.381.50.0up to date

Security Vulnerabilities

rustls: rustls network-reachable panic in `Acceptor::accept`

RUSTSEC-2024-0399

A bug introduced in rustls 0.23.13 leads to a panic if the received TLS ClientHello is fragmented. Only servers that use rustls::server::Acceptor::accept() are affected.

Servers that use tokio-rustls's LazyConfigAcceptor API are affected.

Servers that use tokio-rustls's TlsAcceptor API are not affected.

Servers that use rustls-ffi's rustls_acceptor_accept API are affected.

ring: Some AES functions may panic when overflow checking is enabled.

RUSTSEC-2025-0009

ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.

rustls-webpki: CRLs not considered authorative by Distribution Point due to faulty matching logic

RUSTSEC-2026-0049

If a certificate had more than one distributionPoint, then only the first distributionPoint would be considered against each CRL's IssuingDistributionPoint distributionPoint, and then the certificate's subsequent distributionPoints would be ignored.

The impact was that correct provided CRLs would not be consulted to check revocation. With UnknownStatusPolicy::Deny (the default) this would lead to incorrect but safe Error::UnknownRevocationStatus. With UnknownStatusPolicy::Allow this would lead to inappropriate acceptance of revoked certificates.

This vulnerability is thought to be of limited impact. This is because both the certificate and CRL are signed -- an attacker would need to compromise a trusted issuing authority to trigger this bug. An attacker with such capabilities could likely bypass revocation checking through other more impactful means (such as publishing a valid, empty CRL.)

More likely, this bug would be latent in normal use, and an attacker could leverage faulty revocation checking to continue using a revoked credential.

This vulnerability is identified by GHSA-pwjx-qhcg-rvj4. Thank you to @1seal for the report.