## secp256k1-native has a compiler-induced timing side channel in scalar multiplication

- 種別: advisory
- 重大度: medium
- 関連技術: ruby
- CVE: CVE-2026-63410
- 公開日時: 2026-11-23T20:59:48.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-vp2j-gqfm-r3cf)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-vp2j-gqfm-r3cf

影響: rubygems:secp256k1-native < 0.18.0 → 0.18.0
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…