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

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

sgbett / secp256k1-native

公開から 24 日後に修正版が確認されています。修正済みバージョンは secp256k1-native 0.18.0 です。4 つの PoC ソースのいずれにも未掲載です。CISA KEV には現時点で未掲載です。

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]、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
現在の段階
PAT
公開日時
公開から修正版まで
T+24d
CVSS 基本値
5.9 MEDIUM v3.1

ライフサイクル

横軸は UTC。点=分単位、幅広の帯=日付のみ、白抜き=不明または推定。
日時不明
DIS公開
10-30T22:48Z
PAT修正
11-23T21:01Z
ANA解析
記録なし
POCPoC
記録なし
ITW悪用
記録なし
KEVKEV
記録なし

概要

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.

イベント履歴

+DIS公開

GitHub_M が CVE レコードを公開。CVSS 基本値 5.9(警告)。CISA の SSVC 評価では悪用状況(Exploitation)が poc。

出典 cvelist · nday が に一括取り込み · 生データ
{
  "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"
  }
}
ソースに時刻なし、nday が観測
+PAT修正版公開

アドバイザリ記載の修正済みバージョン:secp256k1-native 0.18.0。修正コミットへのリンクあり。アドバイザリの公開は 。修正版そのもののリリース日時は記録なし。

出典 ghsa GHSA-vp2j-gqfm-r3cf · nday が にリアルタイムで観測 · 生データ
{
  "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.

研究者の投稿

過去 7 日間に 0 人の研究者が言及

リストの研究者が X でこの CVE に触れた投稿です。原文のまま表示し、nday は検証していません。

リストの研究者が X でこの CVE に触れた投稿は、まだ収集していません。

Discussion

0 comments

No comments yet.