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 forest-filecoin

Dependencies

(163 total, 8 outdated, 5 possibly insecure)

CrateRequiredLatestStatus
 ahash^0.80.8.11up to date
 anes^0.20.2.0up to date
 argon2^0.50.5.3up to date
 async-compression^0.40.4.20up to date
 async-fs^22.1.2up to date
 async-trait^0.10.1.87up to date
 asynchronous-codec^0.70.7.0up to date
 axum^0.80.8.1up to date
 backon^11.4.0up to date
 base64^0.220.22.1up to date
 bigdecimal^0.40.4.7up to date
 blake2b_simd^11.0.3up to date
 bls-signatures^0.150.15.0up to date
 blstrs^0.70.7.1up to date
 byteorder^11.5.0up to date
 bytes^11.10.1up to date
 cbor4ii^0.21.0.0out of date
 cfg-if^11.0.0up to date
 cfg-vis^0.30.3.0up to date
 chrono ⚠️^0.40.4.40maybe insecure
 cid^0.100.11.1out of date
 clap^44.5.32up to date
 colored^33.0.0up to date
 crypto_secretbox^0.10.1.1up to date
 daemonize-me^22.0.1up to date
 data-encoding^22.8.0up to date
 data-encoding-macro^0.10.1.17up to date
 derive_builder^0.200.20.2up to date
 derive_more^22.0.1up to date
 dialoguer^0.110.11.0up to date
 digest^0.100.10.7up to date
 directories^66.0.0up to date
 displaydoc^0.20.2.5up to date
 either^11.15.0up to date
 ethereum-types^0.150.15.1up to date
 ez-jsonrpc-types^0.50.5.1up to date
 fil_actor_account_state^1919.1.0up to date
 fil_actor_cron_state^1919.1.0up to date
 fil_actor_datacap_state^1919.1.0up to date
 fil_actor_eam_state^1919.1.0up to date
 fil_actor_evm_state^1919.1.0up to date
 fil_actor_init_state^1919.1.0up to date
 fil_actor_market_state^1919.1.0up to date
 fil_actor_miner_state^1919.1.0up to date
 fil_actor_multisig_state^1919.1.0up to date
 fil_actor_power_state^1919.1.0up to date
 fil_actor_reward_state^1919.1.0up to date
 fil_actor_system_state^1919.1.0up to date
 fil_actor_verifreg_state^1919.1.0up to date
 fil_actors_shared^1919.1.0up to date
 flate2^11.1.0up to date
 fs_extra^11.3.0up to date
 fvm~4.5.34.5.3up to date
 fvm_ipld_blockstore^0.30.3.1up to date
 fvm_ipld_encoding^0.50.5.1up to date
 fvm_shared~4.5.34.5.3up to date
 gethostname^11.0.0up to date
 git-version^0.30.3.9up to date
 group^0.130.13.0up to date
 hex^0.40.4.3up to date
 hickory-resolver^0.25.0-alpha0.24.4up to date
 http^11.2.0up to date
 human-repr^11.1.0up to date
 human_bytes^0.40.4.3up to date
 humantime^22.1.0up to date
 indexmap^22.8.0up to date
 indicatif^0.170.17.11up to date
 integer-encoding^4.04.0.2up to date
 ipld-core^0.40.4.2up to date
 is-terminal^0.40.4.16up to date
 itertools^0.140.14.0up to date
 jsonrpsee^0.240.24.8up to date
 jsonwebtoken^99.3.1up to date
 keccak-hash^0.110.11.0up to date
 kubert-prometheus-process^0.10.1.0up to date
 lazy-regex^33.4.1up to date
 libsecp256k1^0.70.7.1up to date
 lru^0.130.13.0up to date
 md-5^0.100.10.6up to date
 memmap2^0.90.9.5up to date
 memory-stats^11.2.0up to date
 multiaddr^0.180.18.2up to date
 multihash-derive^0.90.9.1up to date
 multimap^0.100.10.0up to date
 nom^78.0.0out of date
 nonzero_ext^0.30.3.0up to date
 num^0.40.4.3up to date
 num-bigint^0.40.4.6up to date
 num-derive^0.40.4.2up to date
 num-rational^0.40.4.2up to date
 num-traits^0.20.2.19up to date
 num_cpus^11.16.0up to date
 nunny^0.20.2.1up to date
 once_cell^11.21.0up to date
 openrpc-types^0.40.4.0up to date
 parity-db^0.50.5.0up to date
 parking_lot^0.120.12.3up to date
 pathfinding^44.14.0up to date
 pin-project-lite^0.20.2.16up to date
 positioned-io^0.30.3.3up to date
 pretty_assertions^11.4.1up to date
 prometheus-client^0.220.23.1out of date
 quick-protobuf^0.80.8.1up to date
 quick-protobuf-codec^0.30.3.1up to date
 rand^0.80.9.0out of date
 rand_chacha^0.30.9.0out of date
 rand_distr^0.40.5.1out of date
 raw_sync_2^0.10.1.5up to date
 rayon^11.10.0up to date
 regex ⚠️^11.11.1maybe insecure
 reqwest^0.120.12.12up to date
 rlimit^0.100.10.2up to date
 rlp^0.60.6.1up to date
 rs-car-ipfs^0.30.3.0up to date
 schemars^0.80.8.22up to date
 scopeguard^11.2.0up to date
 semver^11.0.26up to date
 serde^11.0.219up to date
 serde_ipld_dagcbor^0.60.6.2up to date
 serde_json^11.0.140up to date
 serde_tuple^11.1.0up to date
 serde_with^33.12.0up to date
 serde_yaml^0.90.9.34+deprecatedup to date
 sha2^0.100.10.8up to date
 shared_memory^0.120.12.4up to date
 similar^22.7.0up to date
 slotmap^11.0.7up to date
 smallvec ⚠️^11.14.0maybe insecure
 smart-default^0.70.7.1up to date
 stacker^0.10.1.19up to date
 static_assertions^11.1.0up to date
 statrs^0.180.18.0up to date
 strum^0.270.27.1up to date
 strum_macros^0.270.27.1up to date
 tabled^0.180.18.0up to date
 tap^11.0.1up to date
 tar ⚠️^0.40.4.44maybe insecure
 tempfile^33.18.0up to date
 tera^11.20.0up to date
 thiserror^22.0.12up to date
 ticker^0.10.1.1up to date
 tokio ⚠️^11.44.0maybe insecure
 tokio-stream^0.10.1.17up to date
 tokio-util^0.70.7.13up to date
 toml^0.80.8.20up to date
 tower^0.40.5.2out of date
 tower-http^0.60.6.2up to date
 tracing^0.10.1.41up to date
 tracing-appender^0.20.2.3up to date
 tracing-subscriber^0.30.3.19up to date
 unsigned-varint^0.80.8.0up to date
 url^22.5.4up to date
 uuid^11.15.1up to date
 walkdir^22.5.0up to date
 zstd^0.130.13.3up to date
 clap_complete^4.5.464.5.46up to date
 console-subscriber^0.40.4.1up to date
 educe^0.6.00.6.0up to date
 mimalloc^0.10.1.43up to date
 paste^11.0.15up to date
 tikv-jemallocator^0.60.6.0up to date
 tracing-chrome^0.70.7.2up to date
 tracing-loki^0.20.2.6up to date

