rustsec-2022-0009
Vulnerability from osv_rustsec
Published
2022-02-07 12:00
Modified
2023-06-13 13:10
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. Any combination was considered valid.
This allows an attacker to republish an existing PeerRecord with a different PeerId.
{
"affected": [
{
"database_specific": {
"categories": [
"crypto-failure"
],
"cvss": null,
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [
"libp2p_core::PeerRecord::from_signed_envelope"
],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "libp2p-core",
"purl": "pkg:cargo/libp2p-core"
},
"ranges": [
{
"events": [
{
"introduced": "0.30.0-rc.1"
},
{
"fixed": "0.30.2"
},
{
"introduced": "0.31.0-0"
},
{
"fixed": "0.31.1"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"GHSA-wc36-xgcc-jwpr"
],
"database_specific": {
"license": "CC0-1.0"
},
"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`.",
"id": "RUSTSEC-2022-0009",
"modified": "2023-06-13T13:10:24Z",
"published": "2022-02-07T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/libp2p-core"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2022-0009.html"
}
],
"related": [],
"severity": [],
"summary": "Failure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…