libp2p-quic: Remote panic via certificate expiry race during QUIC handshake
Published Sep 15, 2026
8.2
HIGHCVSS 4.0
EPSS 0.28%
Description
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 products
-
- Version < 0.13.1StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Libp2p | Rust-Libp2p | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (5)
- https://github.com/advisories/GHSA-5hq8-qhww-jm7q Advisory
- https://github.com/libp2p/rust-libp2p/commit/212f3774af048e2cecfb2e6b1e08477685e52b22 x_refsource_MISC
- https://github.com/libp2p/rust-libp2p/commit/e8f35e12c2418b04df6e9cdf036005e8aee3c7a2 x_refsource_MISC
- https://github.com/libp2p/rust-libp2p/pull/6525 x_refsource_MISC
- https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-5hq8-qhww-jm7q exploitx_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-5hq8-qhww-jm7q | Advisory | |
| https://github.com/libp2p/rust-libp2p/commit/212f3774af048e2cecfb2e6b1e08477685e52b22 | x_refsource_MISC | |
| https://github.com/libp2p/rust-libp2p/commit/e8f35e12c2418b04df6e9cdf036005e8aee3c7a2 | x_refsource_MISC | |
| https://github.com/libp2p/rust-libp2p/pull/6525 | x_refsource_MISC | |
| https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-5hq8-qhww-jm7q | exploitx_refsource_CONFIRM |
Change history (0)
No recorded changes yet.