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

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

sgbett / secp256k1-native

Hay constancia de un parche 24 días después de la divulgación. Versión corregida: secp256k1-native 0.18.0. Ninguna de las cuatro fuentes de PoC la recoge. No figura en el KEV de CISA.

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] y 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
etapa
PAT
divulgación
divulgación → parche
T+24d
cvss
5.9 MEDIUM v3.1

Ciclo de vida

Eje x en UTC; punto = minuto exacto, barra ancha = solo fecha, hueco = desconocida o inferida.
fecha desconocida
DISdivulgada
10-30T22:48Z
PATparcheada
11-23T21:01Z
ANAanalizada
sin registro aún
POCPoC
sin registro aún
ITWexplotada
sin registro aún
KEVen KEV
sin registro aún

Descripción

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.

Registro de eventos

+DISdivulgación

GitHub_M publicó el registro CVE. CVSS 5.9, severidad media. La evaluación SSVC de CISA asigna a la explotación el valor poc.

fuente cvelist · nday , importación masiva · en bruto
{
  "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"
  }
}
hora observada en tiempo real por nday
+PATparche registrado

Versión corregida según el aviso: secp256k1-native 0.18.0. El aviso enlaza los commits de la corrección. Aviso publicado el ; no consta cuándo se publicó el parche en sí.

fuente ghsa GHSA-vp2j-gqfm-r3cf · nday , observado en tiempo real · en bruto
{
  "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.

Debate de investigadores

0 investigadores lo mencionaron en los últimos 7 días

Publicaciones en X de investigadores de la lista de nday que mencionan este CVE, tal como se publicaron. nday no las verifica.

nday aún no ha recopilado publicaciones en X de investigadores de su lista sobre este CVE.

Discussion

0 comments

No comments yet.