GHSA-4hff-hh47-7788: Duplicate Advisory Curve25519-dalek Has Timing Variability Vulnerability
LOWGHSA-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
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).
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.
Upgrade curve25519-dalek to 4.1.3
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
GHSA-4hff-hh47-7788 Affected Duplicate Advisory Versions
1 component(s)| 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?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-4hff-hh47-7788?
Is curve25519-dalek affected?
What is the CVSS score of GHSA-4hff-hh47-7788?
What CWE is associated with GHSA-4hff-hh47-7788?
How can I check crates.io dependencies for GHSA-4hff-hh47-7788?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}