GHSA-4hff-hh47-7788: Duplicate Advisory Curve25519-dalek Has Timing Variability Vulnerability

LOW
CVSS 2.9
CWE-733
Published
Advisory Summary

GHSA-4hff-hh47-7788 is a LOW (CVSS 2.9) curve25519-dalek has timing variability vulnerability (CWE-733: Compiler Optimization Removal or Modification of Security-critical Code) affecting Duplicate Advisory libraries in the crates.io ecosystem. The issue involves curve25519-dalek has timing variability in `curve25519-dalek`'s `scalar29::sub`/`scalar52::sub`. Remediation is available by upgrading affected packages to version 4.1.3.

GHSA-4hff-hh47-7788 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4hff-hh47-7788
Severity LOW
CVSS v3.1 Base Score 2.9
CWE Classification CWE-733: Compiler Optimization Removal or Modification of Security-critical Code
Affected Product Duplicate Advisory
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 2.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-4hff-hh47-7788

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

curve25519-dalek fixed: 4.1.3
Upgrade curve25519-dalek to 4.1.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for curve25519-dalek

How to Check if You Are Affected

To determine whether your application is affected by GHSA-4hff-hh47-7788, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for curve25519-dalek

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-733: Compiler Optimization Removal or Modification of Security-critical Code, where the developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-x4gp-pqpj-f43q. This link is maintained to preserve external references. ### Original Description The curve25519-dalek crate before 4.1.3 for Rust has a constant-time operation on elliptic curve scalars that is removed by LLVM.

GHSA-4hff-hh47-7788 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
4.1.3
Product / Package Ecosystem Affected Versions Fixed Version
curve25519-dalek
crates.io
< 4.1.3
4.1.3

References

Frequently Asked Questions

What is GHSA-4hff-hh47-7788?
GHSA-4hff-hh47-7788 is a security vulnerability in Duplicate Advisory involving curve25519-dalek has timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub` under CWE-733: Compiler Optimization Removal or Modification of Security-critical Code.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 4.1.3 across affected packages: curve25519-dalek.
What version fixes GHSA-4hff-hh47-7788?
Upgrading to 4.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is curve25519-dalek affected?
Yes, curve25519-dalek is affected in releases prior to 4.1.3. Upgrade your dependency to 4.1.3 or later.
What is the CVSS score of GHSA-4hff-hh47-7788?
GHSA-4hff-hh47-7788 has a CVSS v3.1 base score of 2.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-4hff-hh47-7788?
GHSA-4hff-hh47-7788 is classified under CWE-733: Compiler Optimization Removal or Modification of Security-critical Code (The developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified.).
How can I check crates.io dependencies for GHSA-4hff-hh47-7788?
Run the dependency tree command: 'inspect dependencies for curve25519-dalek'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4hff-hh47-7788",
  "modified" : "2025-07-28T15:46:04Z",
  "published" : "2025-07-27T21:32:11Z",
  "withdrawn" : "2025-07-28T15:46:04Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: curve25519-dalek has timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`",
  "details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-x4gp-pqpj-f43q. This link is maintained to preserve external references.\n\n### Original Description\nThe curve25519-dalek crate before 4.1.3 for Rust has a constant-time operation on elliptic curve scalars that is removed by LLVM.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "curve25519-dalek"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-58262"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dalek-cryptography/curve25519-dalek/pull/659"
  }, {
    "type" : "WEB",
    "url" : "https://crates.io/crates/curve25519-dalek"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dalek-cryptography/curve25519-dalek"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0344.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-733" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-28T15:46:04Z",
    "nvd_published_at" : "2025-07-27T20:15:25Z"
  }
}