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 leaf

Dependencies

(69 total, 20 outdated, 9 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.49.0maybe insecure
 protobuf ⚠️^3.63.7.2maybe insecure
 thiserror^1.02.0.18out of date
 futures^0.30.3.31up to date
 async-trait^0.10.1.89up to date
 bytes^11.11.0up to date
 lazy_static^1.51.5.0up to date
 anyhow^1.01.0.100up to date
 rand^0.80.9.2out of date
 socket2^0.50.6.1out of date
 async-recursion^1.11.1.1up to date
 parking_lot^0.120.12.5up to date
 hickory-proto ⚠️^0.240.25.2out of date
 lru^0.120.16.3out of date
 tracing^0.10.1.44up to date
 tracing-appender^0.20.2.4up to date
 tracing-subscriber ⚠️^0.30.3.22maybe insecure
 chrono ⚠️^0.40.4.43maybe insecure
 colored^2.23.1.1out of date
 maxminddb ⚠️^0.240.27.1out of date
 memmap2^0.90.9.9up to date
 cidr^0.20.3.2out of date
 regex^1.111.12.2up to date
 directories^4.06.0.0out of date
 async-ffi^0.20.5.0out of date
 libloading^0.70.9.0out of date
 serde_json^1.01.0.149up to date
 serde_derive^1.01.0.228up to date
 serde^1.01.0.228up to date
 openssl ⚠️^0.100.10.75maybe insecure
 ring ⚠️^0.170.17.14maybe insecure
 aws-lc-rs^1.71.15.3up to date
 tokio-rustls^0.260.26.4up to date
 webpki-roots^0.251.0.5out of date
 rustls-pemfile^1.02.2.0out of date
 openssl-probe^0.10.2.0out of date
 tokio-openssl^0.60.6.5up to date
 tungstenite^0.240.28.0out of date
 tokio-tungstenite^0.240.28.0out of date
 url^2.52.5.8up to date
 http^1.11.4.0up to date
 async-socks5^0.60.6.0up to date
 hkdf^0.120.12.4up to date
 md-5^0.100.10.6up to date
 sha-1^0.100.10.1up to date
 percent-encoding^2.32.3.2up to date
 base64^0.220.22.1up to date
 memchr^22.7.6up to date
 sha2^0.100.10.9up to date
 hex^0.40.4.3up to date
 lz_fnv^0.10.1.2up to date
 cfb-mode^0.80.8.2up to date
 hmac^0.120.12.1up to date
 aes^0.80.8.4up to date
 sha3^0.100.10.8up to date
 digest^0.100.10.7up to date
 uuid^11.19.0up to date
 byteorder^11.5.0up to date
 lru_time_cache^0.110.11.11up to date
 tokio-util^0.70.7.18up to date
 quinn^0.110.11.9up to date
 rustls ⚠️^0.230.23.36maybe insecure
 axum^0.70.8.8out of date
 notify^68.2.0out of date
 tun^0.70.8.5out of date
 ipconfig^0.30.3.2up to date
 jni^0.210.21.1up to date
 pnet_datalink^0.340.35.0out of date
 libc^0.20.2.180up to date

Dev dependencies

(3 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 rcgen^0.130.14.7out of date
 sha2^0.100.10.9up to date
 tokio ⚠️^11.49.0maybe insecure

Build dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 cc^1.01.2.53up to date
 bindgen^0.690.72.1out of date
 protobuf-codegen=3.6.03.7.2out of date

Crate leaf-cli

Dependencies

(2 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.49.0maybe insecure
 argh^0.10.1.13up to date

Crate leaf-ffi

Dependencies

(1 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.49.0maybe insecure

Crate shadowsocks

Dependencies

(4 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 async-trait^0.10.1.89up to date
 tokio ⚠️^11.49.0maybe insecure
 async-ffi^0.20.5.0out of date
 bytes^11.11.0up to date

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

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);

rustls: rustls network-reachable panic in `Acceptor::accept`

RUSTSEC-2024-0399

A bug introduced in rustls 0.23.13 leads to a panic if the received TLS ClientHello is fragmented. Only servers that use rustls::server::Acceptor::accept() are affected.

Servers that use tokio-rustls's LazyConfigAcceptor API are affected.

Servers that use tokio-rustls's TlsAcceptor API are not affected.

Servers that use rustls-ffi's rustls_acceptor_accept API are affected.

protobuf: Crash due to uncontrolled recursion in protobuf crate

RUSTSEC-2024-0437

Affected version of this crate did not properly parse unknown fields when parsing a user-supplied input.

This allows an attacker to cause a stack overflow when parsing the mssage on untrusted data.

hickory-proto: Hickory DNS failure to verify self-signed RRSIG for DNSKEYs

RUSTSEC-2025-0006

Summary

The DNSSEC validation routines treat entire RRsets of DNSKEY records as trusted once they have established trust in only one of the DNSKEYs. As a result, if a zone includes a DNSKEY with a public key that matches a configured trust anchor, all keys in that zone will be trusted to authenticate other records in the zone. There is a second variant of this vulnerability involving DS records, where an authenticated DS record covering one DNSKEY leads to trust in signatures made by an unrelated DNSKEY in the same zone.

Details

verify_dnskey_rrset() will return Ok(true) if any record's public key matches a trust anchor. This results in verify_rrset() returning a Secure proof. This ultimately results in successfully verifying a response containing DNSKEY records. verify_default_rrset() looks up DNSKEY records by calling handle.lookup(), which takes the above code path. There's a comment following this that says "DNSKEYs were already validated by the inner query in the above lookup", but this is not the case. To fully verify the whole RRset of DNSKEYs, it would be necessary to check self-signatures by the trusted key over the other keys. Later in verify_default_rrset(), verify_rrset_with_dnskey() is called multiple times with different keys and signatures, and if any call succeeds, then its Proof is returned.

Similarly, verify_dnskey_rrset() returns Ok(false) if any DNSKEY record is covered by a DS record. A comment says "If all the keys are valid, then we are secure", but this is only checking that one key is authenticated by a DS in the parent zone's delegation point. This time, after control flow returns to verify_rrset(), it will call verify_default_rrset(). The special handling for DNSKEYs in verify_default_rrset() will then call verify_rrset_with_dnskey() using each KSK DNSKEY record, and if one call succeeds, return its Proof. If there are multiple KSK DNSKEYs in the RRset, then this leads to another authentication break. We need to either pass the authenticated DNSKEYs from the DS covering check to the RRSIG validation, or we need to perform this RRSIG validation of the DNSKEY RRset inside verify_dnskey_rrset() and cut verify_default_rrset() out of DNSKEY RRset validation entirely.

ring: Some AES functions may panic when overflow checking is enabled.

RUSTSEC-2025-0009

ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.

openssl: Use-After-Free in `Md::fetch` and `Cipher::fetch`

RUSTSEC-2025-0022

When a Some(...) value was passed to the properties argument of either of these functions, a use-after-free would result.

In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to CString::drop's behavior).

The maintainers thank quitbug for reporting this vulnerability to us.

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #3368 to escape ANSI control characters from user input.

maxminddb: `Reader::open_mmap` unsoundly marks unsafe memmap operation as safe

RUSTSEC-2025-0132

maxminddb prior to version 0.27 declared Reader::open_mmap as safe despite wrapping an inherently unsafe memmap2 operation with no extra step done to guarantee safety. This could have led to undefined behaviour if the file were to be modified on disk while the memory map was still active.