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-program

Dependencies

(39 total, 15 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 ark-bn254^0.4.00.5.0out of date
 ark-ec^0.4.00.5.0out of date
 ark-ff^0.4.00.5.0out of date
 ark-serialize^0.4.00.5.0out of date
 base64^0.22.10.22.1up to date
 bincode^1.3.32.0.1out of date
 bitflags^2.5.02.9.1up to date
 blake3^1.5.11.8.2up to date
 borsh^0.10.31.5.7out of date
 bs58^0.5.10.5.1up to date
 bv^0.11.10.11.1up to date
 bytemuck^1.16.11.23.1up to date
 bytemuck_derive^1.7.01.9.3up to date
 console_error_panic_hook^0.1.70.1.7up to date
 console_log^0.2.21.0.0out of date
 curve25519-dalek ⚠️^3.2.14.1.3out of date
 getrandom^0.2.100.3.3out of date
 js-sys^0.3.690.3.77up to date
 lazy_static^1.4.01.5.0up to date
 libsecp256k1^0.6.00.7.2out of date
 log^0.4.210.4.27up to date
 memoffset^0.90.9.1up to date
 num-bigint^0.4.50.4.6up to date
 num-derive^0.40.4.2up to date
 num-traits^0.20.2.19up to date
 parking_lot^0.120.12.4up to date
 qualifier_attr^0.2.20.2.2up to date
 rand^0.8.50.9.1out of date
 rustversion^1.0.171.0.21up to date
 serde^1.0.2031.0.219up to date
 serde_bytes^0.11.140.11.17up to date
 serde_derive^1.0.2031.0.219up to date
 sha2^0.10.80.10.9up to date
 sha3^0.10.80.10.8up to date
 solana-frozen-abi=2.0.132.3.0out of date
 solana-frozen-abi-macro=2.0.132.2.1out of date
 solana-sdk-macro=2.0.132.2.1out of date
 thiserror^1.0.612.0.12out of date
 wasm-bindgen^0.20.2.100up to date

Dev dependencies

(9 total, 4 outdated)

CrateRequiredLatestStatus
 anyhow^1.0.821.0.98up to date
 arbitrary^1.3.21.4.1up to date
 array-bytes=1.4.19.3.0out of date
 assert_matches^1.5.01.5.0up to date
 itertools^0.12.10.14.0out of date
 libsecp256k1^0.6.00.7.2out of date
 serde_json^1.0.1171.0.140up to date
 solana-logger=2.0.132.3.1out of date
 static_assertions^1.1.01.1.0up to date

Security Vulnerabilities

curve25519-dalek: Timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`

RUSTSEC-2024-0344

Timing variability of any kind is problematic when working with potentially secret values such as elliptic curve scalars, and such issues can potentially leak private keys and other secrets. Such a problem was recently discovered in curve25519-dalek.

The Scalar29::sub (32-bit) and Scalar52::sub (64-bit) functions contained usage of a mask value inside a loop where LLVM saw an opportunity to insert a branch instruction (jns on x86) to conditionally bypass this code section when the mask value is set to zero as can be seen in godbolt:

A similar problem was recently discovered in the Kyber reference implementation:

https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ

As discussed on that thread, one portable solution, which is also used in this PR, is to introduce a volatile read as an optimization barrier, which prevents the compiler from optimizing it away.

The fix can be validated in godbolt here:

The problem was discovered and the solution independently verified by Alexander Wagner [email protected] and Lea Themint [email protected] using their DATA tool:

https://github.com/Fraunhofer-AISEC/DATA