nday
CVE-2026-63410 GHSA-vp2j-gqfm-r3cf

secp256k1-native: Compiler-reconstructed secret-dependent branch in native scalar multiplication

sgbett / secp256k1-native

Correctif recensé 24 jours après la divulgation. Version corrigée : secp256k1-native 0.18.0. Cette vulnérabilité ne figure dans aucune des quatre sources de PoC. Aucune inscription au catalogue KEV de la CISA à ce jour.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

information disclosure
CWE-208, stated by the CNA GitHub_M, NVD, republishing [email protected] et GitHub advisory GHSA-vp2j-gqfm-r3cf
remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
network
AV:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
no authentication required
PR:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
no user interaction
UI:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
RubyGems
GHSA-vp2j-gqfm-r3cf: rubygems packages secp256k1-native
étape actuelle
PAT
divulgation
délai avant correctif
T+24d
CVSS
5.9 MEDIUM v3.1

Cycle de vie

Axe en UTC ; point = minute exacte, barre large = date seule, creux = inconnue ou déduite.
date inconnue
DISdivulguée
10-30T22:48Z
PATcorrectif
11-23T21:01Z
ANAanalyse
aucune donnée
POCPoC
aucune donnée
ITWexploitée
aucune donnée
KEVKEV
aucune donnée

Résumé

secp256k1-native is a native C secp256k1 implementation for Ruby. In affected native builds, native constant-time scalar multiplication through Point#mul or scalar_multiply_ct can leak timing information about a secret scalar when compiled by a toolchain that reconstructs branchless selection into a branch. The Montgomery ladder uses uint256_select with an all-zeros or all-ones mask, but affected GCC builds at -O2 recover the original condition and emit secret-dependent je or jne jumps whose timing correlates with scalar bits. This defeats the assumption behind the 0.17.0 jp_add_internal infinity-branch fix. A consumer must multiply a secret private key or nonce in a context where an attacker can observe timing; repeated measurements can statistically recover scalar bits. The defect is in the compiled binary, so source review or ctgrind on a non-reconstructing toolchain may miss it. GCC 14.3.0, 15.1.0, and 15.2.0 reproduced the branch reconstruction, and extconf.rb appends -O2. Tested GCC versions through 12.4.0 used bitwise operations and GCC 13.3.0 used constant-time cmov; the pure-Ruby path is not affected by this flaw and separately makes no constant-time claim. GCC 16 and clang were untested, and point releases, targets, and flag combinations were not exhaustively bisected. Earlier pre-0.17.0 versions had different constant-time issues rather than this introduced select idiom. Version 0.18.0 contains the verified fix. The advisory's broad pre-0.18.0 guidance also covers earlier, different constant-time issues; whether this CVE groups those issues or only the select idiom introduced in 0.17.0 remains unresolved.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: success depends on conditions outside the attacker's control, such as gathering details of the target or winning a race
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

Journal des événements

+DISdivulgation

Fiche CVE publiée par GitHub_M. CVSS 5.9, gravité moyenne. Évaluation SSVC de la CISA : exploitation au niveau « poc ».

source cvelist · importé en masse par nday le · brut
{
  "id": 436845,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-63410",
  "occurred_at": "2026-10-30T22:48:09.173Z",
  "observed_at": "2026-11-13T05:40:01.626611Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "version": "3.1",
      "base_score": 5.9,
      "base_severity": "MEDIUM"
    },
    "ssvc": {
      "timestamp": "2026-11-02T14:49:39.327340Z",
      "automatable": "no",
      "exploitation": "poc",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-10-30T22:48:09.173Z",
    "assigner_short_name": "GitHub_M"
  }
}
source non datée ; vu en direct par nday
+PATcorrectif disponible

L’avis indique la version corrigée secp256k1-native 0.18.0. L’avis renvoie vers les commits de correction. Avis publié le  ; la date de publication du correctif lui-même n’est pas renseignée.

source ghsa GHSA-vp2j-gqfm-r3cf · observé en direct par nday le · brut
{
  "id": 526533,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-vp2j-gqfm-r3cf",
  "occurred_at": null,
  "observed_at": "2026-11-23T21:01:22.603333Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-vp2j-gqfm-r3cf",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 5.9,
        "vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Observable Timing Discrepancy",
        "cwe_id": "CWE-208"
      },
      {
        "name": "Comparison Logic is Vulnerable to Power Side-Channel Attacks",
        "cwe_id": "CWE-1255"
      }
    ],
    "ghsa_id": "GHSA-vp2j-gqfm-r3cf",
    "packages": [
      {
        "name": "secp256k1-native",
        "ecosystem": "rubygems",
        "first_patched_version": "0.18.0",
        "vulnerable_version_range": "< 0.18.0"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/sgbett/secp256k1-native/security/advisories/GHSA-vp2j-gqfm-r3cf",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-63410",
      "https://github.com/sgbett/secp256k1-native/pull/32",
      "https://github.com/sgbett/secp256k1-native/commit/a89bea1617a2d063c6545ad44565dc22098c880e",
      "https://github.com/sgbett/secp256k1-native/blob/master/docs/advisories/0001-compiler-reconstructed-ct-branch.md",
      "https://github.com/sgbett/secp256k1-native/releases/tag/v0.18.0",
      "https://github.com/advisories/GHSA-vp2j-gqfm-r3cf"
    ],
    "fix_commit_urls": [
      "https://github.com/sgbett/secp256k1-native/pull/32",
      "https://github.com/sgbett/secp256k1-native/commit/a89bea1617a2d063c6545ad44565dc22098c880e"
    ],
    "github_reviewed_at": "2026-11-23T20:59:48Z",
    "advisory_updated_at": "2026-11-23T20:59:50Z",
    "source_code_location": "https://github.com/sgbett/secp256k1-native",
    "advisory_published_at": "2026-11-23T20:59:48Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Échanges entre chercheurs

0 chercheur en a parlé ces 7 derniers jours

Publications sur X de chercheurs suivis par nday citant cette CVE, telles que publiées. nday ne les vérifie pas.

nday n’a encore recueilli aucune publication sur X d’un chercheur de sa liste citant cette CVE.

Discussion

0 comments

No comments yet.