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 solana-sdk

Dependencies

(12 total, 6 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 bincode^1.0.02.0.1out of date
 bs58^0.2.00.5.1out of date
 byteorder^1.2.11.5.0up to date
 chrono ⚠️^0.4.00.4.41maybe insecure
 generic-array ⚠️^0.12.01.2.0out of date
 log^0.4.20.4.27up to date
 ring ⚠️^0.13.20.17.14out of date
 serde^1.0.821.0.219up to date
 serde_derive^1.0.821.0.219up to date
 serde_json^1.0.101.0.140up to date
 sha2^0.8.00.10.9out of date
 untrusted^0.6.20.9.0out of date

Security Vulnerabilities

generic-array: arr! macro erases lifetimes

RUSTSEC-2020-0146

Affected versions of this crate allowed unsoundly extending lifetimes using arr! macro. This may result in a variety of memory corruption scenarios, most likely use-after-free.

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

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.