SEVERITY NOT PROVIDED

RUSTSEC-2026-0620: Scalar Multiplication Arithmetic Bug in AVX-512 Backend

Published 2026-11-29 · Updated 2026-11-29

Summary

An arithmetic bug exists in the AVX-512 backend of curve25519-dalek, causing incorrect outputs on scalar multiplications involving attacker-chosen Edwards or Ristretto points. Applications using curve25519-dalek versions 1.1.0 through 5.0.0 with the AVX-512 backend enabled must update or apply workarounds.

Who is affected

Deployments utilizing the curve25519-dalek library with the AVX-512 backend enabled are affected across versions 1.1.0 to 5.0.0. The condition requires specific compilation flags, nightly or specific rustc versions, target features like avx512ifma and avx512vl, and running on hardware supporting AVX-512. While x-only multiplication and other backends remain unaffected, ed25519-dalek might see valid signatures under attacker-chosen public keys appear invalid.

Exploitability

CVSS vector, base score, and EPSS data are not documented for this vulnerability. CISA Known Exploited Vulnerabilities status is no, indicating active exploitation is not documented.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-29. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
crates.io curve25519-dalek >= 1.1.0, < 5.1.0 5.1.0 cargo update -p curve25519-dalek --precise 5.1.0

FAQ

Are backends other than AVX-512 affected?

No. The serial, fiat, and simd (AVX2) backends are all unaffected by this vulnerability.

What is the fixed version for curve25519-dalek?

Version 5.1.0 fixes the scalar multiplication arithmetic bug.

Does this bug affect x-only multiplication or ed25519-dalek?

X-only multiplication used in x25519-dalek is unaffected. ed25519-dalek may be affected in the worst case where a valid signature under an attacker-chosen public key appears invalid.

Original advisory description
## 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

References

Source records: RUSTSEC-2026-0620 (OSV.dev).