# RUSTSEC-2022-0009 - Failure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`

Source: https://junglewise.ai/threats/rustsec-2022-0009-failure-to-verify-the-public-key-of-a-signedenvelope-9ccee126  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-02-07  
License: CC BY 4.0 with a link back

Severity: info · Published 2022-02-07

Failure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`

Technologies: [libp2p-core (crates.io)](https://junglewise.ai/threats/technologies/libp2p-core). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 7 February 2022.

**Which products and versions are affected?** libp2p-core (crates.io) SEMVER:introduced=0.30.0-rc.1,fixed=0.30.2,introduced=0.31.0-0,fixed=0.31.1.

**Is there a fix for This vulnerability?** Yes. libp2p-core (crates.io): upgrade to 0.31.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run libp2p-core (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- libp2p-core (crates.io): upgrade to 0.31.1 or later

  ```sh
  cargo update -p libp2p-core
  ```


## Affected products

- libp2p-core (crates.io) SEMVER:introduced=0.30.0-rc.1,fixed=0.30.2,introduced=0.31.0-0,fixed=0.31.1

## Related threats

- [Failure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`](https://junglewise.ai/threats/failure-to-verify-the-public-key-of-a-signedenvelope-against-the-peerid-b70dcb92)
- [RUSTSEC-2019-0004 - Failure to properly verify ed25519 signatures makes any signature valid](https://junglewise.ai/threats/cve-2019-15545-failure-to-properly-verify-ed25519-signatures-in-libp2p-core)
