{"id":"RUSTSEC-2022-0009","summary":"Failure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`","details":"Affected versions of this crate did not check that the public key the signature was created with matches the peer ID of the peer record. \nAny combination was considered valid.\n\nThis allows an attacker to republish an existing `PeerRecord` with a different `PeerId`.","aliases":["GHSA-wc36-xgcc-jwpr"],"modified":"2023-11-08T04:23:45.241320Z","published":"2022-02-07T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/libp2p-core"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2022-0009.html"}],"affected":[{"package":{"name":"libp2p-core","ecosystem":"crates.io","purl":"pkg:cargo/libp2p-core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.30.0-rc.1"},{"fixed":"0.30.2"},{"introduced":"0.31.0-0"},{"fixed":"0.31.1"}]}],"ecosystem_specific":{"affects":{"functions":["libp2p_core::PeerRecord::from_signed_envelope"],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"informational":null,"categories":["crypto-failure"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0009.json","cvss":null}}],"schema_version":"1.7.3"}