Libp2p rust-libp2p
libp2p-quic: Remote panic via certificate expiry race during QUIC handshake
libp2p-rust is the official Rust language implementation of the libp2p networking stack. Prior to 0.13.1, libp2p-quic could panic during an inbound QUIC handshake when a remote peer presented a valid short-lived libp2p TLS certificate and delayed the final TLS 1.3 handshake fragment until after the certificate expired. In the Quinn post-handshake upgrade path, transports/quic/src/connection/connecting.rs called libp2p_tls::certificate::parse a second time in remote_peer_id and used expect on the result. The repeated wall-clock validity check could reject the now-expired certificate, causing the expect call to terminate any application exposing an affected libp2p-quic listener. This vulnerability is fixed in 0.13.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.13.1
Fixed in 0.13.1
Mitigation
Upgrade rust-libp2p to 0.13.1 or later.
References
- Vendor advisory github.com/libp2p/rust-libp2p/security/advisor…
- Patch github.com/libp2p/rust-libp2p/pull/6525
- Patch github.com/libp2p/rust-libp2p/commit/212f3774a…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.