Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.
Resumen
CVE-2026-63410: vulnerabilidad de severidad media (CVSS 5.9) en secp256k1-native.
Qué ocurre
Descripción original de la fuente (en inglés): ## Summary `Point#mul` — the default, constant-time scalar multiplication and the library's headline secret-scalar operation — could leak timing information about the secret scalar (a private key or ECDSA-style nonce in a downstream consumer) **not because of a source-level bug, but because the compiler reconstructed a branch from branchless source.** The Montgomery ladder selects between point candidates with `uint256_select`, written deliberately branchlessly as `r = (a & ~mask) | (b & mask)` with a mask that is all-ones or all-zeros. GCC 15.2 at `-O2` recognises this select idiom, reconstructs the original boolean condition, and emits a secret-dependent conditional jump (`je`/`jne`). The branch's taken/not-taken timing correlates with the secret scalar bits flowing through the ladder. This silently undid the 0.17.0 fix for the historical |t|=875 infinity-branch leak, which had relied on `uint256_select` compiling to branchless code. ## Impact A timing side-channel on the secret scalar in constant-time scalar multiplication. For a consumer that calls `Point#mul` (or the native `scalar_multiply_ct`) on a secret key or nonce and exposes timing to an attacker (e.g. an online signing oracle), repeated measurements can statistically recover scalar bits — the classic ECC private-key/nonce timing-attack setting (cf. Brumley–Boneh). The leak is in the *compiled binary*; the source is correct, so source review and the deterministic ctgrind check on a *non-reconstructing* toolchain do not reveal it. Pre-1.0 with no published RubyGems dependents, so this is handled as fix-publish-and-document: full GHSA + CVE record without a coordinated downstream-notification timeline. The CVE…
Por qué importa
Severidad media, CVSS 5.9.
Productos y versiones afectados
secp256k1-native < 0.18.0 (corregido en 0.18.0)
| Producto | Versiones | Corregido en |
|---|---|---|
| secp256k1-native | < 0.18.0 | 0.18.0 |
Acción recomendada por la fuente
Actualizar a una versión corregida: 0.18.0.
Corregido en: 0.18.0
Fuentes y referencias
- https://github.com/advisories/GHSA-vp2j-gqfm-r3cf — GHSA
- https://github.com/sgbett/secp256k1-native/security/advisories/GHSA-vp2j-gqfm-r3cf — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-63410 — GHSA
- https://github.com/sgbett/secp256k1-native/pull/32 — GHSA
- https://github.com/sgbett/secp256k1-native/commit/a89bea1617a2d063c6545ad44565dc22098c880e — GHSA
- https://github.com/sgbett/secp256k1-native/blob/master/docs/advisories/0001-compiler-reconstructed-ct-branch.md — GHSA
- https://github.com/sgbett/secp256k1-native/releases/tag/v0.18.0 — GHSA
Debilidades (CWE): CWE-208, CWE-1255
Historial de cambios relevantes
Publicado
Aviso preliminar publicado.