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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-29T12:00:00.000Z
- **Modified:** 2026-11-29T16:45:02.223Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker-chosen point can make scalar multiplication return incorrect results in the AVX-512 backend of the curve25519-dalek Rust crate.

## Who should check

- Projects that depend on crates.io package curve25519-dalek (\>= 1.1.0, \< 5.1.0)

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

## Affected and fixed versions

- crates.io `curve25519-dalek`: affected \>= 1.1.0, \< 5.1.0; fixed 5.1.0 (osv)

## Technologies

Rust (AI-matched), Rust crates

## Mitigation

- Upgrade curve25519-dalek to 5.1.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by RUSTSEC-2026-0620. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/RUSTSEC-2026-0620.md
Affected: curve25519-dalek >= 1.1.0, < 5.1.0
Fixed in: 5.1.0

Steps:
1. Search this machine and project for curve25519-dalek (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is RUSTSEC-2026-0620 being exploited?

There is no confirmed exploitation: RUSTSEC-2026-0620 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is RUSTSEC-2026-0620?

It has no CVSS score yet. Unknown.

### Which versions are affected by RUSTSEC-2026-0620?

curve25519-dalek \>= 1.1.0, \< 5.1.0.

### Is there a fix for RUSTSEC-2026-0620?

Yes. Fixed in 5.1.0. Upgrade curve25519-dalek to 5.1.0 or later.

### How do I check if I'm affected by RUSTSEC-2026-0620?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0620.html>
- other: <https://crates.io/crates/curve25519-dalek>
- other: <https://github.com/dalek-cryptography/curve25519-dalek/issues/934>

## Attribution

- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0620> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/RUSTSEC-2026-0620> · JSON: <https://flawdb.com/api/v1/entries/RUSTSEC-2026-0620>
