This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate dubp

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 rusty-hook^0.11.20.11.2up to date

Crate dubp-block

Dependencies

(5 total, 1 outdated)

CrateRequiredLatestStatus
 json-pest-parser^0.3.00.3.0up to date
 serde1.0.*1.0.229up to date
 serde_json1.0.*1.0.154up to date
 log0.4.*0.4.35up to date
 thiserror^1.0.202.0.21out of date

Dev dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 bincode^1.2.03.0.0out of date
 pretty_assertions^0.6.11.4.1out of date
 unwrap^1.2.11.2.1up to date

Crate dubp-common

Dependencies

(4 total, 2 outdated)

CrateRequiredLatestStatus
 serde^1.0.1051.0.229up to date
 serde_json^1.0.571.0.154up to date
 thiserror^1.0.202.0.21out of date
 zerocopy^0.3.00.8.66out of date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 bincode^1.2.03.0.0out of date
 unwrap^1.2.11.2.1up to date

Crate dubp-documents

Dependencies

(5 total, 1 outdated)

CrateRequiredLatestStatus
 beef^0.5.00.5.2up to date
 log0.4.*0.4.35up to date
 serde1.0.*1.0.229up to date
 serde_json1.0.*1.0.154up to date
 thiserror^1.0.202.0.21out of date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 maplit^1.0.21.0.2up to date
 pretty_assertions^0.6.11.4.1out of date
 unwrap^1.2.11.2.1up to date

Crate dubp-documents-parser

Dependencies

(5 total, 1 outdated)

CrateRequiredLatestStatus
 json-pest-parser^0.3.00.3.0up to date
 pest^2.1.32.9.7up to date
 pest_derive^2.1.02.9.7up to date
 serde_json1.0.*1.0.154up to date
 thiserror^1.0.202.0.21out of date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 unwrap^1.2.11.2.1up to date

Crate dubp-wallet

Dependencies

(5 total, 2 outdated)

CrateRequiredLatestStatus
 byteorder^1.3.41.5.1up to date
 serde1.0.*1.0.229up to date
 smallvec^1.6.11.16.6up to date
 thiserror^1.0.202.0.21out of date
 zerocopy^0.3.00.8.66out of date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 maplit^1.0.21.0.2up to date
 pretty_assertions^0.6.11.4.1out of date
 unwrap^1.2.11.2.1up to date

Crate duniter-bda-types

Dependencies

(5 total, 2 outdated)

CrateRequiredLatestStatus
 arrayvec^0.70.7.9up to date
 bincode^1.33.0.0out of date
 serde^1.0.1051.0.229up to date
 smallvec^1.6.01.16.6up to date
 thiserror^1.0.202.0.21out of date

Crate duniter-peer

Dependencies

(6 total, 1 outdated)

CrateRequiredLatestStatus
 beef^0.5.00.5.2up to date
 log0.4.*0.4.35up to date
 serde1.0.*1.0.229up to date
 serde_json1.0.*1.0.154up to date
 smallvec^1.6.11.16.6up to date
 thiserror^1.0.202.0.21out of date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 maplit^1.0.21.0.2up to date
 pretty_assertions^0.6.11.4.1out of date
 unwrap^1.2.11.2.1up to date

Crate dup-crypto

Dependencies

(17 total, 11 outdated, 2 insecure)

CrateRequiredLatestStatus
 arrayvec^0.70.7.9up to date
 base64^0.13.00.23.1out of date
 blake3^0.3.71.8.9out of date
 bs58^0.4.00.5.1out of date
 byteorder^1.3.41.5.1up to date
 curve25519-dalek ⚠️^3.15.1.0insecure
 chacha20poly1305^0.7.10.11.0out of date
 ed25519-bip32^0.3.20.5.0out of date
 hex^0.4.20.4.3up to date
 once_cell^1.5.21.21.4up to date
 serde^1.0.1231.0.229up to date
 thiserror^1.0.242.0.21out of date
 zerocopy^0.3.00.8.66out of date
 zeroize^1.2.01.9.2up to date
 cryptoxide^0.3.20.6.8out of date
 getrandom^0.2.20.4.3out of date
 ring ⚠️^0.16.200.17.14insecure

Dev dependencies

(4 total, 2 outdated)

CrateRequiredLatestStatus
 bincode^1.3.13.0.0out of date
 sodiumoxide^0.2.60.2.7up to date
 unwrap^1.2.11.2.1up to date
 criterion^0.3.40.8.2out of 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

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.

curve25519-dalek: Scalar Multiplication Arithmetic Bug in AVX-512 Backend

RUSTSEC-2026-0620

Summary

Any user using the AVX-512 backend of curve25519-dalek could have produced incorrect outputs on computations involving a scalar multiplication on an attacker-chosen Edwards or Ristretto point. This affects all versions of curve25519-dalek in the range 1.1.0–5.0.0, inclusive. No other backends are affected: serial, fiat, and simd (AVX2) are all fine.

Who Is Affected

Anyone who used curve25519-dalek with the AVX-512 backend. Here is how that would happen, based on crate version:

|Version|How AVX-512 backend is enabled| |-------|----------------------| |5.0.0 | The crate must be compiled with --cfg curve25519_dalek_backend="avx512" or built with target_feature=+avx512ifma,+avx512vl (or -C target-cpu=native on an AVX-512 target) on rustc ≥ 1.89 or nightly. In addition, the CPU it's being run on must have those features (runtime selection) | |4.2.0–5.0.0-rc.1 | The crate must be compiled with --cfg curve25519_dalek_backend="unstable_avx512" on nightly. | |4.0.0–4.1.3 | The crate must be compiled with nightly and the CPU it's being run on must have avx512ifma and avx512vl (i.e., runtime backend selection). | |1.1.0–3.2.1 | The nightly-only simd_backend feature must be set and the build must have target_feature=+avx512ifma |

Impact

On the AVX-512 backend, Edwards or Ristretto computations including scalar multiplication with an attacker-chosen point could be made to be incorrect. No other backends are affected. x-only multiplication used in x25519-dalek is unaffected. ed25519-dalek may be affected, though, in the worst case, a valid signature under an attacker-chosen public key would appear as invalid.

Workaround

The workaround depends on the version you're using:

|Version|Workaround| |-------|----------| |5.0.0 | Do not compile with --cfg curve25519_dalek_backend="avx512" and do not build with target_feature=+avx512ifma,+avx512vl or -C target-cpu=native on an AVX-512 target. You can set --cfg curve25519_dalek_backend="simd" instead. | |4.2.0–5.0.0-rc.1 | Do not set --cfg curve25519_dalek_backend="unstable_avx512". Or compile on stable. | |4.0.0–4.1.3 | Override the backend to --cfg curve25519_dalek_backend="serial", or compile on stable. | |1.1.0–3.2.1 | Do not set the simd_backend feature. Or do not set target_feature=+avx512ifma or -C target-cpu=native on an AVX-512 target in the build. |

More Details

A more complete writeup can be found at https://github.com/dalek-cryptography/curve25519-dalek/issues/934