RUSTSEC-2026-0525

Source
https://rustsec.org/advisories/RUSTSEC-2026-0525
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0525.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0525
Aliases
Published
2026-07-10T12:00:00Z
Modified
2026-11-13T12:45:06Z
Summary
Remote panic when a peer certificate expires during the QUIC handshake
Details

After the QUIC handshake finished, the peer's libp2p TLS certificate was parsed a second time to get its peer ID, and the result was unwrapped with expect, on the assumption that it could not fail because the certificate had already been validated. Parsing checks the certificate's validity period again against the current time. A remote peer can present a certificate that is about to expire and delay the end of the handshake until it has expired, so the second parse fails and the process panics. No authentication is needed; any application with a reachable QUIC listener is affected.

The fix returns a connection error instead of panicking when the peer identity or certificate cannot be read after the handshake. It is in 0.13.1, and was backported to the main branch in libp2p/rust-libp2p#6525 for 0.14.0.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / libp2p-quic

Package

Name
libp2p-quic
View open source insights on deps.dev
Purl
pkg:cargo/libp2p-quic

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.13.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [],
        "os": []
    }
}

Database specific

categories
[
    "denial-of-service"
]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0525.json"