Dev dependencies

(25 total, 1 outdated)

CrateRequiredLatestStatus
 ariadne^0.50.5.0up to date
 assert_cmd^22.0.16up to date
 bimap^0.60.6.3up to date
 cargo_metadata^0.190.19.2up to date
 cbor4ii^0.21.0.0out of date
 criterion^0.50.5.1up to date
 cs_serde_bytes^0.120.12.2up to date
 derive-quickcheck-arbitrary^0.10.1.3up to date
 fickle^0.30.3.0up to date
 fvm_shared~4.5.34.5.3up to date
 glob^0.30.3.2up to date
 http-range-header^0.40.4.2up to date
 insta^11.42.2up to date
 num-bigint^0.40.4.6up to date
 petgraph^0.70.7.1up to date
 predicates^33.1.3up to date
 proc-macro2^11.0.94up to date
 quickcheck^11.0.3up to date
 quickcheck_async^0.10.1.1up to date
 quickcheck_macros^11.0.0up to date
 ra_ap_syntax^0.0.2690.0.269up to date
 regex-automata^0.40.4.9up to date
 serial_test^33.2.0up to date
 syn^22.0.100up to date
 tokio-test^0.40.4.4up to date

Crate forest-interop-tests

No external dependencies! 🙌

Security Vulnerabilities

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

smallvec: Buffer overflow in SmallVec::insert_many

RUSTSEC-2021-0003

A bug in the SmallVec::insert_many method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap.

This bug was only triggered if the iterator passed to insert_many yielded more items than the lower bound returned from its size_hint method.

The flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted. The fix also simplified the implementation of insert_many to use less unsafe code, so it is easier to verify its correctness.

Thank you to Yechan Bae (@Qwaz) and the Rust group at Georgia Tech’s SSLab for finding and reporting this bug.

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!

regex: Regexes with large repetitions on empty sub-expressions take a very long time to parse

RUSTSEC-2022-0013

The Rust Security Response WG was notified that the regex crate did not properly limit the complexity of the regular expressions (regex) it parses. An attacker could use this security issue to perform a denial of service, by sending a specially crafted regex to a service accepting untrusted regexes. No known vulnerability is present when parsing untrusted input with trusted regexes.

This issue has been assigned CVE-2022-24713. The severity of this vulnerability is "high" when the regex crate is used to parse untrusted regexes. Other uses of the regex crate are not affected by this vulnerability.

Overview

The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API.

Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes.

Affected versions

All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5.

Mitigations

We recommend everyone accepting user-controlled regexes to upgrade immediately to the latest version of the regex crate.

Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability. Because of this, we do not recommend denying known problematic regexes.

Acknowledgements

We want to thank Addison Crump for responsibly disclosing this to us according to the Rust security policy, and for helping review the fix.

We also want to thank Andrew Gallant for developing the fix, and Pietro Albini for coordinating the disclosure and writing this advisory.

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);