agent icon indicating copy to clipboard operation
agent copied to clipboard

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

Open github-actions[bot] opened this issue 4 years ago • 3 comments

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

Details
Package prost-types
Version 0.7.0
URL https://github.com/tokio-rs/prost/issues/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.

github-actions[bot] avatar Jul 09 '21 00:07 github-actions[bot]

Crate:         prost-types
Version:       0.7.0
Title:         Conversion from `prost_types::Timestamp` to `SystemTime` can cause an overflow and panic
Date:          2021-07-08
ID:            RUSTSEC-2021-0073
URL:           https://rustsec.org/advisories/RUSTSEC-2021-0073
Solution:      Upgrade to >=0.8.0
Dependency tree:
prost-types 0.7.0
├── prost-build 0.7.0
│   ├── tonic-build 0.4.2
│   │   ├── kubelet 0.7.0
│   │   │   └── stackable-agent 0.5.0-nightly
│   │   └── k8s-csi 0.3.0
│   │       └── kubelet 0.7.0
│   └── k8s-csi 0.3.0
├── kubelet 0.7.0
└── k8s-csi 0.3.0

siegfriedweber avatar Jul 12 '21 09:07 siegfriedweber

Remove .cargo/audit.toml when fixed

siegfriedweber avatar Jul 12 '21 09:07 siegfriedweber

I've added https://github.com/deislabs/krustlet/issues/640 upstream to maybe get an automated audit action there as well.

soenkeliebau avatar Jul 14 '21 08:07 soenkeliebau