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

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

sgbett / secp256k1-native

Patch on record 24 days after disclosure. Patched: fixed in secp256k1-native 0.18.0. None of the four PoC sources lists it. Not in 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], and 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
stage
PAT
disclosed
disclosure → patch
T+24d
cvss
5.9 MEDIUM v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
10-30T22:48Z
PATpatch
11-23T21:01Z
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 5.9, medium. CISA's SSVC assessment rates exploitation as poc.

src cvelist · nday , bulk import · raw
{
  "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"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed version secp256k1-native 0.18.0. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-vp2j-gqfm-r3cf · nday , observed live · raw
{
  "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.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.