arrayfire / arrayfire-rust

Rust wrapper for ArrayFire
BSD 3-Clause "New" or "Revised" License
810 stars 58 forks source link

[Build] RUSTSEC-2020-0071: Potential segfault in the time crate #325

Closed c0dearm closed 2 years ago

c0dearm commented 2 years ago

Description

arrayfire-rust depends on the mnist package that in turn depends on the time crate.

The following security advisory was raised tonight regarding the time crate: https://github.com/c0dearm/mushin/issues/16

I think there are a few things to do here:

9prady9 commented 2 years ago

@c0dearm Firstly, thank you for bringing this to my attention.

I should have caught this earlier, this should be in dev-dependencies of cargo manifest indeed. Must have slipped through. Sorry about that. However, rest assured that crate from crates.io won't have it as dependency and thus users of arrayfire crate are safe. I have addressed it here already https://github.com/arrayfire/arrayfire-rust/pull/326

A git hub action to check for vulnerabilities would be definitely useful in general. I think it should run on a PR only if Cargo file is changed. Otherwise, running it on master branch for push event would suffice.

c0dearm commented 2 years ago

Hi! It can be just scheduled to run once a day or so.

Even if there's no update in the Cargo.lock a new vulnerability might be discovered in one of the package versions.

9prady9 commented 2 years ago

@c0dearm would you be interested in submitting a PR for this job ? I have created an issue for this https://github.com/arrayfire/arrayfire-rust/issues/327

c0dearm commented 2 years ago

Sure! I will try to find some time between today and tomorrow 🙂

9prady9 commented 2 years ago

Sure! I will try to find some time between today and tomorrow slightly_smiling_face

thank you