Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUSTSEC-2021-0073: Conversion from prost_types::Timestamp to SystemTime can cause an overflow and panic #684

Closed
github-actions bot opened this issue Jul 9, 2021 · 2 comments

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2021

Conversion from prost_types::Timestamp to SystemTime can cause an overflow and panic

Details
Package prost-types
Version 0.7.0
URL tokio-rs/prost#438
Date 2021-07-08
Patched versions >=0.8.0

Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a Timestamp to SystemTime.

It is recommended to upgrade to prost-types v0.8 and switch the usage of From<Timestamp> for SystemTime to TryFrom<Timestamp> for SystemTime.

See #438 for more information.

See advisory page for additional details.

@rajivshah3
Copy link
Member

prost-types v0.7.0
└── prost-build v0.7.0
    [build-dependencies]
    └── libp2p-core v0.28.3
        ├── libp2p v0.37.1
        │   └── bee-network v0.1.0
        │       └── bee-protocol v0.1.0
        │           └── bee-rest-api v0.1.0
        │               └── iota-client v0.5.0-alpha.3 (https://github.com/iotaledger/iota.rs?rev=57c5a33d83be4b8286a54156e9f0d2ac4345e9b9#57c5a33d)
        │                   └── iota-wallet v0.2.0 (/Users/rajiv/wallet.rs)
        └── libp2p-swarm v0.29.0
            └── libp2p v0.37.1 (*)

@jyhi
Copy link
Contributor

jyhi commented Nov 16, 2021

f67d498 fixed this by removing the dependency to prost-types; closing.

@jyhi jyhi closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants