IntelligenceFindingsNMN-2026-0086
Timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`
CandidateMachine- or researcher-generated; not independently verified.
In short
What to know.
- Package
- curve25519-dalek crates.iocurve25519-dalek: from 0.0.0-0 before 4.1.3
- What to do
- Upgrade curve25519-dalek to 4.1.3 or later.
- Severity
- UnknownRated by the source advisory.
- Confidence
- HighThe affected range comes from the advisory; no system that uses the component has been assessed.
Verification
Where it stands.
- Candidate
- In review
- Reproduced
- Confirmed
- Resolved
- Disputed
- Withdrawn
8 listed
Sources
- OSV record RUSTSEC-2024-0344osv.devRetrieved 3 December 2026
- package reference for RUSTSEC-2024-0344crates.ioRetrieved 3 December 2026
- advisory reference for RUSTSEC-2024-0344rustsec.orgRetrieved 3 December 2026
- web reference for RUSTSEC-2024-0344github.comRetrieved 3 December 2026
- OSV record GHSA-x4gp-pqpj-f43qosv.devRetrieved 3 December 2026
- advisory reference for GHSA-x4gp-pqpj-f43qnvd.nist.govRetrieved 3 December 2026
- web reference for GHSA-x4gp-pqpj-f43qgithub.comRetrieved 3 December 2026
- package reference for GHSA-x4gp-pqpj-f43qgithub.comRetrieved 3 December 2026
Full record
- Finding
- NMN-2026-0086
- Category
- vulnerability
- Component
- curve25519-dalek (crates.io)curve25519-dalek: from 0.0.0-0 before 4.1.3
- Severity
- Unknown. Rated by the source advisory.The source advisory RUSTSEC-2024-0344 gives no severity label. Noumen has not assessed it.
- Confidence
- High.The affected range comes from the advisory; no system that uses the component has been assessed.
- State
- Candidate. Machine- or researcher-generated; not independently verified.
- Disclosure
- Public
- Mitigation
- Upgrade curve25519-dalek to 4.1.3 or later.
- Discovery method
- imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
- Reproduction
- No reproduction steps recorded.
- Related advisories
- GHSA-x4gp-pqpj-f43qCVE-2024-58262RUSTSEC-2024-0344
- Affected systems
- None listed. A link to a system needs its own evidence.
- Attribution
- Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
- Assigned reviewer
- Nobody yet
- Dates
- Created 3 December 2026, 16:49 UTCUpdated 3 December 2026, 16:49 UTC
Summary, as published by the source advisory
2 events, oldest first
History
History verified: 2 eventsLatest hash7109876aee477109876aee47503cc476c92499b539613063c05a4edb0b893b175f674eb255b6
Record createdMachine-generated
By advisory-monitor@1.0.0 (agent, machine-generated)
Reason: Imported from public advisory GHSA-x4gp-pqpj-f43q.
Entered the record in the state Candidate.
Event 1 hash106604ec26a0106604ec26a0606ddc3f8628284b4a826089726a2d018846679d8fd0fc6c2171CorrectionMachine-generated
By advisory-monitor@1.0.0 (agent, machine-generated)
Reason: The source advisory RUSTSEC-2024-0344 changed.
Event 2 hashTitle
Before
curve25519-dalek has timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`
After
Timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`
Sources
Before
[ { "url": "https://osv.dev/vulnerability/GHSA-x4gp-pqpj-f43q", "title": "OSV record GHSA-x4gp-pqpj-f43q", "retrieved": "2026-12-03" }, { "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58262", "title": "advisory reference for GHSA-x4gp-pqpj-f43q", "retrieved": "2026-12-03" }, { "url": "https://github.com/dalek-cryptography/curve25519-dalek/pull/659", "title": "web reference for GHSA-x4gp-pqpj-f43q", "retrieved": "2026-12-03" }, { "url": "https://github.com/dalek-cryptography/curve25519-dalek/commit/415892acf1cdf9161bd6a4c99bc2f4cb8fae5e6a", "title": "web reference for GHSA-x4gp-pqpj-f43q", "retrieved": "2026-12-03" }, { "url": "https://github.com/dalek-cryptography/curve25519-dalek", "title": "package reference for GHSA-x4gp-pqpj-f43q", "retrieved": "2026-12-03" }, { "url": "https://rustsec.org/advisories/RUSTSEC-2024-0344.html", "title": "... (72 more characters)
After
[ { "url": "https://osv.dev/vulnerability/RUSTSEC-2024-0344", "title": "OSV record RUSTSEC-2024-0344", "retrieved": "2026-12-03" }, { "url": "https://crates.io/crates/curve25519-dalek", "title": "package reference for RUSTSEC-2024-0344", "retrieved": "2026-12-03" }, { "url": "https://rustsec.org/advisories/RUSTSEC-2024-0344.html", "title": "advisory reference for RUSTSEC-2024-0344", "retrieved": "2026-12-03" }, { "url": "https://github.com/dalek-cryptography/curve25519-dalek/pull/659", "title": "web reference for RUSTSEC-2024-0344", "retrieved": "2026-12-03" }, { "url": "https://osv.dev/vulnerability/GHSA-x4gp-pqpj-f43q", "title": "OSV record GHSA-x4gp-pqpj-f43q", "retrieved": "2026-12-03" }, { "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58262", "title": "advisory reference for GHSA-x4gp-pqpj-f43q", "retrieved": "2026-12-03" }, { "... (354 more characters)
Summary
Before
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: - 32-bit (see L106): https://godbolt.org/z/zvaWxzvqv - 64-bit (see L48): https://godbolt.org/z/PczYj7Pda 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... (473 more characters)
After
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: - 32-bit (see L106): <https://godbolt.org/z/zvaWxzvqv> - 64-bit (see L48): <https://godbolt.org/z/PczYj7Pda> 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 i... (486 more characters)
Affected versions
Before
[ { "name": "curve25519-dalek", "ranges": [ { "fixed": "4.1.3", "introduced": "0" } ], "ecosystem": "crates.io" } ]
After
[ { "name": "curve25519-dalek", "ranges": [ { "fixed": "4.1.3", "introduced": "0.0.0-0" } ], "ecosystem": "crates.io" } ]
Severity
Before
low
After
unknown
severityRationale
Before
Severity as labelled by the source advisory GHSA-x4gp-pqpj-f43q. CVSS as given: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N. Noumen has not assessed it.
After
The source advisory RUSTSEC-2024-0344 gives no severity label. Noumen has not assessed it.
7109876aee477109876aee47503cc476c92499b539613063c05a4edb0b893b175f674eb255b6
About this record
Severity and confidence are rated separately, each with its own reason.
History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.
Corrections keep the value before and after.